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,
Class<?> predefStep,
C2KLocalObject obj) |
String |
execute(ItemProxy item,
Class<?> predefStep,
String param) |
String |
execute(ItemProxy item,
Class<?> predefStep,
String[] params) |
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.
|
String |
execute(Job job,
Job errorJob)
Extended execution of jobs when the client knows that there is a Transition to be used in case of an error.
|
ItemProxy |
getItem(Path itemPath) |
ItemProxy |
getItem(String itemPath) |
ItemProxy |
getItemByUUID(String uuid) |
AgentPath |
getPath()
Return the ItemPath object of the Item this proxy is linked with
|
RolePath[] |
getRoles() |
String |
marshall(Object obj)
Wrappers for scripts
|
Agent |
narrow()
Narrows the CORBA Item this proxy is linked with
|
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) |
Object |
unmarshall(String obj) |
checkContent, checkContent, checkContent, checkOutcome, checkOutcome, checkOutcome, checkOutcome, checkOutcomeAttachment, checkOutcomeAttachment, checkViewpoint, checkViewpoint, dumpSubscriptions, executeQuery, finalize, getCollection, getCollection, getCollection, getCollection, getCollection, getCollection, getCollection, getCollection, getContents, getContents, getContents, getContents, getEvent, getEvent, getItem, getJobByName, getJobByTransitionName, getJobByTransitionName, getJobList, getJobList, getName, getObject, getObject, getObject, getOutcome, getOutcome, getOutcome, getOutcome, getOutcome, getOutcome, getOutcome, getOutcome, getOutcomeAttachment, getOutcomeAttachment, getOutcomeAttachment, getOutcomeAttachment, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getType, getViewpoint, getViewpoint, getViewpoints, getViewpoints, getWorkflow, getWorkflow, initialise, initialise, notify, queryData, queryData, requestAction, setProperty, subscribe, unsubscribeprotected AgentProxy(Object ior, AgentPath agentPath) throws ObjectNotFoundException
ior - agentPath - ObjectNotFoundExceptionpublic Agent narrow() throws ObjectNotFoundException
ItemProxynarrow in class ItemProxyObjectNotFoundException - there was a problem connecting with the Itempublic String execute(Job job, Job errorJob) throws ObjectNotFoundException, AccessRightsException, InvalidTransitionException, InvalidDataException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification, ScriptErrorException
job - the Actual Job to be executederrorJob - the Job the be executed in case there was an exception while executing the original Job.
The client calling this method knows (configured) which Job is need to be used.AccessRightsException - 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(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, Class<?> predefStep, C2KLocalObject obj) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
item - predefStep - obj - AccessRightsExceptionInvalidDataExceptionInvalidTransitionExceptionObjectNotFoundExceptionPersistencyExceptionObjectAlreadyExistsExceptionInvalidCollectionModificationpublic String execute(ItemProxy item, String predefStep, C2KLocalObject obj) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
item - predefStep - obj - AccessRightsExceptionInvalidDataExceptionInvalidTransitionExceptionObjectNotFoundExceptionPersistencyExceptionObjectAlreadyExistsExceptionInvalidCollectionModificationpublic String execute(ItemProxy item, Class<?> predefStep, String[] params) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
item - predefStep - params - AccessRightsExceptionInvalidDataExceptionInvalidTransitionExceptionObjectNotFoundExceptionPersistencyExceptionObjectAlreadyExistsExceptionInvalidCollectionModificationpublic 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, Class<?> predefStep, String param) throws AccessRightsException, InvalidDataException, InvalidTransitionException, ObjectNotFoundException, PersistencyException, ObjectAlreadyExistsException, InvalidCollectionModification
item - predefStep - param - AccessRightsExceptionInvalidDataExceptionInvalidTransitionExceptionObjectNotFoundExceptionPersistencyExceptionObjectAlreadyExistsExceptionInvalidCollectionModificationpublic 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 AgentPath getPath()
ItemProxypublic ItemProxy getItem(Path itemPath) throws ObjectNotFoundException
ObjectNotFoundExceptionpublic ItemProxy getItemByUUID(String uuid) throws ObjectNotFoundException, InvalidItemPathException
public RolePath[] getRoles()
Copyright © 1997–2019 CRISTAL-iSE. All rights reserved.