Package com.redwood.scheduler.api.model
Interface ImportRuleSet
- 
- All Superinterfaces:
- ApplicationObject,- BusinessKeyObject,- ImportRuleSetComp,- NamedRootObject,- NamedRootObjectComp,- PartitionableObject,- PartitionableObjectComp,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp,- UniqueNamedApplicationObject
 
 public interface ImportRuleSet extends ImportRuleSetComp, UniqueNamedApplicationObject, Readable A set of rules that can be applied during an import. During import each ImportRule is applied after all objects have been imported but before they are committed to the database.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ImportRuleSet" objects.static StringSEC_PRIV_CREATEThis privilege can be granted at a group level.static StringSEC_PRIV_DELETEThis privilege can be granted at a group level.static StringSEC_PRIV_EDITThis privilege can be granted at a group level.static StringSEC_PRIV_VIEWThis privilege can be granted at a group level.static StringSEC_RANK_ALLThis rank is made of the following privileges: create , view , edit , deletestatic StringSEC_RANK_CREATEThis rank is made of the following privileges: createstatic StringSEC_RANK_DELETEThis rank is made of the following privileges: create , view , deletestatic StringSEC_RANK_EDITThis rank is made of the following privileges: create , view , editstatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<ImportRuleSet>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 Deprecated Methods Modifier and Type Method Description voidapply(Iterator<? extends SchedulerEntity> entities)Apply this rule-set to a collection of objects.voidapply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog)Apply this rule to a collection of objects.voidapply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog, ImportActionScriptObject scriptObject)Apply this rule to a collection of objects.RequiredPermissioncheckCreatePrivilege()Check whether or not the create action can be performed on this object.RequiredPermissioncheckDeletePrivilege()Check whether or not the delete action can be performed on this object.RequiredPermissioncheckEditPrivilege()Check whether or not the edit action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.ImportActioncreateImportAction()Create a newImportActionlinked to this object.ImportActionParametercreateImportActionParameter()Create a newImportActionParameterlinked to this object.ImportRulecreateImportRule()Create a newImportRulelinked to this object.ImportRuleSetPartitionRenamecreateImportRuleSetPartitionRename()Create a newImportRuleSetPartitionRenamelinked to this object.ImportActiongetImportAction()Deprecated.ImportActiongetImportActionByType(ImportRuleSetActionType type)Get the ImportAction by ImportRuleSetActionType.RWIterable<ImportActionParameter>getImportActionParameters()Get anRWIterableover an ordered collection ofImportActionParameters.RWIterable<ImportAction>getImportActions()Get anRWIterableover an ordered collection ofImportActions.ImportRulegetImportRuleByName(String name)Get the ImportRule by NameImportRuleSet.RWIterable<ImportRule>getImportRules()Get anRWIterableover a collection ofImportRules, the collection will be ordered by UniqueId.RWIterable<ImportRuleSetPartitionRename>getImportRuleSetPartitionRenames()Get anRWIterableover a collection ofImportRuleSetPartitionRenames, the collection will be ordered by ProcessOrder.RWIterable<Import>getImports()Get anRWIterableover an ordered collection ofImports.ValiditygetValidity()Get the value for Validity.StringgetVariablePrefix()Get the value for VariablePrefix.voidsetVariablePrefix(String newVariablePrefix)Set the value for VariablePrefix.- 
Methods inherited from interface com.redwood.scheduler.api.model.ApplicationObjectgetParentApplication, setParentApplication
 - 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObjectcreateObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
 - 
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableObjectcreateObjectTag, getEditablePartitions, getObjectTagByObjectTagDefinition, getObjectTags, getPartition, setPartition
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
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 "ImportRuleSet" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ImportRuleSet> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_PRIV_CREATEstatic final String SEC_PRIV_CREATE This privilege can be granted at a group level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_VIEWstatic final String SEC_PRIV_VIEW This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_EDITstatic final String SEC_PRIV_EDIT This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_DELETEstatic final String SEC_PRIV_DELETE This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_CREATEstatic final String SEC_RANK_CREATE This rank is made of the following privileges: create- See Also:
- Constant Field Values
 
 - 
SEC_RANK_VIEWstatic final String SEC_RANK_VIEW This rank is made of the following privileges: view- See Also:
- Constant Field Values
 
 - 
SEC_RANK_EDITstatic final String SEC_RANK_EDIT This rank is made of the following privileges: create , view , edit- See Also:
- Constant Field Values
 
 - 
SEC_RANK_DELETEstatic final String SEC_RANK_DELETE This rank is made of the following privileges: create , view , delete- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: create , view , edit , delete- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getValidityValidity getValidity() Get the value for Validity. (Is this definition valid? That is, can this definition currently be used?) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getVariablePrefixString getVariablePrefix() Get the value for VariablePrefix. (The prefix to apply to values in the Variables table when they are imported, and there is no existing value.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setVariablePrefixvoid setVariablePrefix(String newVariablePrefix) Set the value for VariablePrefix. (The prefix to apply to values in the Variables table when they are imported, and there is no existing value.) This value is optional.- Parameters:
- newVariablePrefix- the new value for VariablePrefix.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
applyvoid apply(Iterator<? extends SchedulerEntity> entities) throws com.redwood.scheduler.api.exception.ImportOverrideException Apply this rule-set 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.
 
 - 
applyvoid apply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog) 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.
- jcsOutLog- Output logger, corresponds to scripting variable jcsOutLog. Will be stdout.log for an import job.
- jcsErrLog- Output logger, corresponds to scripting variable jcsErrLog. Will be stderr.log for an import job.
- Throws:
- com.redwood.scheduler.api.exception.ImportOverrideException- An import override rule could not be applied to an object.
 
 - 
applyvoid apply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog, ImportActionScriptObject scriptObject) 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.
- jcsOutLog- Output logger, corresponds to scripting variable jcsOutLog. Will be stdout.log for an import job.
- jcsErrLog- Output logger, corresponds to scripting variable jcsErrLog. Will be stderr.log for an import job.
- scriptObject- Context object for scripting.
- Throws:
- com.redwood.scheduler.api.exception.ImportOverrideException- An import override rule could not be applied to an object.
 
 - 
getImportAction@Deprecated ImportAction getImportAction() Deprecated.Use getImportActions insteadDeprecated operation, do not use. getImportActions will now return multiple actions. This will only return the POST import action. - Returns:
- Returns Post Import action ImportRuleSetActionType.PostImport.
 
 - 
getImportsRWIterable<Import> getImports() Get anRWIterableover an ordered collection ofImports. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Import rule-set which should be applied during this import.- Specified by:
- getImportsin interface- ImportRuleSetComp
- Returns:
- An RWIterableover an ordered collection ofImportobjects .
 
 - 
getImportActionParametersRWIterable<ImportActionParameter> getImportActionParameters() Get anRWIterableover an ordered collection ofImportActionParameters. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Import action parameters.- Specified by:
- getImportActionParametersin interface- ImportRuleSetComp
- Returns:
- An RWIterableover an ordered collection ofImportActionParameterobjects .
 
 - 
createImportActionParameterImportActionParameter createImportActionParameter() Create a newImportActionParameterlinked to this object.- Returns:
- a new ImportActionParameter.
 
 - 
getImportActionsRWIterable<ImportAction> getImportActions() Get anRWIterableover an ordered collection ofImportActions. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Import Action which should be applied during this import.- Specified by:
- getImportActionsin interface- ImportRuleSetComp
- Returns:
- An RWIterableover an ordered collection ofImportActionobjects .
 
 - 
createImportActionImportAction createImportAction() Create a newImportActionlinked to this object.- Returns:
- a new ImportAction.
 
 - 
getImportActionByTypeImportAction getImportActionByType(ImportRuleSetActionType type) Get the ImportAction by ImportRuleSetActionType.- Parameters:
- type-
- Returns:
- the ImportAction, or nullif it could not be found
 
 - 
getImportRulesRWIterable<ImportRule> getImportRules() Get anRWIterableover a collection ofImportRules, the collection will be ordered by UniqueId. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Set of ImportRules that make up the ImportRuleSet.- Specified by:
- getImportRulesin interface- ImportRuleSetComp
- Returns:
- An RWIterableover a collection ofImportRuleobjects , the collection will be ordered by UniqueId.
 
 - 
createImportRuleImportRule createImportRule() Create a newImportRulelinked to this object.- Returns:
- a new ImportRule.
 
 - 
getImportRuleByNameImportRule getImportRuleByName(String name) Get the ImportRule by NameImportRuleSet.- Parameters:
- name-
- Returns:
- the ImportRule, or nullif it could not be found
 
 - 
getImportRuleSetPartitionRenamesRWIterable<ImportRuleSetPartitionRename> getImportRuleSetPartitionRenames() Get anRWIterableover a collection ofImportRuleSetPartitionRenames, the collection will be ordered by ProcessOrder. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Rules that define the renaming of partitions during import.- Specified by:
- getImportRuleSetPartitionRenamesin interface- ImportRuleSetComp
- Returns:
- An RWIterableover a collection ofImportRuleSetPartitionRenameobjects , the collection will be ordered by ProcessOrder.
 
 - 
createImportRuleSetPartitionRenameImportRuleSetPartitionRename createImportRuleSetPartitionRename() Create a newImportRuleSetPartitionRenamelinked to this object.- Returns:
- a new ImportRuleSetPartitionRename.
 
 - 
checkCreatePrivilegeRequiredPermission checkCreatePrivilege() Check whether or not the create action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkViewPrivilegeRequiredPermission checkViewPrivilege() Check whether or not the view action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkEditPrivilegeRequiredPermission checkEditPrivilege() Check whether or not the edit action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 - 
checkDeletePrivilegeRequiredPermission checkDeletePrivilege() Check whether or not the delete action can be performed on this object.- Returns:
- a RequiredPermissioninstance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
 
 
- 
 
-