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 Summary
Fields 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.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All 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.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.NamedDetailObject
getComment, getDescription, getName, getSearchName, setComment, setDescription, setName
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, 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_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()for "ImportRule" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<ImportRule> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges:- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
void 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.
-
getImportRuleSet
ImportRuleSet 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.
-
getImportMatchRules
RWIterable<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 interfaceImportRuleComp- Returns:
- An
RWIterableover an ordered collection ofImportMatchRuleobjects .
-
createImportMatchRule
ImportMatchRule createImportMatchRule(ImportRuleDefinition newImportRuleDefinition)
Create a newImportMatchRulelinked to this object.- Parameters:
newImportRuleDefinition- The other parent of theImportMatchRuleImportRuleDefinitionassociation.- Returns:
- a new
ImportMatchRule.
-
getImportOverrideRules
RWIterable<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 interfaceImportRuleComp- Returns:
- An
RWIterableover an ordered collection ofImportOverrideRuleobjects .
-
createImportOverrideRule
ImportOverrideRule createImportOverrideRule(ImportRuleDefinition newImportRuleDefinition)
Create a newImportOverrideRulelinked to this object.- Parameters:
newImportRuleDefinition- The other parent of theImportOverrideRuleImportRuleDefinitionassociation.- Returns:
- a new
ImportOverrideRule.
-
-