Package com.redwood.scheduler.api.model
Interface AuditObject
- 
- All Superinterfaces:
- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface AuditObject extends Root The audit record object for logging changes and performing restoration of changed objects.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringEXCLUSION_FILTER_AUDITDefines the exclusion filter that is applied before the diff is shown to the user in the audit trail.static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "AuditObject" 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_RESTOREThis 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: view , create , edit , delete , restorestatic StringSEC_RANK_CREATEThis rank is made of the following privileges: createstatic StringSEC_RANK_DELETEThis rank is made of the following privileges: create , view , restore , deletestatic StringSEC_RANK_EDITThis rank is made of the following privileges: create , view , restore , editstatic StringSEC_RANK_NONEThis rank has no privileges assigned to it.static StringSEC_RANK_VIEWThis rank is made of the following privileges: viewstatic QueryObjectType<AuditObject>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.RequiredPermissioncheckRestorePrivilege()Check whether or not the restore action can be performed on this object.RequiredPermissioncheckViewPrivilege()Check whether or not the view action can be performed on this object.ModelChangeActiongetAction()Get the value for Action.StringgetAdditionalInfo()Get the value for AdditionalInfo.StringgetAuditedObjectBusinessKey()Get the value for AuditedObjectBusinessKey.PartitiongetAuditedObjectPartition()Get the value for AuditedObjectPartition.StringgetAuditedObjectPartitionName()Get the value for AuditedObjectPartitionName.LonggetAuditedObjectPartitionUniqueId()Get the value for AuditedObjectPartitionUniqueId.StringgetAuditedObjectType()Get the value for AuditedObjectType.LonggetAuditedObjectUniqueId()Get the value for AuditedObjectUniqueId.StringgetDiff()Get the value for Diff.StringgetDiffText()Get the Audit Diff value as a text version.AuditLevelgetLevel()Get the value for Level.StringgetNewObjectDef()Get the value for NewObjectDef.StringgetOldObjectDef()Get the value for OldObjectDef.StringgetReason()Deprecated.StringgetSearchAdditionalInfo()Get the value for SearchAdditionalInfo.StringgetSearchAuditedObjectBusinessKey()Get the value for SearchAuditedObjectBusinessKey.StringgetSearchReason()Deprecated.StringgetSearchUser()Get the value for SearchUser.StringgetUser()Get the value for User.booleanhasNewObjectDef()An efficient way to determine whether NewObjectDef exists.booleanhasOldObjectDef()An efficient way to determine whether OldObjectDef exists.voidrestoreAfter()Restore an audited object from the archived value after the audited change was made.voidrestoreBefore()Restore an audited object from the archived value before the audited change was made.- 
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 "AuditObject" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<AuditObject> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
EXCLUSION_FILTER_AUDITstatic final String EXCLUSION_FILTER_AUDIT Defines the exclusion filter that is applied before the diff is shown to the user in the audit trail.- 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_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_PRIV_RESTOREstatic final String SEC_PRIV_RESTORE 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_CREATEstatic final String SEC_RANK_CREATE This rank is made of the following privileges: create- 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_EDITstatic final String SEC_RANK_EDIT This rank is made of the following privileges: create , view , restore , edit- See Also:
- Constant Field Values
 
 - 
SEC_RANK_DELETEstatic final String SEC_RANK_DELETE This rank is made of the following privileges: create , view , restore , delete- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges: view , create , edit , delete , restore- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getAuditedObjectTypeString getAuditedObjectType() Get the value for AuditedObjectType. (The type of the object that's change is being recorded.) 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.
 
 - 
getAuditedObjectUniqueIdLong getAuditedObjectUniqueId() Get the value for AuditedObjectUniqueId. (The unique id of the object that's change is being recorded.) 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.
 
 - 
getAuditedObjectBusinessKeyString getAuditedObjectBusinessKey() Get the value for AuditedObjectBusinessKey. (The business key of the object that's change is being recorded.) 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.
 
 - 
getAuditedObjectPartitionUniqueIdLong getAuditedObjectPartitionUniqueId() Get the value for AuditedObjectPartitionUniqueId. (Unique id of partition of 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.
 
 - 
getAuditedObjectPartitionPartition getAuditedObjectPartition() Get the value for AuditedObjectPartition. (Partition (based on AuditedObjectPartitionUniqueId) or null)- 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.
 
 - 
getAuditedObjectPartitionNameString getAuditedObjectPartitionName() Get the value for AuditedObjectPartitionName. (Partition name of audited object or null.)- 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.
 
 - 
getSearchAuditedObjectBusinessKeyString getSearchAuditedObjectBusinessKey() Get the value for SearchAuditedObjectBusinessKey. (The search form of the business key of the object that's change is being recorded.) 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.
 
 - 
getUserString getUser() Get the value for User. (The user that made the change.) 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.
 
 - 
getSearchUserString getSearchUser() Get the value for SearchUser. (The search form of the user.) 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.
 
 - 
getActionModelChangeAction getAction() Get the value for Action. (The action that was performed, be that create, modify or delete.) 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 auditing that is recorded for the 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.
 
 - 
getAdditionalInfoString getAdditionalInfo() Get the value for AdditionalInfo. (Additional information about the change.)- 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.
 
 - 
getSearchAdditionalInfoString getSearchAdditionalInfo() Get the value for SearchAdditionalInfo. (The search form of the additional information.)- 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.
 
 - 
getDiffString getDiff() Get the value for Diff. (The full text of the AuditObject diff.)- 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.
 
 - 
getOldObjectDefString getOldObjectDef() Get the value for OldObjectDef. (The full XML of the Audited Object definition before the audited change was made.)- 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.
 
 - 
getNewObjectDefString getNewObjectDef() Get the value for NewObjectDef. (The full XML of the Audited Object definition after the audited change was made.)- 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.
 
 - 
getDiffTextString getDiffText() Get the Audit Diff value as a text version.- Returns:
- The audit diff in text format
 
 - 
hasOldObjectDefboolean hasOldObjectDef() An efficient way to determine whether OldObjectDef exists.- Returns:
- true when OldObjectDef exists
 
 - 
hasNewObjectDefboolean hasNewObjectDef() An efficient way to determine whether NewObjectDef exists.- Returns:
- true when NewObjectDef exists
 
 - 
getReason@Deprecated String getReason() Deprecated.This method is deprecated, it was never used.The optional reason for why the change was made. This method as been deprecated as it was never used. - Returns:
- Return the reason why the change was made
 
 - 
getSearchReason@Deprecated String getSearchReason() Deprecated.This method is deprecated, it was never used.The search form of the reason. This method as been deprecated as it was never used. - Returns:
- Return the reason why the change was made in search form
 
 - 
restoreBeforevoid restoreBefore() Restore an audited object from the archived value before the audited change was made.
 - 
restoreAftervoid restoreAfter() Restore an audited object from the archived value after the audited change was made.
 - 
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.
 
 - 
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.
 
 - 
checkRestorePrivilegeRequiredPermission checkRestorePrivilege() Check whether or not the restore 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.
 
 
- 
 
-