Package hec.clientapp.model
Class DefaultDataListContainer
java.lang.Object
hec.clientapp.model.DefaultDataListContainer
- All Implemented Interfaces:
DataListContainer,CommonDataListContainer,IDataListContainer,Serializable
default implementation of the client side DataListContainer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ManagerProxyListContainerprotected Hashtableprotected booleanprotected hec.clientapp.rmi.csinterface.RmiDataListContainerprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDataListContainer(hec.clientapp.rmi.csinterface.RmiDataListContainer rdlc) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataLists(hec.clientapp.rmi.csinterface.RmiDataList[] rdlArray, String model) add data lists to this DataListContainerbooleancheck the permission on this userfindObjectById(long id, String objClass) given an id and class find the correct object from our list of DataLists.getCommonDataList(String className) return the DataList that holds the DataObjects of objClassgetCommonDataList(String className, String modelName) getDataList(String objClass) return the DataList that holds the DataObjects of objClassgetDataList(String objClass, String model) return the DataList that holds the DataObjects of objClass ensure that the child workspace for model is loaded.getDataListByClass(String dataListClass, String model) given the class for a data list find and return it.inthec.map.streamAlignment.StreamAlignmentIfcintbooleanget whether the DataListContainer is read onlybooleansave all child DataListsvoidsetContainer(ManagerProxyListContainer container) set the ManagerProxyListContainer for this DataListContainervoidsetReadOnly(boolean readOnly) set whether the DataListContainer is read onlyvoidcalled when the workspace is closing
-
Field Details
-
_rdlc
protected hec.clientapp.rmi.csinterface.RmiDataListContainer _rdlc -
_dataLists
-
_inited
protected boolean _inited -
_container
-
_readOnly
protected boolean _readOnly
-
-
Constructor Details
-
DefaultDataListContainer
public DefaultDataListContainer(hec.clientapp.rmi.csinterface.RmiDataListContainer rdlc)
-
-
Method Details
-
setContainer
Description copied from interface:DataListContainerset the ManagerProxyListContainer for this DataListContainer- Specified by:
setContainerin interfaceDataListContainer
-
addDataLists
add data lists to this DataListContainer- Specified by:
addDataListsin interfaceDataListContainer
-
saveAll
save all child DataLists- Specified by:
saveAllin interfaceIDataListContainer
-
getDataList
return the DataList that holds the DataObjects of objClass- Specified by:
getDataListin interfaceIDataListContainer
-
getDataList
return the DataList that holds the DataObjects of objClass ensure that the child workspace for model is loaded.- Specified by:
getDataListin interfaceIDataListContainer
-
getDataListByClass
given the class for a data list find and return it.- Specified by:
getDataListByClassin interfaceIDataListContainer
-
findObjectById
given an id and class find the correct object from our list of DataLists.- Specified by:
findObjectByIdin interfaceCommonDataListContainer
-
workspaceClosing
public void workspaceClosing()called when the workspace is closing- Specified by:
workspaceClosingin interfaceIDataListContainer
-
getCommonDataList
Description copied from interface:CommonDataListContainerreturn the DataList that holds the DataObjects of objClass- Specified by:
getCommonDataListin interfaceCommonDataListContainer
-
getCommonDataList
- Specified by:
getCommonDataListin interfaceCommonDataListContainer
-
getProxyListContainer
- Specified by:
getProxyListContainerin interfaceCommonDataListContainer
-
checkUser
Description copied from interface:IDataListContainercheck the permission on this user- Specified by:
checkUserin interfaceIDataListContainer
-
getUnitSystem
public int getUnitSystem()- Specified by:
getUnitSystemin interfaceCommonDataListContainer
-
getGmtOffset
public int getGmtOffset()- Specified by:
getGmtOffsetin interfaceCommonDataListContainer
-
getStreamAlignment
public hec.map.streamAlignment.StreamAlignmentIfc getStreamAlignment()- Specified by:
getStreamAlignmentin interfaceCommonDataListContainer
-
setReadOnly
public void setReadOnly(boolean readOnly) Description copied from interface:IDataListContainerset whether the DataListContainer is read only- Specified by:
setReadOnlyin interfaceIDataListContainer- Parameters:
readOnly-
-
isReadOnly
public boolean isReadOnly()Description copied from interface:IDataListContainerget whether the DataListContainer is read only- Specified by:
isReadOnlyin interfaceIDataListContainer- Returns:
- true if the DataListContainer is read only
-