public class DocumentRestService extends Object
| Constructor and Description |
|---|
DocumentRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
backup(String query,
String filepath)
This method creates a backup of the result set form a JQPL query.
|
javax.ws.rs.core.Response |
convertResult(org.imixs.workflow.ItemCollection workitem,
String items,
String format)
This method converts a single ItemCollection into a Jax-rs response object.
|
javax.ws.rs.core.Response |
convertResultList(List<org.imixs.workflow.ItemCollection> result,
String items,
String format)
This method converts a ItemCollection List into a Jax-rs response object.
|
javax.ws.rs.core.Response |
countTotalHitsByQuery(String query,
int maxResult,
String format)
Returns a total hits for a lucene Search Query
|
javax.ws.rs.core.Response |
countTotalPagesByQuery(String query,
int pageSize,
String format)
Returns the total pages for a lucene Search Query and a given page size.
|
javax.ws.rs.core.Response |
deleteEntity(String uniqueid)
This method deletes an entity
|
javax.ws.rs.core.Response |
findDocumentsByJPQL(String query,
int pageSize,
int pageIndex,
String items,
String format)
Returns a resultset for a JPQL statement
|
javax.ws.rs.core.Response |
findDocumentsByQuery(String query,
int pageSize,
int pageIndex,
String sortBy,
boolean sortReverse,
String items,
String format)
Returns a resultset for a lucene Search Query
|
javax.ws.rs.core.Response |
getConfiguration(String format)
Returns the IndexFieldListNoAnalyse from the lucensUpdateService
|
javax.ws.rs.core.Response |
getDocument(String uniqueid,
String items,
String format)
returns a single document defined by $uniqueid
Regex for
UID - e.g: bcc776f9-4e5a-4272-a613-9f5ebf35354d
Snapshot: bcc776f9-4e5a-4272-a613-9f5ebf35354d-9b6655
deprecated format : 132d37bfd51-9a7868
|
javax.ws.rs.core.StreamingOutput |
getHelpHTML() |
protected static List<String> |
getItemList(String items)
This method returns a List object from a given comma separated string.
|
javax.ws.rs.core.StreamingOutput |
getRoot() |
javax.ws.rs.core.Response |
postDocument(org.imixs.workflow.xml.XMLDocument xmlworkitem,
String items)
The method saves a document provided in xml format.
|
javax.ws.rs.core.Response |
putDocument(org.imixs.workflow.xml.XMLDocument xmlworkitem,
String items)
Delegater putEntity @PUT
|
javax.ws.rs.core.Response |
restore(String filepath)
This method restores a backup from the fileSystem
|
public javax.ws.rs.core.StreamingOutput getRoot()
public javax.ws.rs.core.StreamingOutput getHelpHTML()
public javax.ws.rs.core.Response getDocument(String uniqueid, String items, String format)
uniqueid - public javax.ws.rs.core.Response findDocumentsByQuery(String query, int pageSize, int pageIndex, String sortBy, boolean sortReverse, String items, String format)
query - pageSize - pageIndex - items - public javax.ws.rs.core.Response findDocumentsByJPQL(String query, int pageSize, int pageIndex, String items, String format)
query - - JPQL statementpageSize - - page sizepageIndex - - page index (default = 0)items - - optional list of itemspublic javax.ws.rs.core.Response countTotalHitsByQuery(String query, int maxResult, String format)
query - pageSize - pageIndex - items - public javax.ws.rs.core.Response countTotalPagesByQuery(String query, int pageSize, String format)
query - pageSize - pageIndex - items - public javax.ws.rs.core.Response postDocument(org.imixs.workflow.xml.XMLDocument xmlworkitem,
String items)
xmlworkitem - - document to be saveditems - - optional item list to be returned in the resultpublic javax.ws.rs.core.Response putDocument(org.imixs.workflow.xml.XMLDocument xmlworkitem,
String items)
xmlworkitem - - document to be saveditems - - optional item list to be returned in the resultputWorkitemDefaultpublic javax.ws.rs.core.Response deleteEntity(String uniqueid)
public javax.ws.rs.core.Response backup(String query, String filepath)
query - start - count - filepath - - path in server filesystempublic javax.ws.rs.core.Response restore(String filepath)
filepath - - path in server fileSystempublic javax.ws.rs.core.Response getConfiguration(String format) throws Exception
Exceptionprotected static List<String> getItemList(String items)
txtWorkflowStatus,numProcessID,txtName
items - public javax.ws.rs.core.Response convertResult(org.imixs.workflow.ItemCollection workitem,
String items,
String format)
The method expects optional items and format string (json|xml)
In case the result set is null, than the method returns an empty collection.
result - list of ItemCollectionitems - - optional item listformat - - optional format string (json|xml)public javax.ws.rs.core.Response convertResultList(List<org.imixs.workflow.ItemCollection> result, String items, String format)
The method expects optional items and format string (json|xml)
In case the result set is null, than the method returns an empty collection.
result - list of ItemCollectionitems - - optional item listformat - - optional format string (json|xml)Copyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.