com.logicaldoc.web.communication
Class MessagesRecordsManager

java.lang.Object
  extended by com.logicaldoc.web.communication.MessagesRecordsManager

public class MessagesRecordsManager
extends java.lang.Object

The MessagesRecordsManager class is responsible for constructing the list of SystemMessage beans which will be bound to a ice:dataTable JSF component.

Large data sets could be handle by adding a ice:dataPaginator. Alternatively the dataTable could also be hidden and the dataTable could be added to scrollable ice:panelGroup.

Since:
3.0
Author:
Marco Meschieri - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
MessagesRecordsManager()
           
 
Method Summary
 java.lang.String addMessage()
          Shows the message insert form
 java.lang.String deleteMessage()
           
 void dispose()
          Cleans up the resources used by this class.
 int getCount()
           
 java.util.Collection<com.logicaldoc.core.communication.SystemMessage> getMessages()
          Gets the list of SystemMessages which will be used by the ice:dataTable component.
 PageContentBean getSelectedPanel()
           
 int getToBeReadCount()
           
 java.lang.String listMessages()
          Reloads the messages list
 java.lang.String selectMessage()
           
 void setForm(MessageForm form)
           
 void setNavigation(NavigationBean navigation)
           
 void setSelectedPanel(PageContentBean panel)
           
 
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

MessagesRecordsManager

public MessagesRecordsManager()
Method Detail

getSelectedPanel

public PageContentBean getSelectedPanel()

setSelectedPanel

public void setSelectedPanel(PageContentBean panel)

listMessages

public java.lang.String listMessages()
Reloads the messages list


addMessage

public java.lang.String addMessage()
Shows the message insert form


dispose

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


getMessages

public java.util.Collection<com.logicaldoc.core.communication.SystemMessage> getMessages()
Gets the list of SystemMessages which will be used by the ice:dataTable component.


selectMessage

public java.lang.String selectMessage()

deleteMessage

public java.lang.String deleteMessage()

getToBeReadCount

public int getToBeReadCount()

getCount

public int getCount()

setNavigation

public void setNavigation(NavigationBean navigation)

setForm

public void setForm(MessageForm form)


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