public class SourceRuleModelHistoricalContentCreator extends java.lang.Object implements RuleModelHistoricalContentCreator
| Constructor and Description |
|---|
SourceRuleModelHistoricalContentCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
associatedTypesChanged(AbstractRuleModel ruleModel,
InterceptorContext ctx) |
protected void |
copyField(ItemModelContext modelContext,
SourceRuleModel sourceRule,
java.util.Map.Entry<java.lang.String,java.util.Set<java.util.Locale>> attribute) |
void |
createHistoricalVersion(SourceRuleModel sourceRule,
InterceptorContext context)
creates the historical version of the model
|
protected void |
createHistoricalVersionIfNeeded(SourceRuleModel sourceRule,
InterceptorContext ctx) |
protected SourceRuleModel |
doCreateHistoricalVersion(SourceRuleModel sourceRule,
InterceptorContext context) |
protected boolean |
essentialFieldsAreModified(AbstractRuleModel ruleModel,
InterceptorContext ctx) |
protected java.lang.String[] |
getEssentialAttributes()
Deprecated.
since 6.5. Was deprecated due to inconsistent method name. Consider using
getNonEssentialAttributes()
instead |
protected java.util.List<HistoricalRuleContentProvider> |
getHistoricalRuleContentProviders() |
protected java.lang.String[] |
getNonEssentialAttributes() |
protected <T> T |
getOriginal(SourceRuleModel sourceRule,
InterceptorContext context,
java.lang.String attributeQualifier) |
protected RuleDao |
getRuleDao() |
protected boolean |
hasStatus(InterceptorContext ctx,
SourceRuleModel sourceRule,
RuleStatus ruleStatus) |
protected boolean |
historicalVersionMustBeCreated(SourceRuleModel sourceRule,
InterceptorContext context) |
protected void |
incrementRuleModelVersion(SourceRuleModel ruleModel) |
protected boolean |
isUnpublished(SourceRuleModel sourceRule,
InterceptorContext context) |
protected boolean |
matchAnyOf(java.lang.String sample,
java.lang.String... probes) |
protected boolean |
modelIsBeingModified(AbstractRuleModel ruleModel,
InterceptorContext ctx) |
protected boolean |
modelIsValid(SourceRuleModel sourceRule) |
protected void |
putOriginalValuesIntoHistoricalVersion(SourceRuleModel sourceRule,
SourceRuleModel historicalSourceRule,
InterceptorContext ctx) |
protected void |
resetModifiedFields(SourceRuleModel toSourceRule,
InterceptorContext ctx) |
protected boolean |
ruleStatusChangedToPublished(SourceRuleModel model,
InterceptorContext context) |
void |
setHistoricalRuleContentProviders(java.util.List<HistoricalRuleContentProvider> historicalRuleContentProviders) |
void |
setRuleDao(RuleDao ruleDao) |
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)
@Deprecated protected java.lang.String[] getEssentialAttributes()
getNonEssentialAttributes()
insteadprotected 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 © 2017 SAP SE. All Rights Reserved.