public class PagingManager extends java.lang.Object implements DataSpec.DataSpecListener
Constructor and Description |
---|
PagingManager() |
PagingManager(Schedule schedule,
ActivityMaxDataManager manager,
ConstraintMaxDataManager constraintDataManager,
DataSpec dataSpec) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(Activity activity) |
void |
applyConfigurationChanges(com.ibm.json.java.JSONObject changes) |
com.ibm.json.java.JSONArray |
bulkLoadDataObjects(Schedule schedule,
DataSpec dataSpec,
long offsetRecord) |
void |
clearCachedData() |
void |
dataSpecChanged(DataSpec spec) |
com.ibm.json.java.JSONArray |
fetchChildren(Schedule schedule2,
DataSpec dataSpec2,
java.lang.String internalID,
java.lang.Long offset,
java.lang.Integer level) |
com.ibm.json.java.JSONArray |
getChildren(Activity parentActivity,
boolean applyFilters) |
com.ibm.json.java.JSONArray |
getChildren(Activity parentActivity,
boolean applyFilters,
java.lang.Integer level) |
int |
getChildrenRowCount() |
int |
getComparePageCount(Schedule leftModel,
long rightModelId) |
int |
getCompareRowCount(Schedule leftModel,
long rightModelId) |
ConstraintMaxDataManager |
getConstraintDataManager() |
int |
getCurrentPage() |
ActivityMaxDataManager |
getDataManager() |
DataSpec |
getDataSpec() |
Page |
getFlatPage(int page,
long otherProjectID)
Get a Page of data
|
com.ibm.json.java.JSONObject |
getItemById(java.lang.String id) |
Page |
getNextPage() |
Page |
getPage() |
Page |
getPage(int page)
Get a Page of data
|
Page |
getPage(java.util.List<java.lang.String> activityIDs)
Get a Page of data
|
int |
getPageCount() |
Page |
getPreviousPage() |
int |
getRowCount() |
com.ibm.json.java.JSONArray |
initializeDataObjects(long offsetRecord) |
void |
invalidate()
Invalidate the data in the Paging Manager, reset caches, etc
|
boolean |
isContraintsEnabled() |
com.ibm.json.java.JSONArray |
loadDataObjects(Schedule schedule,
DataSpec dataSpec,
java.util.List<java.lang.String> activityIDs) |
com.ibm.json.java.JSONArray |
loadDataObjects(Schedule schedule,
DataSpec dataSpec,
long offsetRecord) |
com.ibm.json.java.JSONArray |
loadMissingDataObjects(Schedule leftModel,
long rightModelId) |
java.util.Iterator<IMXActivity> |
rootChildenActivityIterator()
Creates an iterator that iterates over all the root level children
|
void |
setComparePageCount(int comparePageCount) |
void |
setCompareRowCount(int compareRowCount) |
void |
setConstraintDataManager(ConstraintMaxDataManager constraintDataManager) |
void |
setContraintsEnabled(boolean contraintsEnabled) |
void |
setCurrentPage(int currentPage) |
void |
setDataManager(ActivityMaxDataManager dataManager) |
void |
setDataSpec(DataSpec dataSpec) |
void |
setPage(int page) |
public PagingManager()
public PagingManager(Schedule schedule, ActivityMaxDataManager manager, ConstraintMaxDataManager constraintDataManager, DataSpec dataSpec)
public void dataSpecChanged(DataSpec spec)
dataSpecChanged
in interface DataSpec.DataSpecListener
public void invalidate()
public void clearCachedData()
public int getPageCount()
public int getComparePageCount(Schedule leftModel, long rightModelId)
public int getCompareRowCount(Schedule leftModel, long rightModelId)
public void setCompareRowCount(int compareRowCount)
public void setComparePageCount(int comparePageCount)
public int getRowCount()
public int getChildrenRowCount()
public void setPage(int page)
public Page getPage()
public Page getNextPage()
public Page getPreviousPage()
public Page getPage(int page)
page
- page number to load, starting at 1public Page getFlatPage(int page, long otherProjectID)
page
- page number to load, starting at 1public Page getPage(java.util.List<java.lang.String> activityIDs)
page
- page number to load, starting at 1public com.ibm.json.java.JSONArray loadDataObjects(Schedule schedule, DataSpec dataSpec, long offsetRecord) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONArray loadDataObjects(Schedule schedule, DataSpec dataSpec, java.util.List<java.lang.String> activityIDs) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONArray bulkLoadDataObjects(Schedule schedule, DataSpec dataSpec, long offsetRecord) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONArray loadMissingDataObjects(Schedule leftModel, long rightModelId) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONArray initializeDataObjects(long offsetRecord) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public com.ibm.json.java.JSONObject getItemById(java.lang.String id)
public com.ibm.json.java.JSONArray getChildren(Activity parentActivity, boolean applyFilters)
public com.ibm.json.java.JSONArray getChildren(Activity parentActivity, boolean applyFilters, java.lang.Integer level)
public com.ibm.json.java.JSONArray fetchChildren(Schedule schedule2, DataSpec dataSpec2, java.lang.String internalID, java.lang.Long offset, java.lang.Integer level) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void addToCache(Activity activity)
public void applyConfigurationChanges(com.ibm.json.java.JSONObject changes)
public ActivityMaxDataManager getDataManager()
public void setDataManager(ActivityMaxDataManager dataManager)
public ConstraintMaxDataManager getConstraintDataManager()
public void setConstraintDataManager(ConstraintMaxDataManager constraintDataManager)
public DataSpec getDataSpec()
public void setDataSpec(DataSpec dataSpec)
public int getCurrentPage()
public void setCurrentPage(int currentPage)
public java.util.Iterator<IMXActivity> rootChildenActivityIterator()
public boolean isContraintsEnabled()
public void setContraintsEnabled(boolean contraintsEnabled)