public class SourceRuleModelHistoricalContentCreator extends java.lang.Object implements RuleModelHistoricalContentCreator
| Constructor and Description |
|---|
SourceRuleModelHistoricalContentCreator() |
public SourceRuleModelHistoricalContentCreator()
public void createHistoricalVersion(SourceRuleModel sourceRule, InterceptorContext context) throws InterceptorException
RuleModelHistoricalContentCreatorcreateHistoricalVersion in interface RuleModelHistoricalContentCreatorsourceRule - - the model to be versionedcontext - - the InterceptorContext instance, where the versioned copy is registeredInterceptorExceptionprotected boolean isUnpublished(SourceRuleModel sourceRule, InterceptorContext context)
protected void createHistoricalVersionIfNeeded(SourceRuleModel sourceRule, InterceptorContext ctx) throws InterceptorException
InterceptorExceptionprotected void resetModifiedFields(SourceRuleModel toSourceRule, InterceptorContext ctx)
protected void copyField(ItemModelContext modelContext, SourceRuleModel sourceRule, java.util.Map.Entry<java.lang.String,java.util.Set<java.util.Locale>> attribute)
protected void incrementRuleModelVersion(SourceRuleModel ruleModel)
protected boolean historicalVersionMustBeCreated(SourceRuleModel sourceRule, InterceptorContext context)
protected boolean ruleStatusChangedToPublished(SourceRuleModel model, InterceptorContext context)
protected SourceRuleModel doCreateHistoricalVersion(SourceRuleModel sourceRule, InterceptorContext context)
protected void putOriginalValuesIntoHistoricalVersion(SourceRuleModel sourceRule, SourceRuleModel historicalSourceRule, InterceptorContext ctx)
protected boolean modelIsValid(SourceRuleModel sourceRule)
protected boolean modelIsBeingModified(AbstractRuleModel ruleModel, InterceptorContext ctx)
protected boolean essentialFieldsAreModified(AbstractRuleModel ruleModel, InterceptorContext ctx)
protected boolean associatedTypesChanged(AbstractRuleModel ruleModel, InterceptorContext ctx)
protected java.lang.String[] getNonEssentialAttributes()
protected boolean matchAnyOf(java.lang.String sample,
java.lang.String... probes)
protected boolean hasStatus(InterceptorContext ctx, SourceRuleModel sourceRule, RuleStatus ruleStatus)
protected <T> T getOriginal(SourceRuleModel sourceRule, InterceptorContext context, java.lang.String attributeQualifier)
protected RuleDao getRuleDao()
public void setRuleDao(RuleDao ruleDao)
protected java.util.List<HistoricalRuleContentProvider> getHistoricalRuleContentProviders()
public void setHistoricalRuleContentProviders(java.util.List<HistoricalRuleContentProvider> historicalRuleContentProviders)
Copyright © 2018 SAP SE. All Rights Reserved.