class: MyItemsRetrieverRequestBean

public class: MyItemsRetrieverRequestBean
Author: Markus Haarlaender (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 2544 $ $LastChangedDate: 2009-04-24 14:; Complexity: 1
Dates: Created: 16.07.2009 15:32:09; Modified: 16.07.2009 15:32:09;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {92C1EBDB-DBC6-48ae-A555-F71614CB15AB}
This bean is an implementation of the BaseListRetrieverRequestBean class for the My Items workspace. It uses the PubItemListSessionBean as corresponding BasePaginatorListSessionBean and adds additional functionality for filtering the items by their state.
 

Goto: Custom Properties, Fields, Methods

Extends: BaseListRetrieverRequestBean

See also: BaseListRetrieverRequestBean, MyTasksRetrieverRequestBean

Appears in: depositorWS

Connections
 
Custom Properties
 
MyItemsRetrieverRequestBean Attributes
Attribute Details
public static String
  BEAN_NAME
Initial: "MyItemsRetrieverRequestBean"
private List
  importSelectItems
Notes: A list with menu entries for the import filter menu.
private List
  itemStateSelectItems
Notes: The menu entries of the item state filtering menu
private static Logger
  logger
Initial: Logger.getLogger(MyItemsRetrieverRequestBean.class)
private int
  numberOfRecords
Notes: The total number of records
private static String
  parameterSelectedImport
Initial: "import"
Notes: import filter.
protected static String
  parameterSelectedItemState
Initial: "itemState"
Notes: The GET parameter name for the item state.
private String
  selectedImport
Notes: The currently selected import tag.
private String
  selectedItemState
Notes: The currently selected item state.
package AccountUserVO
  userVO
Notes: This workspace's user.
 
MyItemsRetrieverRequestBean Methods
Operation Details
public
changeImport():String
Sequential
Notes: Called by JSF whenever the context filter menu is changed. Causes a redirect to the page with updated import GET parameter.
@return
public
changeItemState():String
Sequential
Notes: Called by JSF whenever the item state menu is changed.
@return
protected
checkLogin():void
Sequential
Notes: Checks if the user is logged in. If not, redirects to the login page.
protected
checkSortCriterias(
   SORT_CRITERIA sc):void
Sequential
Notes: Checks if the selected sorting criteria is currently available. If not (empty string), it displays a warning message to the user.
public
getImportSelectItems():List
Sequential
Notes: @return the importSelectItems
public
getItemStateSelectItems():List
Sequential
Notes: Sets and returns the menu entries of the item state filter menu.
@return
public
getListPageName():String
Sequential
Tags: annotations=@Override
public
getSelectedImport():String
Sequential
Notes: @return the selectedImport
public
getSelectedItemState():String
Sequential
Notes: Returns the currently selected item state filter
@return
public
getSelectedItemStateLabel():String
Sequential
Notes: Returns the label for the currently selected item state.
@return
public
getTotalNumberOfRecords():int
Sequential
Tags: annotations=@Override
public
getType():String
Sequential
Tags: annotations=@Override
public
init():void
Sequential
Tags: annotations=@Override
public
isItemSpecific():boolean
Sequential
Tags: annotations=@Override
public
MyItemsRetrieverRequestBean():
Sequential
public
readOutParameters():void
Sequential
Tags: annotations=@Override
Notes: Reads out the item state parameter from the HTTP GET request and sets an default value if it is null.
public
retrieveList(
   int offset,
   int limit,
   SORT_CRITERIA sc):List
Sequential
Tags: annotations=@Override
public
setImportSelectItems(
   List importSelectItems):void
Sequential
public
setItemStateSelectItems(
   List itemStateSelectItem):void
Sequential
Notes: Sets the current item state filter
public
setSelectedImport(
   String selectedImport):void
Sequential
public
setSelectedItemState(
   String selectedItemState):void
Sequential
Notes: Sets the selected item state filter