com.webmethods.caf.faces.data.task
Class TaskAuditDisplayProvider

java.lang.Object
  extended by com.webmethods.caf.faces.bean.BaseFacesBean
      extended by com.webmethods.caf.faces.bean.BaseFacesSessionBean
          extended by com.webmethods.caf.faces.data.task.TaskAuditDisplayProvider
All Implemented Interfaces:
IPageFlowScopeAdapter

public class TaskAuditDisplayProvider
extends BaseFacesSessionBean

Helper class to assist with display of information from Task Audit


Field Summary
protected  ITaskAudit m_auditEntry
          TaskAudit entry being displayed
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
 
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
 
Constructor Summary
TaskAuditDisplayProvider()
          Default constructor
 
Method Summary
 Map getAuditProperties()
          Return all audit entry properties in a single map
 Object getAuditProperty(String propName)
          Helper method to return single property from audit entry properties map
 Date getDate()
          Returns datetime of audit entry
 String getDelegateDisplayName()
          Returns display name for delegate user
 String getDelegateID()
          Returns ID of the delegate user
 List getDifferences()
          Returns list of task differences for any task update operations
 String getID()
          Returns audit entry ID
 int getOperation()
          Returns audit entry operation
 String getOperationDisplayName()
          Returns display name for audit operation
protected  String getPrincipalDisplayName(String principalID)
          Helper method to return user/group/role display name by ID
 boolean getRollbackAllowed()
          Returns flag if rollback allowed for this audit entry
 String getSourceDirectoryURI()
          If originator of the task operation is a valid user, then return ID of this user.
 String getSourceDisplayName()
          Returns display name for the originator of the task operation.
 String getSourceURI()
          Returns ID of the originator of the task operation.
 ITaskAudit getTaskAudit()
          Returns task audit entry
 boolean isDelegated()
          Returns flag if this is delegate operation
protected  boolean isRuleAudit()
          Returns "true" if current audit entry is about task event/assignment operation
protected  void release()
          Override this method to release any resources associated with this session.
 void setTaskAudit(ITaskAudit taskAudit)
          Set task audit entry
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
 
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createValueBinding, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_auditEntry

protected ITaskAudit m_auditEntry
TaskAudit entry being displayed

Constructor Detail

TaskAuditDisplayProvider

public TaskAuditDisplayProvider()
Default constructor

Method Detail

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


getDifferences

public List 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 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