Package com.redwood.scheduler.api.model
Interface ImportRule
- 
- All Superinterfaces:
- BusinessKeyObject,- Detail,- ImportRuleComp,- NamedDetailObject,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface ImportRule extends ImportRuleComp, NamedDetailObject, BusinessKeyObject, Readable Transformation to apply to objects after import. The set of child ImportMatchRules is used to select the objects which this rule applies to. (All ImportMatchRules must match the object.) The set of child ImportOverrideRules are then applied to each selected object. The object-types for all matches and overrides must be compatible.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ImportRule" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<ImportRule>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(Iterator<? extends SchedulerEntity> entities)Apply this rule to a collection of objects.ImportMatchRulecreateImportMatchRule(ImportRuleDefinition newImportRuleDefinition)Create a newImportMatchRulelinked to this object.ImportOverrideRulecreateImportOverrideRule(ImportRuleDefinition newImportRuleDefinition)Create a newImportOverrideRulelinked to this object.RWIterable<ImportMatchRule>getImportMatchRules()Get anRWIterableover an ordered collection ofImportMatchRules.RWIterable<ImportOverrideRule>getImportOverrideRules()Get anRWIterableover an ordered collection ofImportOverrideRules.ImportRuleSetgetImportRuleSet()Get the ImportRuleSet.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedDetailObjectgetComment, getDescription, getName, getSearchName, setComment, setDescription, setName
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "ImportRule" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ImportRule> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
applyvoid apply(Iterator<? extends SchedulerEntity> entities) throws com.redwood.scheduler.api.exception.ImportOverrideException Apply this rule to a collection of objects.- Parameters:
- entities- The objects the override will be applied to.
- Throws:
- com.redwood.scheduler.api.exception.ImportOverrideException- An import override rule could not be applied to an object.
 
 - 
getImportRuleSetImportRuleSet getImportRuleSet() Get the ImportRuleSet.- Returns:
- ImportRuleSet
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getImportMatchRulesRWIterable<ImportMatchRule> getImportMatchRules() Get anRWIterableover an ordered collection ofImportMatchRules. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Parameters for a criterion/override for objects processed by the ImportRule.- Specified by:
- getImportMatchRulesin interface- ImportRuleComp
- Returns:
- An RWIterableover an ordered collection ofImportMatchRuleobjects .
 
 - 
createImportMatchRuleImportMatchRule createImportMatchRule(ImportRuleDefinition newImportRuleDefinition) Create a newImportMatchRulelinked to this object.- Parameters:
- newImportRuleDefinition- The other parent of the- ImportMatchRuleImportRuleDefinitionassociation.
- Returns:
- a new ImportMatchRule.
 
 - 
getImportOverrideRulesRWIterable<ImportOverrideRule> getImportOverrideRules() Get anRWIterableover an ordered collection ofImportOverrideRules. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Parameters for a criterion/override for objects processed by the ImportRule.- Specified by:
- getImportOverrideRulesin interface- ImportRuleComp
- Returns:
- An RWIterableover an ordered collection ofImportOverrideRuleobjects .
 
 - 
createImportOverrideRuleImportOverrideRule createImportOverrideRule(ImportRuleDefinition newImportRuleDefinition) Create a newImportOverrideRulelinked to this object.- Parameters:
- newImportRuleDefinition- The other parent of the- ImportOverrideRuleImportRuleDefinitionassociation.
- Returns:
- a new ImportOverrideRule.
 
 
- 
 
-