public interface FrontendObjectManager
Manager interface for generic (@link FrontendObject} REST services.
| Modifier and Type | Method and Description | 
|---|---|
long | 
count(String query)
Returns the result count for the given search query. 
 | 
FrontendObject | 
create(FrontendObject frontendObject,
      String comment)
Creates a new work item from the given frontend object. 
 | 
FrontendObject | 
get(String ambiguousId)
Returns the current work item state. 
 | 
FrontendObject | 
getByGlobalId(String globalId)
Returns the current work item state. 
 | 
void | 
move(String ambiguousId,
    String newParentAmbiguousId,
    String comment)
Moves a given work item to a new parent. 
 | 
void | 
moveByGlobalId(String globalId,
              String newParentGlobalId,
              String comment)
Moves a given work item to a new parent. 
 | 
FrontendObject | 
save(FrontendObject frontendObject,
    String comment)
Saves changes to a work item from a given frontend object. 
 | 
List<FrontendObject> | 
search(String query,
      int offset,
      int limit)
Executes the given search query. 
 | 
void | 
signal(String processId)
Sends a signal to the given process. 
 | 
FrontendObject create(FrontendObject frontendObject, String comment) throws Exception
Creates a new work item from the given frontend object.
frontendObject - the frontend objectcomment - the change commentException - if the work item could not be createdFrontendObject get(String ambiguousId)
Returns the current work item state.
ambiguousId - the work object ID (may either be a work object ID or a global ID)FrontendObject getByGlobalId(String globalId)
Returns the current work item state.
globalId - the work object global IDFrontendObject save(FrontendObject frontendObject, String comment) throws Exception
Saves changes to a work item from a given frontend object.
frontendObject - the frontend objectcomment - the change commentExceptionvoid move(String ambiguousId, String newParentAmbiguousId, String comment) throws Exception
Moves a given work item to a new parent.
ambiguousId - the ID of the work object to be moved (either work object ID or global ID value)newParentAmbiguousId - the new parent ID (either work object ID or global ID value)comment - the change commentException - if the work object could not be movedvoid moveByGlobalId(String globalId, String newParentGlobalId, String comment) throws Exception
Moves a given work item to a new parent.
globalId - the global ID of the work object to be movednewParentGlobalId - the new parent work object global IDcomment - the change commentException - if the work object could not be movedList<FrontendObject> search(String query, int offset, int limit)
Executes the given search query.
query - the query to be executedlong count(String query)
Returns the result count for the given search query.
query - the query to be executedvoid signal(String processId)
Sends a signal to the given process.
processId - the process IDCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.