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 |
|---|---|
boolean |
checkContent(String path,
String name) |
boolean |
checkViewpoint(String schemaName,
String viewName) |
void |
dumpSubscriptions(int logLevel) |
String |
executeQuery(Query query)
Executes the Query in the target database.
|
protected void |
finalize()
If this is reaped, clear out the cache for it too.
|
Collection<?> |
getCollection(BuiltInCollections collection)
Gets the current version of the named Collection
|
Collection<?> |
getCollection(BuiltInCollections collection,
Integer version)
Gets a numbered version (snapshot) of a collection
|
Collection<?> |
getCollection(String collName)
Gets the last 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)
Finds the first finishing job with the given name for the given Agent in the workflow.
|
Job |
getJobByTransitionName(String actName,
String transName,
AgentPath agentPath)
Finds the Job with the given Activity and Transition name for the Agent in the Items Workflow
|
Job |
getJobByTransitionName(String actName,
String transName,
AgentProxy agent)
Finds the Job with the given Activity and Transition name for the Agent in the Items Workflow
|
ArrayList<Job> |
getJobList(AgentProxy agent) |
String |
getName() |
C2KLocalObject |
getObject(String xpath) |
ItemPath |
getPath() |
String |
getProperty(BuiltInItemProperties prop)
Retrieves the values of a BuiltInItemProperty
|
String |
getProperty(String name)
Retrieves the values of a named property
|
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) |
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(BuiltInCollections collection) throws ObjectNotFoundException
collection - The built-in collectionObjectNotFoundException - objects were not foundpublic Collection<?> getCollection(BuiltInCollections collection, Integer version) throws ObjectNotFoundException
collection - The built-in Collectionversion - The collection number. Use null to get the 'last' version.ObjectNotFoundException - objects were not foundpublic Collection<?> getCollection(String collName) throws ObjectNotFoundException
collName - The collection nameObjectNotFoundException - objects were not foundpublic Collection<?> getCollection(String collName, Integer version) throws ObjectNotFoundException
collName - The collection nameversion - The collection number. Use null to get the 'last' version.ObjectNotFoundException - objects were not foundpublic Workflow getWorkflow() throws ObjectNotFoundException
ObjectNotFoundException - objects were not foundpublic boolean checkViewpoint(String schemaName, String viewName) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic Viewpoint getViewpoint(String schemaName, String viewName) throws ObjectNotFoundException
schemaName - Outcome schema nameviewName - Viewpoint nameObjectNotFoundException - objects were not foundpublic Job getJobByName(String actName, AgentProxy agent) throws AccessRightsException, ObjectNotFoundException, PersistencyException
actName - the name of the Activity to look foragent - The agent to fetch jobs forAccessRightsException - Agent has not rightsObjectNotFoundException - objects were not foundPersistencyException - Error loading the relevant objectspublic Job getJobByTransitionName(String actName, String transName, AgentProxy agent) throws AccessRightsException, ObjectNotFoundException, PersistencyException
actName - the name of the Activity to look fortransName - the name of the Transition to look foragent - The AgentProxy to fetch jobs forAccessRightsException - Agent has not rightsObjectNotFoundException - objects were not foundPersistencyException - Error loading the relevant objectspublic Job getJobByTransitionName(String actName, String transName, AgentPath agentPath) throws AccessRightsException, ObjectNotFoundException, PersistencyException
actName - the name of the Activity to look fortransName - the name of the Transition to look foragentPath - The agent to fetch jobs forAccessRightsException - Agent has not rightsObjectNotFoundException - objects were not foundPersistencyException - Error loading the relevant objectsprotected void finalize()
throws Throwable
public String queryData(String path) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic boolean checkContent(String path, String name) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String[] getContents(String path) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String executeQuery(Query query) throws PersistencyException
query - the query to be executedPersistencyException - there was a fundamental DB issuepublic C2KLocalObject getObject(String xpath) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic String getProperty(BuiltInItemProperties prop) throws ObjectNotFoundException
prop - one of the Built-In Item PropertyObjectNotFoundException - property was not foundpublic String getProperty(String name) throws ObjectNotFoundException
name - of the Item PropertyObjectNotFoundException - property was not foundpublic String getName()
public void subscribe(MemberSubscription<?> newSub)
public void unsubscribe(ProxyObserver<?> observer)
public void dumpSubscriptions(int logLevel)
public void notify(ProxyMessage message)
Copyright © 1997–2017 CRISTAL-iSE. All rights reserved.