Package com.redwood.scheduler.api.model
Interface ExportRule
- 
- All Superinterfaces:
- BusinessKeyObject,- Detail,- ExportRuleComp,- ExportRuleSetComponent,- NamedDetailObject,- Readable,- SchedulerEntity,- SchedulerEntityComp
 
 public interface ExportRule extends ExportRuleComp, NamedDetailObject, ExportRuleSetComponent, BusinessKeyObject, Readable A rule that defines a set of objects to include in an object. The objects covered by a rule are always of the same type. The set of objects is those which match the associated QueryFilter.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ExportRule" 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<ExportRule>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 StringgetDescriptionTranslationKey()a description that is useful for display purposes.ExportRuleSetgetExportRuleSet()Get the ExportRuleSet.QueryFiltergetFilter()Get the value for Filter.ObjectDefinitiongetFilterObjectType()Get the value for FilterObjectType.RWIterable<SchedulerEntity>getItemsToExport()This method returns aRWIterablewith all of the items that this ExportRule would add to the ExportRuleSet.booleanisExportContents()Get the value for ExportContents.voidsetExportContents(boolean newExportContents)Set the value for ExportContents.voidsetFilterObjectType(ObjectDefinition newFilterObjectType)Set the value for FilterObjectType.- 
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 "ExportRule" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ExportRule> 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- 
getFilterObjectTypeObjectDefinition getFilterObjectType() Get the value for FilterObjectType. (This is the object type for the objects to be filtered by this rule. Note that setting a new object type will create a QueryFilter if there no QueryFilter was set. All conditions that were already specified will be removed if the object type is changed. )- 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.
 
 - 
isExportContentsboolean isExportContents() Get the value for ExportContents. (Set whether the items should be exported recursively. )- Specified by:
- isExportContentsin interface- ExportRuleSetComponent
- 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.
- See Also:
- ExportRuleItem.isExportContents(),- isExportContents()
 
 - 
getFilterQueryFilter getFilter() Get the value for Filter. (Which query-filter this rule uses to select objects for export.)- 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.
 
 - 
setFilterObjectTypevoid setFilterObjectType(ObjectDefinition newFilterObjectType) Set the value for FilterObjectType. (This is the object type for the objects to be filtered by this rule. Note that setting a new object type will create a QueryFilter if there no QueryFilter was set. All conditions that were already specified will be removed if the object type is changed. ) This value is optional.- Parameters:
- newFilterObjectType- the new value for FilterObjectType.
- 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.
 
 - 
setExportContentsvoid setExportContents(boolean newExportContents) Set the value for ExportContents. (Set whether the items should be exported recursively. )- Specified by:
- setExportContentsin interface- ExportRuleSetComponent
- Parameters:
- newExportContents- the new value for ExportContents.
- 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.
- See Also:
- ExportRuleItem.setExportContents(boolean),- setExportContents(boolean)
 
 - 
getItemsToExportRWIterable<SchedulerEntity> getItemsToExport() This method returns aRWIterablewith all of the items that this ExportRule would add to the ExportRuleSet.- Specified by:
- getItemsToExportin interface- ExportRuleComp
- Specified by:
- getItemsToExportin interface- ExportRuleSetComponent
- Returns:
- The set of all items that would be exported by this ExportRuleSet
- See Also:
- ExportRuleItem.getItemsToExport(),- getItemsToExport()
 
 - 
getDescriptionTranslationKeyString getDescriptionTranslationKey() a description that is useful for display purposes. This might need translating by being passed to SchedulerSession.translateField(String).- Specified by:
- getDescriptionTranslationKeyin interface- ExportRuleSetComponent
- Returns:
- either a description of this component or a translation key for the description of this component.
 
 - 
getExportRuleSetExportRuleSet getExportRuleSet() Get the ExportRuleSet.- Specified by:
- getExportRuleSetin interface- ExportRuleSetComponent
- Returns:
- ExportRuleSet
- 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.
- See Also:
- ExportRuleItem.getExportRuleSet(),- getExportRuleSet()
 
 
- 
 
-