class: DepositorWS

public class: DepositorWS
Author: : Tobias Schraut; Thomas Diebäcker, created 10.01.2007
Project: Phase: 1.0; Status: Proposed; Version: : $Revision: 1850 $ $LastChangedDate: 2008-12-17 1; Complexity: 1
Dates: Created: 16.07.2009 15:32:08; Modified: 16.07.2009 15:32:08;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {46B469E9-78F6-4321-B8E8-E84D85A3E8BC}
Fragment class for the Depositor Workspace. This class provides all functionality for choosing one or more items out of a list, depending on the status of the items. Items can be viewed, edited, deleted or submitted from this point.
 

Goto: Custom Properties, Fields, Methods

Extends: ItemList

See also: ItemList

Appears in: depositorWS

Connections
 
Custom Properties
 
DepositorWS Attributes
Attribute Details
public static const String
  BEAN_NAME
Initial: "DepositorWS"
private HtmlSelectOneMenu
  cboItemstate
Initial: new HtmlSelectOneMenu()
private boolean
  enableNoItemMsg
Initial: false
private HtmlOutputLink
  lnkDelete
Initial: new HtmlOutputLink()
private HtmlCommandLink
  lnkEdit
Initial: new HtmlCommandLink()
Notes: bound components in JSP
private HtmlCommandLink
  lnkModify
Initial: new HtmlCommandLink()
private HtmlCommandLink
  lnkSubmit
Initial: new HtmlCommandLink()
private HtmlCommandLink
  lnkView
Initial: new HtmlCommandLink()
private HtmlCommandLink
  lnkWithdraw
Initial: new HtmlCommandLink()
public static const String
  LOAD_DEPOSITORWS
Initial: "loadDepositorWS"
Notes: Faces navigation string
private static Logger
  logger
Initial: Logger.getLogger(DepositorWS.class)
 
DepositorWS Methods
Operation Details
public
changeItemState():String
Sequential
Notes: Called when the itemState is changed. Creates a new list according to the new state.
@return string, identifying the page that should be navigated to after this methodcall
protected
createDynamicItemList2():void
Sequential
Notes: Creates the panel newly according to the values in the FacesBean.
private
createItemList(
   String newItemState):String
Sequential
Notes: Creates a new itemList in the FacesBean and forces the UI component to create a new itemList.
@return string, identifying the page that should be navigated to after this methodcall
public
deleteSelectedItems():String
Sequential
Notes: Deletes the selected items.
@return string, identifying the page that should be navigated to after this methodcall
public
DepositorWS():
Sequential
Notes: Public constructor.
public
editItem():String
Sequential
Notes: Edit the selected items.
@return string, identifying the page that should be navigated to after this methodcall
protected
enableLinks(
   String itemState,
   int itemListSize):void
Sequential
Notes: Enables or disables the action links according to item state and availability of items.
protected
getApplicationBean():ApplicationBean
Sequential
Notes: Returns the ApplicationBean.
@return a reference to the scoped data bean (ApplicationBean)
public
getCboItemstate():HtmlSelectOneMenu
Sequential
protected
getCollectionListSessionBean():ContextListSessionBean
Sequential
Notes: Returns the ContextListSessionBean.
@return a reference to the scoped data bean (ContextListSessionBean)
public
getEnableNoItemMsg():boolean
Sequential
protected
getItemListSessionBean():ItemListSessionBean
Sequential
Notes: Returns the ItemListSessionBean.
@return a reference to the scoped data bean (ItemListSessionBean)
public
getITEMSTATE_OPTIONS():SelectItem
Sequential
public
getLnkDelete():HtmlOutputLink
Sequential
public
getLnkEdit():HtmlCommandLink
Sequential
public
getLnkModify():HtmlCommandLink
Sequential
public
getLnkSubmit():HtmlCommandLink
Sequential
public
getLnkView():HtmlCommandLink
Sequential
public
getLnkWithdraw():HtmlCommandLink
Sequential
protected
getSessionBean():DepositorWSSessionBean
Sequential
Notes: Returns the DepositorWSSessionBean.
@return a reference to the scoped data bean (DepositorWSSessionBean)
public
init():void
Sequential
Notes: Callback method that is called whenever a page containing this page fragment is navigated to, either directly via a URL, or indirectly via page navigation.
public
setCboItemstate(
   HtmlSelectOneMenu cboItemstate):void
Sequential
public
setEnableNoItemMsg(
   boolean enableNoItemMsg):void
Sequential
public
setLnkDelete(
   HtmlOutputLink lnkDelete):void
Sequential
public
setLnkEdit(
   HtmlCommandLink lnkEdit):void
Sequential
public
setLnkModify(
   HtmlCommandLink lnkModify):void
Sequential
public
setLnkSubmit(
   HtmlCommandLink lnkSubmit):void
Sequential
public
setLnkView(
   HtmlCommandLink lnkView):void
Sequential
public
setLnkWithdraw(
   HtmlCommandLink lnkWithdraw):void
Sequential
public
showItem():String
Sequential
Notes: Shows an item identified by the itemID in the parameters of the FacesContext. This method is called when a user directly clicks on a link of an item. @return string, identifying the page that should be navigated to after this methodcall
public
submitSelectedItems():String
Sequential
Notes: Submits the selected items. Changed by FrM: Inserted validation and call to "enter submission comment" page.
@return string, identifying the page that should be navigated to after this methodcall
public
viewItem():String
Sequential
Notes: View the selected items. This method is called when the user selects one or more items and then clicks on the view-link in the DepositorWS.
@return string, identifying the page that should be navigated to after this methodcall
public
withdrawSelectedItem():String
Sequential
Notes: Withdraws the selected item.
@return string, identifying the page that should be navigated to after this methodcall