Package hec.clientapp.model
Class ManagerProxyList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.Vector
hec.clientapp.model.ManagerProxyList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable,Collection,List,RandomAccess,SequencedCollection
Keeps track of a list of ManagerProxies
- See Also:
-
Field Summary
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementDataFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoiddrop all managers.find the manager by it's id.intgetManager(Identifier id) Gets the manager, if there isn't a ManagerProxy that matches id then it creates onegetManagerIDList(String className) return a list ofhec.io.Identifiers for allhec.clientapp.model.Managers specified by classNamelook for the ManagerProxy with an Identifier that matches id.getManagerProxy(String className, int index) Get the ManagerProxy matching the classname and index.getManagerProxy(String classname, Identifier id) Deprecated.getManagerProxy(String model, String className, int index) Get the ManagerProxy matching the model, classname and index.getModel()inthec.clientapp.rmi.csinterface.RmiWorkspaceloadManager(String classname, Identifier id) Get the manager matching the identifier.loadManagerByName(String classname, String name) newManager(String classname) Creates a new manager of the requested classnewManager(String model, String classname) create a new Manager of the request class in the specified ProxyListopenManager(String relpath) openManager(String className, int index) openManager(String model, Identifier id) openManager(String modelname, String relpath) openManager(String modelname, String className, int index) voidbooleansaveAllManagers(String user) booleanbooleansaveManager(String username, Manager mgr) booleansaveManagerAs(String username, Manager mgrFrom, Manager mgrTo) booleansaveManagerAs(String username, Manager manager, Identifier id) does manager save asvoidvoidvoidsetWorkspace(hec.clientapp.rmi.csinterface.RmiWorkspace workspace) voidFind the manager matching the identifier and unloads the manager out of memoryvoidunloads all managers.Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Constructor Details
-
ManagerProxyList
public ManagerProxyList(hec.clientapp.rmi.csinterface.RmiWorkspace workspace) -
ManagerProxyList
public ManagerProxyList()
-
-
Method Details
-
getModel
-
setModel
-
getContainer
-
getUnitSystem
public int getUnitSystem() -
getGmtOffset
public int getGmtOffset() -
setWorkspace
public void setWorkspace(hec.clientapp.rmi.csinterface.RmiWorkspace workspace) -
getWorkspace
public hec.clientapp.rmi.csinterface.RmiWorkspace getWorkspace() -
setManagerProxyListContainer
-
saveAllManagers
-
saveAllModifiedManagers
-
unloadManager
Find the manager matching the identifier and unloads the manager out of memory -
unloadManagers
public void unloadManagers()unloads all managers. called when the workspace is closing -
closeWorkspace
public void closeWorkspace() -
loadManager
Get the manager matching the identifier. The manager is instantiated and loaded if not already loaded. Should this method really throw a RemoteException??- Throws:
RemoteException
-
loadManagerByName
- Throws:
RemoteException
-
getManagerProxy
Deprecated.Get the ManagerProxy matching the identifier.- Throws:
RemoteException
-
getManagerProxy
Get the ManagerProxy matching the classname and index. -
getManagerProxy
Get the ManagerProxy matching the model, classname and index. -
findManager
find the manager by it's id. Return null if not found -
getManager
Gets the manager, if there isn't a ManagerProxy that matches id then it creates one -
getManagerProxy
look for the ManagerProxy with an Identifier that matches id. If found return that ManagerProxy, otherwise return null.- Parameters:
id- the Identifier to find the ManagerProxy for- Returns:
- the ManagerProxy for id, or null if not found
-
newManager
create a new Manager of the request class in the specified ProxyList- Parameters:
model- the name of the child workspace to useclassname- the classname of the Manager to create- Returns:
- the new Manager or null if the workspace can't be found.
-
newManager
Creates a new manager of the requested class -
openManager
-
openManager
-
openManager
-
openManager
-
saveManager
-
saveManagerAs
-
saveManagerAs
does manager save as -
deleteManager
-
openManager
-
openManager
-
getManagerIDList
return a list ofhec.io.Identifiers for allhec.clientapp.model.Managers specified by className- Parameters:
className- the Class name of the Managers being requested.- Returns:
- a
VectorcontainingIdentifiersan emptyVectorwill be returned. If noManagersare found matching className
-
removeAllManagersCallbacks
public void removeAllManagersCallbacks() -
dropAllManagers
public void dropAllManagers()drop all managers. call this with extreme care as this can cause very hard to figure out problems where a reference to a manager is kept and its ManagerProxy drops its reference. You'll end up with multiple copies of the same manager in memory.
-