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 Summary
Fields 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.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All 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.ApplicationObject
getParentApplication, setParentApplication
-
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObject
createObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
-
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableObject
createObjectTag, getEditablePartitions, getObjectTagByObjectTagDefinition, getObjectTags, getPartition, setPartition
-
Methods inherited from interface com.redwood.scheduler.api.model.Root
getCreationTime, getLastModificationTime, getLastModifierSubject
-
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 "ImportRuleSet" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<ImportRuleSet> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
-
SEC_PRIV_CREATE
static final String SEC_PRIV_CREATE
This privilege can be granted at a group level.- See Also:
- Constant Field Values
-
SEC_PRIV_VIEW
static 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_EDIT
static 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_DELETE
static 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_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_CREATE
static final String SEC_RANK_CREATE
This rank is made of the following privileges: create- See Also:
- Constant Field Values
-
SEC_RANK_VIEW
static final String SEC_RANK_VIEW
This rank is made of the following privileges: view- See Also:
- Constant Field Values
-
SEC_RANK_EDIT
static final String SEC_RANK_EDIT
This rank is made of the following privileges: create , view , edit- See Also:
- Constant Field Values
-
SEC_RANK_DELETE
static final String SEC_RANK_DELETE
This rank is made of the following privileges: create , view , delete- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges: create , view , edit , delete- See Also:
- Constant Field Values
-
-
Method Detail
-
getValidity
Validity 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.
-
getVariablePrefix
String 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.
-
setVariablePrefix
void 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.
-
apply
void 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.
-
apply
void 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.
-
apply
void 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.
-
getImports
RWIterable<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 interfaceImportRuleSetComp- Returns:
- An
RWIterableover an ordered collection ofImportobjects .
-
getImportActionParameters
RWIterable<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 interfaceImportRuleSetComp- Returns:
- An
RWIterableover an ordered collection ofImportActionParameterobjects .
-
createImportActionParameter
ImportActionParameter createImportActionParameter()
Create a newImportActionParameterlinked to this object.- Returns:
- a new
ImportActionParameter.
-
getImportActions
RWIterable<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 interfaceImportRuleSetComp- Returns:
- An
RWIterableover an ordered collection ofImportActionobjects .
-
createImportAction
ImportAction createImportAction()
Create a newImportActionlinked to this object.- Returns:
- a new
ImportAction.
-
getImportActionByType
ImportAction getImportActionByType(ImportRuleSetActionType type)
Get the ImportAction by ImportRuleSetActionType.- Parameters:
type-- Returns:
- the ImportAction, or
nullif it could not be found
-
getImportRules
RWIterable<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 interfaceImportRuleSetComp- Returns:
- An
RWIterableover a collection ofImportRuleobjects , the collection will be ordered by UniqueId.
-
createImportRule
ImportRule createImportRule()
Create a newImportRulelinked to this object.- Returns:
- a new
ImportRule.
-
getImportRuleByName
ImportRule getImportRuleByName(String name)
Get the ImportRule by NameImportRuleSet.- Parameters:
name-- Returns:
- the ImportRule, or
nullif it could not be found
-
getImportRuleSetPartitionRenames
RWIterable<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 interfaceImportRuleSetComp- Returns:
- An
RWIterableover a collection ofImportRuleSetPartitionRenameobjects , the collection will be ordered by ProcessOrder.
-
createImportRuleSetPartitionRename
ImportRuleSetPartitionRename createImportRuleSetPartitionRename()
Create a newImportRuleSetPartitionRenamelinked to this object.- Returns:
- a new
ImportRuleSetPartitionRename.
-
checkCreatePrivilege
RequiredPermission 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.
-
checkViewPrivilege
RequiredPermission 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.
-
checkEditPrivilege
RequiredPermission 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.
-
checkDeletePrivilege
RequiredPermission 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.
-
-