com.plumtree.portalpages.admin.objmgr
Class ObjectManagerHolder

java.lang.Object
  extended by com.plumtree.portalpages.admin.objmgr.ObjectManagerHolder

public class ObjectManagerHolder
extends java.lang.Object

Author:
DonH

Field Summary
 int[] m_nSelectedObjectIDs
           
 IPTObjectManager m_ptObjMgr
           
 
Constructor Summary
ObjectManagerHolder(IPTObjectManager ptObjMgr)
          Creates a new ObjectManagerHolder object.
 
Method Summary
 int GetFirstObjectCount()
          This gets the first object count
 int GetLastObjectCount()
          This gets the last object count
 int GetSkippedRows()
          This gets the number of rows that are being skipped in the query.
 int GetSortDirection()
          This gets the sort property ID.
 int GetSortPropID()
          This gets the sort property ID.
 boolean IsObjectSelected(int nID)
          This returns whether or not the object is selected
 IASQueryResult QueryObjects(int nFolderID)
          This method returns a query of the objects with the correct sorting.
 void Reset()
          This resets the selected items and pagination for this object manager.
 void SetDefaultPaginationSize(int nDefaultPaginationSize)
           
 void SetPagination(int nFirstObjectCount, int nLastObjectCount)
          This sets the pagination.
 void SetSortOrder(int nPropID, int nSortDirection)
          This sets the sort order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ptObjMgr

public final IPTObjectManager m_ptObjMgr

m_nSelectedObjectIDs

public int[] m_nSelectedObjectIDs
Constructor Detail

ObjectManagerHolder

public ObjectManagerHolder(IPTObjectManager ptObjMgr)
Creates a new ObjectManagerHolder object.

Parameters:
ptObjMgr -
Method Detail

Reset

public void Reset()
This resets the selected items and pagination for this object manager. This is usually due to changing folders. Sort order does not get reset.


GetSkippedRows

public int GetSkippedRows()
This gets the number of rows that are being skipped in the query.

Returns:
int the row to start on (default 0)

GetFirstObjectCount

public int GetFirstObjectCount()
This gets the first object count

Returns:
int the first object count

GetLastObjectCount

public int GetLastObjectCount()
This gets the last object count

Returns:
int the last object count

GetSortDirection

public int GetSortDirection()
This gets the sort property ID.

Returns:
int the property id to sort on

GetSortPropID

public int GetSortPropID()
This gets the sort property ID.

Returns:
int the property id to sort on

IsObjectSelected

public boolean IsObjectSelected(int nID)
This returns whether or not the object is selected

Parameters:
int - nID the object ID of the object to check
Returns:
boolean true implies selected, false implies not selected

QueryObjects

public IASQueryResult QueryObjects(int nFolderID)
This method returns a query of the objects with the correct sorting.

Returns:
IASQueryResult

SetPagination

public void SetPagination(int nFirstObjectCount,
                          int nLastObjectCount)
This sets the pagination. This assumes that the pagination bounds are not greater than the number of items we can query for.

Parameters:
int - the first object count
int - the second object count

SetDefaultPaginationSize

public void SetDefaultPaginationSize(int nDefaultPaginationSize)

SetSortOrder

public void SetSortOrder(int nPropID,
                         int nSortDirection)
This sets the sort order.

Parameters:
int - the property id to sort on
int - the sort direction (PTSortedArrayWrapper.PTSAW_SORT_*)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.