public class TaskCommentsListProvider extends CommentsListProvider
Modifier and Type | Field and Description |
---|---|
protected ITraits |
cachedTraits |
static int |
TASK_ACTIVITY |
static int |
TASK_TYPE_COMPONENT |
comments, containerID, containerURI, context
fExpireWithPageFlow
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
TaskCommentsListProvider() |
TaskCommentsListProvider(String userID) |
Modifier and Type | Method and Description |
---|---|
protected IContext |
acquireContext() |
boolean |
canCreateComment()
If current user could create new comments
|
boolean |
canDeleteComment(String commentID)
If current user could delete specific comment
|
boolean |
canUpdateComment(String commentID)
If current user could update specific comment
|
protected void |
releaseContext(IContext context) |
void |
setContainerID(String containerID)
Sets containerID for this comments list
|
addComment, createAclManager, deleteComment, getCommentsList, getContainerID, refresh, release, updateComment
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
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
protected ITraits cachedTraits
public static final int TASK_TYPE_COMPONENT
public static final int TASK_ACTIVITY
public TaskCommentsListProvider() throws PortalException
PortalException
public TaskCommentsListProvider(String userID) throws PortalException
PortalException
public void setContainerID(String containerID) throws PortalException
ICommentsListProvider
setContainerID
in interface ICommentsListProvider
setContainerID
in class CommentsListProvider
PortalException
public boolean canCreateComment() throws Exception
ICommentsListProvider
canCreateComment
in interface ICommentsListProvider
canCreateComment
in class CommentsListProvider
Exception
public boolean canDeleteComment(String commentID) throws Exception
ICommentsListProvider
canDeleteComment
in interface ICommentsListProvider
canDeleteComment
in class CommentsListProvider
Exception
public boolean canUpdateComment(String commentID) throws Exception
ICommentsListProvider
canUpdateComment
in interface ICommentsListProvider
canUpdateComment
in class CommentsListProvider
Exception
protected IContext acquireContext()
acquireContext
in class CommentsListProvider
protected void releaseContext(IContext context)
releaseContext
in class CommentsListProvider