Package com.redwood.scheduler.api.model
Interface AuditRule
- 
- All Superinterfaces:
- BusinessKeyObject,- NamedRootObject,- NamedRootObjectComp,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface AuditRule extends NamedRootObject, BusinessKeyObject, Readable The rule for how objects should be audited.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringAUDITABLE_BUT_NOT_EXPORTABLE_OBJECTSList of objects that are auditable but not exportable.static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "AuditRule" 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_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<AuditRule>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 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.ApplicationgetApplication()Get the Application.ApplicationMatchgetApplicationRule()Get the value for ApplicationRule.AuditLevelgetLevel()Get the value for Level.StringgetNamePattern()Get the value for NamePattern.AuditNameMatchTypegetNamePatternMatchType()Get the value for NamePatternMatchType.ApplicationgetParentApplication()Get the ParentApplication.StringgetPartitionPattern()Get the value for PartitionPattern.AuditNameMatchTypegetPartitionPatternMatchType()Get the value for PartitionPatternMatchType.StringgetReasonRequiredRegEx()Deprecated.This attribute is no longer usedStringgetRuleObjectType()Get the value for RuleObjectType.booleanisEnabled()Get the value for Enabled.booleanisReasonRequired()Deprecated.This attribute is no longer usedvoidsetApplication(Application newApplication)Set the value for Application.voidsetApplicationRule(ApplicationMatch newApplicationRule)Set the value for ApplicationRule.voidsetEnabled(boolean newEnabled)Set the value for Enabled.voidsetLevel(AuditLevel newLevel)Set the value for Level.voidsetNamePattern(String newNamePattern)Set the value for NamePattern.voidsetNamePatternMatchType(AuditNameMatchType newNamePatternMatchType)Set the value for NamePatternMatchType.voidsetParentApplication(Application newParentApplication)Set the value for ParentApplication.voidsetPartitionPattern(String newPartitionPattern)Set the value for PartitionPattern.voidsetPartitionPatternMatchType(AuditNameMatchType newPartitionPatternMatchType)Set the value for PartitionPatternMatchType.voidsetReasonRequired(boolean newReasonRequired)Deprecated.This attribute is no longer usedvoidsetReasonRequiredRegEx(String newReasonRequiredRegEx)Deprecated.This attribute is no longer usedvoidsetRuleObjectType(String newRuleObjectType)Set the value for RuleObjectType.- 
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.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 "AuditRule" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<AuditRule> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
AUDITABLE_BUT_NOT_EXPORTABLE_OBJECTSstatic final String AUDITABLE_BUT_NOT_EXPORTABLE_OBJECTS List of objects that are auditable but not exportable.- 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_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_VIEWstatic final String SEC_RANK_VIEW This rank is made of the following privileges: view- 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- 
getRuleObjectTypeString getRuleObjectType() Get the value for RuleObjectType. (The type of object the rule applies to.) 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.
 
 - 
getLevelAuditLevel getLevel() Get the value for Level. (The level of the audit log to keep for the object type) 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.
 
 - 
isReasonRequired@Deprecated boolean isReasonRequired() Deprecated.This attribute is no longer usedGet the value for ReasonRequired. (Deprecated attribute, do not use. Is a reason required for audit record) - 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.
 
 - 
getReasonRequiredRegEx@Deprecated String getReasonRequiredRegEx() Deprecated.This attribute is no longer usedGet the value for ReasonRequiredRegEx. (Deprecated attribute, do not use. The regular expression for filtering the required reason) - 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.
 
 - 
isEnabledboolean isEnabled() Get the value for Enabled. (Enable/disable the audit rule)- 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.
 
 - 
getApplicationRuleApplicationMatch getApplicationRule() Get the value for ApplicationRule. (Rule for the Application match.) 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.
 
 - 
getNamePatternString getNamePattern() Get the value for NamePattern. (Pattern for the Name of the Audited object.)- 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.
 
 - 
getNamePatternMatchTypeAuditNameMatchType getNamePatternMatchType() Get the value for NamePatternMatchType. (The type of pattern match for the Name of the Audited object.) 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.
 
 - 
getPartitionPatternString getPartitionPattern() Get the value for PartitionPattern. (Pattern for the Partition of the Audited object.)- 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.
 
 - 
getPartitionPatternMatchTypeAuditNameMatchType getPartitionPatternMatchType() Get the value for PartitionPatternMatchType. (The type of pattern match for the Partition of the Audited object.) 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.
 
 - 
setRuleObjectTypevoid setRuleObjectType(String newRuleObjectType) Set the value for RuleObjectType. (The type of object the rule applies to.) This value is mandatory.- Parameters:
- newRuleObjectType- the new value for RuleObjectType. 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.
 
 - 
setLevelvoid setLevel(AuditLevel newLevel) Set the value for Level. (The level of the audit log to keep for the object type) This value is mandatory.- Parameters:
- newLevel- the new value for Level. 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.
 
 - 
setReasonRequired@Deprecated void setReasonRequired(boolean newReasonRequired) Deprecated.This attribute is no longer usedSet the value for ReasonRequired. (Deprecated attribute, do not use. Is a reason required for audit record) - Parameters:
- newReasonRequired- the new value for ReasonRequired.
- 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.
 
 - 
setReasonRequiredRegEx@Deprecated void setReasonRequiredRegEx(String newReasonRequiredRegEx) Deprecated.This attribute is no longer usedSet the value for ReasonRequiredRegEx. (Deprecated attribute, do not use. The regular expression for filtering the required reason) This value is optional. - Parameters:
- newReasonRequiredRegEx- the new value for ReasonRequiredRegEx.
- 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.
 
 - 
setEnabledvoid setEnabled(boolean newEnabled) Set the value for Enabled. (Enable/disable the audit rule)- Parameters:
- newEnabled- the new value for Enabled.
- 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.
 
 - 
setApplicationRulevoid setApplicationRule(ApplicationMatch newApplicationRule) Set the value for ApplicationRule. (Rule for the Application match.) This value is mandatory.- Parameters:
- newApplicationRule- the new value for ApplicationRule. 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.
 
 - 
setNamePatternvoid setNamePattern(String newNamePattern) Set the value for NamePattern. (Pattern for the Name of the Audited object.) This value is optional.- Parameters:
- newNamePattern- the new value for NamePattern.
- 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.
 
 - 
setNamePatternMatchTypevoid setNamePatternMatchType(AuditNameMatchType newNamePatternMatchType) Set the value for NamePatternMatchType. (The type of pattern match for the Name of the Audited object.) This value is mandatory.- Parameters:
- newNamePatternMatchType- the new value for NamePatternMatchType. 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.
 
 - 
setPartitionPatternvoid setPartitionPattern(String newPartitionPattern) Set the value for PartitionPattern. (Pattern for the Partition of the Audited object.) This value is optional.- Parameters:
- newPartitionPattern- the new value for PartitionPattern.
- 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.
 
 - 
setPartitionPatternMatchTypevoid setPartitionPatternMatchType(AuditNameMatchType newPartitionPatternMatchType) Set the value for PartitionPatternMatchType. (The type of pattern match for the Partition of the Audited object.) This value is mandatory.- Parameters:
- newPartitionPatternMatchType- the new value for PartitionPatternMatchType. 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.
 
 - 
getApplicationApplication getApplication() Get the Application.- Returns:
- Application
- 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.
 
 - 
getParentApplicationApplication getParentApplication() Get the ParentApplication.- Returns:
- ParentApplication
- 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.
 
 - 
setApplicationvoid setApplication(Application newApplication) Set the value for Application. This value is optional.- Parameters:
- newApplication- is the object to set Application to. The optional Application for an AuditRule.
 
 - 
setParentApplicationvoid setParentApplication(Application newParentApplication) Set the value for ParentApplication. This value is optional.- Parameters:
- newParentApplication- is the object to set ParentApplication to. Audits rule can be group descendants of ApplicationObject.
 
 - 
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.
 
 
- 
 
-