Class TaskAuditDisplayProvider

All Implemented Interfaces:
IPageFlowScopeAdapter, EventListener, HttpSessionBindingListener

public class TaskAuditDisplayProvider extends BaseFacesSessionBean
Helper class to assist with display of information from Task Audit
  • Field Details

    • m_auditEntry

      protected ITaskAudit m_auditEntry
      TaskAudit entry being displayed
  • Constructor Details

    • TaskAuditDisplayProvider

      public TaskAuditDisplayProvider()
      Default constructor
  • Method Details

    • setTaskAudit

      public void setTaskAudit(ITaskAudit taskAudit)
      Set task audit entry
    • getTaskAudit

      public ITaskAudit getTaskAudit()
      Returns task audit entry
    • getRollbackAllowed

      public boolean getRollbackAllowed()
      Returns flag if rollback allowed for this audit entry
    • getID

      public String getID()
      Returns audit entry ID
    • getOperation

      public int getOperation()
      Returns audit entry operation
    • getOperationDisplayName

      public String getOperationDisplayName()
      Returns display name for audit operation
    • getDate

      public Date getDate()
      Returns datetime of audit entry
    • getSourceURI

      public String getSourceURI()
      Returns ID of the originator of the task operation. Could be either user name or event/assignment ID
    • getSourceDirectoryURI

      public String getSourceDirectoryURI() throws PortalException
      If originator of the task operation is a valid user, then return ID of this user. Otherwise returns null
      Throws:
      PortalException
    • getSourceDisplayName

      public String getSourceDisplayName()
      Returns display name for the originator of the task operation. Could be name of the user, assignment or event
      Throws:
      PortalException
    • getDifferences

      public List<String> getDifferences()
      Returns list of task differences for any task update operations
    • getDelegateID

      public String getDelegateID()
      Returns ID of the delegate user
    • getDelegateDisplayName

      public String getDelegateDisplayName()
      Returns display name for delegate user
    • getAuditProperties

      public Map<String,Object> getAuditProperties()
      Return all audit entry properties in a single map
    • isDelegated

      public boolean isDelegated()
      Returns flag if this is delegate operation
    • release

      protected void release()
      Override this method to release any resources associated with this session. Please note, the FacesContext is not valid for this function
      Specified by:
      release in class BaseFacesSessionBean
    • getPrincipalDisplayName

      protected String getPrincipalDisplayName(String principalID)
      Helper method to return user/group/role display name by ID
      Parameters:
      principalID - ID of the user/group/role
      Returns:
      display name
    • getAuditProperty

      public Object getAuditProperty(String propName)
      Helper method to return single property from audit entry properties map
      Parameters:
      propName - property name
      Returns:
      property value
    • isRuleAudit

      protected boolean isRuleAudit()
      Returns "true" if current audit entry is about task event/assignment operation
    • isVotingFinishedAudit

      protected boolean isVotingFinishedAudit()