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 String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "ImportRuleSet" objects.static String
SEC_PRIV_CREATE
This privilege can be granted at a group level.static String
SEC_PRIV_DELETE
This privilege can be granted at a group level.static String
SEC_PRIV_EDIT
This privilege can be granted at a group level.static String
SEC_PRIV_VIEW
This privilege can be granted at a group level.static String
SEC_RANK_ALL
This rank is made of the following privileges: create , view , edit , deletestatic String
SEC_RANK_CREATE
This rank is made of the following privileges: createstatic String
SEC_RANK_DELETE
This rank is made of the following privileges: create , view , deletestatic String
SEC_RANK_EDIT
This rank is made of the following privileges: create , view , editstatic String
SEC_RANK_NONE
This rank has no privileges assigned to it.static String
SEC_RANK_VIEW
This rank is made of the following privileges: viewstatic QueryObjectType<ImportRuleSet>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.-
Fields inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
COPYRIGHT_MESSAGE_BKO, ID_BKO
-
Fields inherited from interface com.redwood.scheduler.api.model.Readable
COPYRIGHT_MESSAGE_E, ID_E
-
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 void
apply(Iterator<? extends SchedulerEntity> entities)
Apply this rule-set to a collection of objects.void
apply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog)
Apply this rule to a collection of objects.void
apply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog, ImportActionScriptObject scriptObject)
Apply this rule to a collection of objects.RequiredPermission
checkCreatePrivilege()
Check whether or not the create action can be performed on this object.RequiredPermission
checkDeletePrivilege()
Check whether or not the delete action can be performed on this object.RequiredPermission
checkEditPrivilege()
Check whether or not the edit action can be performed on this object.RequiredPermission
checkViewPrivilege()
Check whether or not the view action can be performed on this object.ImportAction
createImportAction()
Create a newImportAction
linked to this object.ImportActionParameter
createImportActionParameter()
Create a newImportActionParameter
linked to this object.ImportRule
createImportRule()
Create a newImportRule
linked to this object.ImportRuleSetPartitionRename
createImportRuleSetPartitionRename()
Create a newImportRuleSetPartitionRename
linked to this object.ImportAction
getImportAction()
Deprecated.ImportAction
getImportActionByType(ImportRuleSetActionType type)
Get the ImportAction by ImportRuleSetActionType.RWIterable<ImportActionParameter>
getImportActionParameters()
Get anRWIterable
over an ordered collection ofImportActionParameters
.RWIterable<ImportAction>
getImportActions()
Get anRWIterable
over an ordered collection ofImportActions
.ImportRule
getImportRuleByName(String name)
Get the ImportRule by NameImportRuleSet.RWIterable<ImportRule>
getImportRules()
Get anRWIterable
over a collection ofImportRules
, the collection will be ordered by UniqueId.RWIterable<ImportRuleSetPartitionRename>
getImportRuleSetPartitionRenames()
Get anRWIterable
over a collection ofImportRuleSetPartitionRenames
, the collection will be ordered by ProcessOrder.RWIterable<Import>
getImports()
Get anRWIterable
over an ordered collection ofImports
.Validity
getValidity()
Get the value for Validity.String
getVariablePrefix()
Get the value for VariablePrefix.void
setVariablePrefix(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 benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
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:
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:
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 ImportOverrideException
Apply this rule-set to a collection of objects.- Parameters:
entities
- The objects the override will be applied to.- Throws:
ImportOverrideException
- An import override rule could not be applied to an object.
-
apply
void apply(Iterator<? extends SchedulerEntity> entities, Logger jcsOutLog, Logger jcsErrLog) throws 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:
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 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:
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 anRWIterable
over 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:
getImports
in interfaceImportRuleSetComp
- Returns:
- An
RWIterable
over an ordered collection ofImport
objects .
-
getImportActionParameters
RWIterable<ImportActionParameter> getImportActionParameters()
Get anRWIterable
over 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:
getImportActionParameters
in interfaceImportRuleSetComp
- Returns:
- An
RWIterable
over an ordered collection ofImportActionParameter
objects .
-
createImportActionParameter
ImportActionParameter createImportActionParameter()
Create a newImportActionParameter
linked to this object.- Returns:
- a new
ImportActionParameter
.
-
getImportActions
RWIterable<ImportAction> getImportActions()
Get anRWIterable
over 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:
getImportActions
in interfaceImportRuleSetComp
- Returns:
- An
RWIterable
over an ordered collection ofImportAction
objects .
-
createImportAction
ImportAction createImportAction()
Create a newImportAction
linked to this object.- Returns:
- a new
ImportAction
.
-
getImportActionByType
ImportAction getImportActionByType(ImportRuleSetActionType type)
Get the ImportAction by ImportRuleSetActionType.- Parameters:
type
-- Returns:
- the ImportAction, or
null
if it could not be found
-
getImportRules
RWIterable<ImportRule> getImportRules()
Get anRWIterable
over 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:
getImportRules
in interfaceImportRuleSetComp
- Returns:
- An
RWIterable
over a collection ofImportRule
objects , the collection will be ordered by UniqueId.
-
createImportRule
ImportRule createImportRule()
Create a newImportRule
linked to this object.- Returns:
- a new
ImportRule
.
-
getImportRuleByName
ImportRule getImportRuleByName(String name)
Get the ImportRule by NameImportRuleSet.- Parameters:
name
-- Returns:
- the ImportRule, or
null
if it could not be found
-
getImportRuleSetPartitionRenames
RWIterable<ImportRuleSetPartitionRename> getImportRuleSetPartitionRenames()
Get anRWIterable
over 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:
getImportRuleSetPartitionRenames
in interfaceImportRuleSetComp
- Returns:
- An
RWIterable
over a collection ofImportRuleSetPartitionRename
objects , the collection will be ordered by ProcessOrder.
-
createImportRuleSetPartitionRename
ImportRuleSetPartitionRename createImportRuleSetPartitionRename()
Create a newImportRuleSetPartitionRename
linked 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
RequiredPermission
instance 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
RequiredPermission
instance 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
RequiredPermission
instance 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
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
-