org.opensubsystems.inventory.util
Class InventoryUtils

java.lang.Object
  extended by org.opensubsystems.inventory.util.InventoryUtils

public final class InventoryUtils
extends java.lang.Object

Collection of useful code snippets to work with different data entities in inventory subsystem.

Version:
$Id: InventoryUtils.java,v 1.3 2007/03/24 08:33:29 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision.

Method Summary
static org.opensubsystems.patterns.listdata.data.ListOptions getItemIdentificationListOptions(int iItemId)
          Get list options which can be used to load identifications for a specified item.
static org.opensubsystems.patterns.listdata.data.ListOptions getItemUnitListOptions(int iItemId)
          Get list options which can be used to load units for a specified item.
static org.opensubsystems.patterns.listdata.data.ListOptions getRootCategoryListOptions(int iInventoryId)
          Get list options which can be used to load root categories.
static org.opensubsystems.patterns.listdata.data.ListOptions getSubcategoryListOptions(int iRootCategoryId)
          Get list options which can be used to load subcategories for a specified category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootCategoryListOptions

public static org.opensubsystems.patterns.listdata.data.ListOptions getRootCategoryListOptions(int iInventoryId)
Get list options which can be used to load root categories. By default there is no page size set.

Parameters:
iInventoryId - - inventory to load the root categories for
Returns:
ListOptions - options to load root categories

getSubcategoryListOptions

public static org.opensubsystems.patterns.listdata.data.ListOptions getSubcategoryListOptions(int iRootCategoryId)
Get list options which can be used to load subcategories for a specified category. By default there is no page size set.

Parameters:
iRootCategoryId - - root category to load the subcategories for
Returns:
ListOptions - options to load subcategories

getItemIdentificationListOptions

public static org.opensubsystems.patterns.listdata.data.ListOptions getItemIdentificationListOptions(int iItemId)
Get list options which can be used to load identifications for a specified item. By default there is no page size set.

Parameters:
iItemId - - item to load the identifications for
Returns:
ListOptions - options to load identifications for an item

getItemUnitListOptions

public static org.opensubsystems.patterns.listdata.data.ListOptions getItemUnitListOptions(int iItemId)
Get list options which can be used to load units for a specified item. By default there is no page size set.

Parameters:
iItemId - - item to load the identifications for
Returns:
ListOptions - options to load units for an item


Copyright © 2003 - 2006 OpenSubsystems s.r.o.