|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.data.comments.impl.CommentsListProvider
public class CommentsListProvider
Field Summary | |
---|---|
protected ICommentEntry[] |
comments
|
protected String |
containerID
|
protected IURI |
containerURI
|
protected IContext |
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 | |
---|---|
CommentsListProvider()
|
Method Summary | |
---|---|
protected IContext |
acquireContext()
|
String |
addComment(String text,
boolean isHtml,
List attachments)
Adds new comment |
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 |
void |
deleteComment(String commentID)
Deletes specified comment |
ICommentEntry[] |
getCommentsList()
Returns list of all comments |
String |
getContainerID()
Returns containerID for the comments list |
void |
refresh()
Refreshes content of the provider |
protected void |
release()
Override this method to release any resources associated with this session. |
protected void |
releaseContext(IContext context)
|
void |
setContainerID(String containerID)
Sets containerID for this comments list |
void |
updateComment(String commentID,
String text,
List attachments,
List deleteAttachments)
Updates an existing comment |
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 |
---|
protected IContext context
protected String containerID
protected IURI containerURI
protected ICommentEntry[] comments
Constructor Detail |
---|
public CommentsListProvider() throws PortalException
PortalException
Method Detail |
---|
public String getContainerID()
ICommentsListProvider
getContainerID
in interface ICommentsListProvider
public void setContainerID(String containerID) throws PortalException
ICommentsListProvider
setContainerID
in interface ICommentsListProvider
PortalException
protected void release()
BaseFacesSessionBean
release
in class BaseFacesSessionBean
public String addComment(String text, boolean isHtml, List attachments) throws Exception
ICommentsListProvider
addComment
in interface ICommentsListProvider
text
- comment textisHtml
- if text is in HTML formatattachments
- list of attachments
Exception
public boolean canCreateComment() throws Exception
ICommentsListProvider
canCreateComment
in interface ICommentsListProvider
Exception
public boolean canDeleteComment(String commentID) throws Exception
ICommentsListProvider
canDeleteComment
in interface ICommentsListProvider
Exception
public boolean canUpdateComment(String commentID) throws Exception
ICommentsListProvider
canUpdateComment
in interface ICommentsListProvider
Exception
public void deleteComment(String commentID) throws Exception
ICommentsListProvider
deleteComment
in interface ICommentsListProvider
Exception
public ICommentEntry[] getCommentsList() throws Exception
ICommentsListProvider
getCommentsList
in interface ICommentsListProvider
Exception
public void updateComment(String commentID, String text, List attachments, List deleteAttachments) throws Exception
ICommentsListProvider
updateComment
in interface ICommentsListProvider
commentID
- commentID to updatetext
- new text for commentattachments
- list of new or updates attachmentsdeleteAttachments
- list of deleted attachments (by name)
Exception
public void refresh()
ICommentsListProvider
refresh
in interface ICommentsListProvider
protected IContext acquireContext()
protected void releaseContext(IContext context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |