com.logicaldoc.web.document
Class DiscussionsManager

java.lang.Object
  extended by com.logicaldoc.web.document.DiscussionsManager

public class DiscussionsManager
extends java.lang.Object

Control that allows the user to list and select articles

Since:
4.5
Author:
Marco Meschieri - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
DiscussionsManager()
           
 
Method Summary
 java.lang.String addThread()
          Appends the new thread
 java.lang.String back()
           
 java.lang.String deleteComment()
          Deletes a comment
 java.lang.String deleteThread()
           
 void dispose()
          Cleans up the resources used by this class.
 java.lang.String getBody()
           
 javax.faces.component.UIInput getBodyInput()
           
 java.util.List<com.logicaldoc.core.document.DiscussionComment> getComments()
           
 int getCount()
           
 com.logicaldoc.core.document.DiscussionComment getSelectedComment()
           
 com.logicaldoc.core.document.Document getSelectedDocument()
           
 com.logicaldoc.core.document.DiscussionThread getSelectedThread()
           
 java.lang.String getSubject()
           
 javax.faces.component.UIInput getSubjectInput()
           
 java.util.Collection<com.logicaldoc.core.document.DiscussionThread> getThreads()
          Gets the list of threads which will be used by the ice:dataTable component.
 boolean isDeleteAllowed()
          Checks if the current user can delete threads and comments.
 java.lang.String postComment()
           
 java.lang.String replyTo()
           
 void selectComment(com.logicaldoc.core.document.DiscussionComment comment)
           
 void selectDocument(com.logicaldoc.core.document.Document doc)
          Changes the currently selected document and updates the articles list.
 void setBody(java.lang.String body)
           
 void setBodyInput(javax.faces.component.UIInput bodyInput)
           
 void setComments(java.util.List<com.logicaldoc.core.document.DiscussionComment> comments)
           
 void setDocumentNavigation(DocumentNavigation documentNavigation)
           
 void setSelectedComment(com.logicaldoc.core.document.DiscussionComment selectedComment)
           
 void setSelectedDocument(com.logicaldoc.core.document.Document selectedDocument)
           
 void setSelectedThread(com.logicaldoc.core.document.DiscussionThread thread)
           
 void setSubject(java.lang.String subject)
           
 void setSubjectInput(javax.faces.component.UIInput subjectInput)
           
 java.lang.String showComments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

DiscussionsManager

public DiscussionsManager()
Method Detail

getSubjectInput

public javax.faces.component.UIInput getSubjectInput()

setSubjectInput

public void setSubjectInput(javax.faces.component.UIInput subjectInput)

getBodyInput

public javax.faces.component.UIInput getBodyInput()

setBodyInput

public void setBodyInput(javax.faces.component.UIInput bodyInput)

getSubject

public java.lang.String getSubject()

setSubject

public void setSubject(java.lang.String subject)

getBody

public java.lang.String getBody()

setBody

public void setBody(java.lang.String body)

selectComment

public void selectComment(com.logicaldoc.core.document.DiscussionComment comment)

selectDocument

public void selectDocument(com.logicaldoc.core.document.Document doc)
Changes the currently selected document and updates the articles list.

Parameters:
doc -

dispose

public void dispose()
Cleans up the resources used by this class. This method could be called when a session destroyed event is called.


getThreads

public java.util.Collection<com.logicaldoc.core.document.DiscussionThread> getThreads()
Gets the list of threads which will be used by the ice:dataTable component.

Returns:
array list of threads

getCount

public int getCount()

back

public java.lang.String back()

addThread

public java.lang.String addThread()
Appends the new thread


isDeleteAllowed

public boolean isDeleteAllowed()
Checks if the current user can delete threads and comments. Only administrators can delete threads and comments.


replyTo

public java.lang.String replyTo()

postComment

public java.lang.String postComment()

showComments

public java.lang.String showComments()

getSelectedDocument

public com.logicaldoc.core.document.Document getSelectedDocument()

setSelectedDocument

public void setSelectedDocument(com.logicaldoc.core.document.Document selectedDocument)

getSelectedThread

public com.logicaldoc.core.document.DiscussionThread getSelectedThread()

setSelectedThread

public void setSelectedThread(com.logicaldoc.core.document.DiscussionThread thread)

setDocumentNavigation

public void setDocumentNavigation(DocumentNavigation documentNavigation)

deleteThread

public java.lang.String deleteThread()

deleteComment

public java.lang.String deleteComment()
Deletes a comment


getSelectedComment

public com.logicaldoc.core.document.DiscussionComment getSelectedComment()

setSelectedComment

public void setSelectedComment(com.logicaldoc.core.document.DiscussionComment selectedComment)

getComments

public java.util.List<com.logicaldoc.core.document.DiscussionComment> getComments()

setComments

public void setComments(java.util.List<com.logicaldoc.core.document.DiscussionComment> comments)


Copyright © 2008-2010 Logical Objects. All Rights Reserved.