com.hlcl.rql.hip.as
Class WorkflowCheckModel

java.lang.Object
  extended by com.hlcl.rql.hip.as.WorkflowCheckModel

public class WorkflowCheckModel
extends java.lang.Object

Author:
lejafr This class is the model for the check workflow pages JSP.

Constructor Summary
WorkflowCheckModel(PageArrayList pages, java.lang.String templateNameSuffixes, java.lang.String suffixesSeparator, java.lang.String noteNameSuffix)
          Creates a new workflow check model.
 
Method Summary
 boolean areTherePagesToCheck()
          Return true, if there are pages left for check.
 void confirm(java.lang.String pageId)
          Confirm the page for the given page id.
 java.util.Iterator getItemsIterator()
          Returns an iterator over the list of workflow check items.
 User getSelectedUser()
          Returns the actual selected user.
 java.lang.String getSelectedUserName()
          Returns the name of the actual selected user.
 java.util.Iterator getUsersIterator()
          Returns the iterator for the set of all users, who send pages to check.
 void reject(java.lang.String pageId, java.lang.String comment)
          Reject the page for the given page id and set the comment at the page.
 void selectUser(java.lang.String userName)
          Sets this model accordingly to the given user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowCheckModel

public WorkflowCheckModel(PageArrayList pages,
                          java.lang.String templateNameSuffixes,
                          java.lang.String suffixesSeparator,
                          java.lang.String noteNameSuffix)
                   throws RQLException
Creates a new workflow check model.

Throws:
RQLException
Method Detail

areTherePagesToCheck

public boolean areTherePagesToCheck()
Return true, if there are pages left for check.


confirm

public void confirm(java.lang.String pageId)
             throws RQLException
Confirm the page for the given page id. The list of items and pages are not reduced!

Throws:
RQLException

getItemsIterator

public java.util.Iterator getItemsIterator()
Returns an iterator over the list of workflow check items.


getSelectedUser

public User getSelectedUser()
Returns the actual selected user.


getSelectedUserName

public java.lang.String getSelectedUserName()
                                     throws RQLException
Returns the name of the actual selected user.

Throws:
RQLException

getUsersIterator

public java.util.Iterator getUsersIterator()
Returns the iterator for the set of all users, who send pages to check.


reject

public void reject(java.lang.String pageId,
                   java.lang.String comment)
            throws RQLException
Reject the page for the given page id and set the comment at the page. The list of items and pages are not reduced!

Throws:
RQLException

selectUser

public void selectUser(java.lang.String userName)
                throws RQLException
Sets this model accordingly to the given user. Otherwise ignore this request.

Throws:
RQLException