public class ItemProxy extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
mIOR |
protected Item |
mItem |
protected ItemPath |
mItemPath |
| Modifier | Constructor and Description |
|---|---|
protected |
ItemProxy(Object ior,
ItemPath itemPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpSubscriptions(int logLevel) |
protected void |
finalize()
If this is reaped, clear out the cache for it too.
|
Collection<?> |
getCollection(String collName)
Gets the current version of the named collection
|
Collection<?> |
getCollection(String collName,
Integer version)
Gets a numbered version (snapshot) of a collection
|
String[] |
getContents(String path) |
protected Item |
getItem() |
Job |
getJobByName(String actName,
AgentProxy agent)
Tries to find a job with the given name for the given Agent in
the workflow.
|
ArrayList<Job> |
getJobList(AgentProxy agent) |
String |
getName() |
C2KLocalObject |
getObject(String xpath) |
ItemPath |
getPath() |
String |
getProperty(String name) |
Viewpoint |
getViewpoint(String schemaName,
String viewName)
Gets the named viewpoint
|
Workflow |
getWorkflow()
Gets the Workflow object of this Item
|
void |
initialise(AgentPath agentId,
PropertyArrayList itemProps,
CompositeActivity workflow,
CollectionArrayList colls) |
Item |
narrow() |
void |
notify(ProxyMessage message) |
String |
queryData(String path) |
String |
requestAction(Job thisJob) |
void |
setProperty(AgentProxy agent,
String name,
String value) |
void |
subscribe(MemberSubscription<?> newSub)
Subscription methods
|
void |
unsubscribe(ProxyObserver<?> observer) |
protected Item mItem
protected ItemPath mItemPath
protected Object mIOR
public ItemPath getPath()
protected Item getItem() throws ObjectNotFoundException
ObjectNotFoundExceptionpublic Item narrow() throws ObjectNotFoundException
ObjectNotFoundExceptionpublic void initialise(AgentPath agentId, PropertyArrayList itemProps, CompositeActivity workflow, CollectionArrayList colls) throws AccessRightsException, InvalidDataException, PersistencyException, ObjectNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException, org.exolab.castor.mapping.MappingException, InvalidCollectionModification
AccessRightsExceptionInvalidDataExceptionPersistencyExceptionObjectNotFoundExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionorg.exolab.castor.mapping.MappingExceptionInvalidCollectionModificationpublic void setProperty(AgentProxy agent, String name, String value) throws AccessRightsException, PersistencyException, InvalidDataException
public String requestAction(Job thisJob) throws AccessRightsException, InvalidTransitionException, ObjectNotFoundException, InvalidDataException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
public ArrayList<Job> getJobList(AgentProxy agent) throws AccessRightsException, ObjectNotFoundException, PersistencyException
public Collection<?> getCollection(String collName) throws ObjectNotFoundException
collName - The collection nameObjectNotFoundExceptionpublic Collection<?> getCollection(String collName, Integer version) throws ObjectNotFoundException
collName - The collection nameversion - The collection number (null for the current version)ObjectNotFoundExceptionpublic Workflow getWorkflow() throws ObjectNotFoundException
ObjectNotFoundExceptionpublic Viewpoint getViewpoint(String schemaName, String viewName) throws ObjectNotFoundException
schemaName - Outcome schema nameviewName - Viewpoint nameObjectNotFoundExceptionpublic Job getJobByName(String actName, AgentProxy agent) throws AccessRightsException, ObjectNotFoundException, PersistencyException
actName - The activity name to look foragent - The agent to fetch jobs forAccessRightsExceptionObjectNotFoundExceptionPersistencyException - Error loading the relevant objectsprotected void finalize()
throws Throwable
public String queryData(String path) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String[] getContents(String path) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic C2KLocalObject getObject(String xpath) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String getProperty(String name) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String getName()
public void subscribe(MemberSubscription<?> newSub)
public void unsubscribe(ProxyObserver<?> observer)
public void dumpSubscriptions(int logLevel)
public void notify(ProxyMessage message)
Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.