Package com.redwood.scheduler.api.model
Interface ConstraintDefinition
- 
- All Superinterfaces:
- ApplicationObject,- BusinessKeyObject,- NamedRootObject,- NamedRootObjectComp,- PartitionableObject,- PartitionableObjectComp,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp,- UniqueNamedApplicationObject
 
 public interface ConstraintDefinition extends UniqueNamedApplicationObject, Readable The definition of a Constraint. Constraint definitions are used to create constraints.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringAS400The name of the AS400 Constraint.static StringFTPThe name of the FTP Constraint.static StringJDBCThe name of the JDBC Constraint.static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ConstraintDefinition" objects.static StringR2WCatalogThe name of the R2W Catalog Constraint.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_RANK_ALLThis rank is made of the following privileges: create , edit , deletestatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSQLPLUSThe name of the SQLPLUS Constraint.static QueryObjectType<ConstraintDefinition>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 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.StringgetFactoryClassName()Get the value for FactoryClassName.LibrarygetLibrary()Get the Library.ValiditygetValidity()Get the value for Validity.Set<Variable>getVariables()Get the Set of Variables related to ConstraintDefinition objects.voidsetFactoryClassName(String newFactoryClassName)Set the value for FactoryClassName.voidsetLibrary(Library newLibrary)Set the value for Library.- 
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 "ConstraintDefinition" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ConstraintDefinition> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
AS400static final String AS400 The name of the AS400 Constraint.- See Also:
- Constant Field Values
 
 - 
JDBCstatic final String JDBC The name of the JDBC Constraint.- See Also:
- Constant Field Values
 
 - 
FTPstatic final String FTP The name of the FTP Constraint.- See Also:
- Constant Field Values
 
 - 
SQLPLUSstatic final String SQLPLUS The name of the SQLPLUS Constraint.- See Also:
- Constant Field Values
 
 - 
R2WCatalogstatic final String R2WCatalog The name of the R2W Catalog Constraint.- See Also:
- Constant Field Values
 
 - 
SEC_PRIV_CREATEstatic final String SEC_PRIV_CREATE This privilege can be granted at a group 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_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: create , edit , delete- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFactoryClassNameString getFactoryClassName() Get the value for FactoryClassName. (The name of the Factory to instantiate the ConstraintDefinition.) 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.
 
 - 
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.
 
 - 
setFactoryClassNamevoid setFactoryClassName(String newFactoryClassName) Set the value for FactoryClassName. (The name of the Factory to instantiate the ConstraintDefinition.) This value is mandatory.- Parameters:
- newFactoryClassName- the new value for FactoryClassName. If this is- null, then the object cannot be persisted.
- 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.
 
 - 
getVariablesSet<Variable> getVariables() Get the Set of Variables related to ConstraintDefinition objects.- Returns:
- Set of Variablefor ConstraintDefinition.
 
 - 
getLibraryLibrary getLibrary() Get the Library.- Returns:
- Library
- 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.
 
 - 
setLibraryvoid setLibrary(Library newLibrary) Set the value for Library. This value is optional.- Parameters:
- newLibrary- is the object to set Library to. The library that the custom ConstraintDefinition depends upon.
 
 - 
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.
 
 - 
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.
 
 
- 
 
-