public class AgentProxy extends ItemProxy
| Modifier | Constructor and Description |
|---|---|
protected |
AgentProxy(Object ior,
AgentPath agentPath)
Creates an AgentProxy without cache and change notification
|
| Modifier and Type | Method and Description |
|---|---|
String |
execute(ItemProxy item,
String predefStep,
C2KLocalObject obj) |
String |
execute(ItemProxy item,
String predefStep,
String param)
Single parameter execution.
|
String |
execute(ItemProxy item,
String predefStep,
String[] params)
Multi-parameter execution.
|
String |
execute(Job job)
Standard execution of jobs.
|
void |
finalize()
If this is reaped, clear out the cache for it too.
|
Authenticator |
getAuthObj() |
ItemProxy |
getItem(Path itemPath) |
ItemProxy |
getItem(String itemPath) |
ItemProxy |
getItemByUUID(String uuid) |
AgentPath |
getPath() |
String |
marshall(Object obj)
Wrappers for scripts
|
Agent |
narrow() |
ItemProxy |
searchItem(Path root,
String name)
Let scripts resolve items
|
ItemProxy |
searchItem(String name) |
List<ItemProxy> |
searchItems(Path start,
Property[] props) |
List<ItemProxy> |
searchItems(Path start,
PropertyDescriptionList props) |
void |
setAuthObj(Authenticator auth) |
Object |
unmarshall(String obj) |
checkContent, checkViewpoint, dumpSubscriptions, executeQuery, getCollection, getCollection, getCollection, getCollection, getContents, getItem, getJobByName, getJobByTransitionName, getJobByTransitionName, getJobList, getName, getObject, getProperty, getProperty, getViewpoint, getWorkflow, initialise, notify, queryData, requestAction, setProperty, subscribe, unsubscribeprotected AgentProxy(Object ior, AgentPath agentPath) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic void finalize()
throws Throwable
ItemProxypublic Authenticator getAuthObj()
public void setAuthObj(Authenticator auth)
public Agent narrow() throws ObjectNotFoundException
narrow in class ItemProxyObjectNotFoundExceptionpublic String execute(Job job) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, ScriptErrorException, InvalidCollectionModification
job - the Actual Job to be executedAccessRightsException - The agent was not allowed to execute this stepInvalidDataException - The parameters supplied were incorrectInvalidTransitionException - The step wasn't availableObjectNotFoundException - Thrown by some steps that try to locate additional objectsPersistencyException - Problem writing or reading the databaseObjectAlreadyExistsException - Thrown by steps that create additional objectScriptErrorException - Thrown by scripting classesInvalidCollectionModification - Thrown by steps that create/modify collectionspublic String execute(ItemProxy item, String predefStep, C2KLocalObject obj) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
public String execute(ItemProxy item, String predefStep, String[] params) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
item - The item on which to execute the steppredefStep - The step name to runparams - An array of parameters to pass to the step. See each step's documentation for its required parametersAccessRightsException - The agent was not allowed to execute this stepInvalidDataException - The parameters supplied were incorrectInvalidTransitionException - The step wasn't availableObjectNotFoundException - Thrown by some steps that try to locate additional objectsPersistencyException - Problem writing or reading the databaseObjectAlreadyExistsException - Thrown by steps that create additional objectInvalidCollectionModification - Thrown by steps that create/modify collectionspublic String execute(ItemProxy item, String predefStep, String param) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
public ItemProxy searchItem(String name) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic ItemProxy searchItem(Path root, String name) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic List<ItemProxy> searchItems(Path start, PropertyDescriptionList props)
public ItemProxy getItem(String itemPath) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic ItemProxy getItem(Path itemPath) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic ItemProxy getItemByUUID(String uuid) throws ObjectNotFoundException, InvalidItemPathException
Copyright © 1997–2017 CRISTAL-iSE. All rights reserved.