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

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.comments.impl.CommentsListProvider
              extended by com.webmethods.caf.faces.data.task.TaskCommentsListProvider
All Implemented Interfaces:
IPageFlowScopeAdapter, ICommentsListProvider

public class TaskCommentsListProvider
extends CommentsListProvider

Specialized comments storage provider for tasks. It implements various storage types of comments


Field Summary
protected  ITraits cachedTraits
           
 
Fields inherited from class com.webmethods.caf.faces.data.comments.impl.CommentsListProvider
comments, containerID, containerURI, context
 
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
TaskCommentsListProvider()
           
TaskCommentsListProvider(String userID)
           
 
Method Summary
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
 
Methods inherited from class com.webmethods.caf.faces.data.comments.impl.CommentsListProvider
addComment, deleteComment, getCommentsList, getContainerID, refresh, release, updateComment
 
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

cachedTraits

protected ITraits cachedTraits
Constructor Detail

TaskCommentsListProvider

public TaskCommentsListProvider()
                         throws PortalException
Throws:
PortalException

TaskCommentsListProvider

public TaskCommentsListProvider(String userID)
                         throws PortalException
Throws:
PortalException
Method Detail

setContainerID

public void setContainerID(String containerID)
                    throws PortalException
Description copied from interface: ICommentsListProvider
Sets containerID for this comments list

Specified by:
setContainerID in interface ICommentsListProvider
Overrides:
setContainerID in class CommentsListProvider
Throws:
PortalException

canCreateComment

public boolean canCreateComment()
                         throws Exception
Description copied from interface: ICommentsListProvider
If current user could create new comments

Specified by:
canCreateComment in interface ICommentsListProvider
Overrides:
canCreateComment in class CommentsListProvider
Throws:
Exception

canDeleteComment

public boolean canDeleteComment(String commentID)
                         throws Exception
Description copied from interface: ICommentsListProvider
If current user could delete specific comment

Specified by:
canDeleteComment in interface ICommentsListProvider
Overrides:
canDeleteComment in class CommentsListProvider
Throws:
Exception

canUpdateComment

public boolean canUpdateComment(String commentID)
                         throws Exception
Description copied from interface: ICommentsListProvider
If current user could update specific comment

Specified by:
canUpdateComment in interface ICommentsListProvider
Overrides:
canUpdateComment in class CommentsListProvider
Throws:
Exception

acquireContext

protected IContext acquireContext()
Overrides:
acquireContext in class CommentsListProvider

releaseContext

protected void releaseContext(IContext context)
Overrides:
releaseContext in class CommentsListProvider