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.
|
org.imixs.workflow.xml.XMLCount |
countTotalHitsByQuery(String query,
int maxResult)
Returns a total hits for a lucene Search Query
|
org.imixs.workflow.xml.XMLCount |
countTotalPagesByQuery(String query,
int pageSize)
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
|
org.imixs.workflow.xml.XMLDataCollection |
findDocumentsByJPQL(String query,
int pageSize,
int pageIndex,
String items)
Returns a resultset for a JPQL statement
|
org.imixs.workflow.xml.XMLDataCollection |
findDocumentsByQuery(String query,
int pageSize,
int pageIndex,
String sortBy,
boolean sortReverse,
String items)
Returns a resultset for a lucene Search Query
|
org.imixs.workflow.xml.XMLDataCollection |
getConfiguration()
Returns the IndexFieldListNoAnalyse from the lucensUpdateService
|
org.imixs.workflow.xml.XMLDataCollection |
getDocument(String uniqueid,
String items)
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() |
javax.ws.rs.core.StreamingOutput |
getRoot() |
javax.ws.rs.core.Response |
postEntity(org.imixs.workflow.xml.XMLDocument xmlworkitem)
The method saves a document provided in xml format.
|
javax.ws.rs.core.Response |
putEntity(org.imixs.workflow.xml.XMLDocument xmlworkitem)
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 org.imixs.workflow.xml.XMLDataCollection getDocument(String uniqueid, String items)
uniqueid - public org.imixs.workflow.xml.XMLDataCollection findDocumentsByQuery(String query, int pageSize, int pageIndex, String sortBy, boolean sortReverse, String items)
query - pageSize - pageIndex - items - public org.imixs.workflow.xml.XMLDataCollection findDocumentsByJPQL(String query, int pageSize, int pageIndex, String items)
query - pageSize - pageIndex - items - public org.imixs.workflow.xml.XMLCount countTotalHitsByQuery(String query, int maxResult)
query - pageSize - pageIndex - items - public org.imixs.workflow.xml.XMLCount countTotalPagesByQuery(String query, int pageSize)
query - pageSize - pageIndex - items - public javax.ws.rs.core.Response postEntity(org.imixs.workflow.xml.XMLDocument xmlworkitem)
xmlworkitem - - entity to be savedpublic javax.ws.rs.core.Response putEntity(org.imixs.workflow.xml.XMLDocument xmlworkitem)
requestBodyStream - putWorkitemDefaultpublic 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 fileSystemCopyright © 2006–2018 Imixs Software Solutions GmbH. All rights reserved.