Class TaskAuditDisplayProvider
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.data.task.TaskAuditDisplayProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,EventListener
,HttpSessionBindingListener
Helper class to assist with display of information from Task Audit
-
Field Summary
FieldsFields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn all audit entry properties in a single mapgetAuditProperty
(String propName) Helper method to return single property from audit entry properties mapgetDate()
Returns datetime of audit entryReturns display name for delegate userReturns ID of the delegate userReturns list of task differences for any task update operationsgetID()
Returns audit entry IDint
Returns audit entry operationReturns display name for audit operationprotected String
getPrincipalDisplayName
(String principalID) Helper method to return user/group/role display name by IDboolean
Returns flag if rollback allowed for this audit entryIf originator of the task operation is a valid user, then return ID of this user.Returns display name for the originator of the task operation.Returns ID of the originator of the task operation.Returns task audit entryboolean
Returns flag if this is delegate operationprotected boolean
Returns "true" if current audit entry is about task event/assignment operationprotected boolean
protected void
release()
Override this method to release any resources associated with this session.void
setTaskAudit
(ITaskAudit taskAudit) Set task audit entryMethods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
m_auditEntry
TaskAudit entry being displayed
-
-
Constructor Details
-
TaskAuditDisplayProvider
public TaskAuditDisplayProvider()Default constructor
-
-
Method Details
-
setTaskAudit
Set task audit entry -
getTaskAudit
Returns task audit entry -
getRollbackAllowed
public boolean getRollbackAllowed()Returns flag if rollback allowed for this audit entry -
getID
Returns audit entry ID -
getOperation
public int getOperation()Returns audit entry operation -
getOperationDisplayName
Returns display name for audit operation -
getDate
Returns datetime of audit entry -
getSourceURI
Returns ID of the originator of the task operation. Could be either user name or event/assignment ID -
getSourceDirectoryURI
If originator of the task operation is a valid user, then return ID of this user. Otherwise returns null- Throws:
PortalException
-
getSourceDisplayName
Returns display name for the originator of the task operation. Could be name of the user, assignment or event- Throws:
PortalException
-
getDifferences
Returns list of task differences for any task update operations -
getDelegateID
Returns ID of the delegate user -
getDelegateDisplayName
Returns display name for delegate user -
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 classBaseFacesSessionBean
-
getPrincipalDisplayName
Helper method to return user/group/role display name by ID- Parameters:
principalID
- ID of the user/group/role- Returns:
- display name
-
getAuditProperty
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()
-