public class EntityRestService extends Object
| Constructor and Description |
|---|
EntityRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addIndex(String name,
int type)
Adds a new Imixs-Entity-Index to index list of the Imixs EntityService
|
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 |
deleteEntity(String uniqueid)
This method deletes an entity
|
javax.ws.rs.core.Response |
deleteIndex(String name)
Removes an Imixs-Entity-Index from index list of the Imixs EntityService
|
org.imixs.workflow.xml.EntityCollection |
getEntitiesByQuery(String query,
int start,
int count,
String items)
Returns a result set by JPQL Query
|
org.imixs.workflow.xml.EntityCollection |
getEntitiesByQueryJSON(String query,
int start,
int count,
String items) |
org.imixs.workflow.xml.EntityCollection |
getEntitiesByQueryXML(String query,
int start,
int count,
String items) |
javax.ws.rs.core.StreamingOutput |
getHelpHTML() |
javax.ws.rs.core.Response |
getIndexList()
Returns the entityService index list in XML or JSON format
|
org.imixs.workflow.xml.XMLCount |
getWorkListCountByQuery(String query)
Returns the size of a result set by JPQL Query
|
javax.ws.rs.core.Response |
putEntity(org.imixs.workflow.xml.XMLItemCollection xmlworkitem)
This method saves a entity provided in xml format
Note: the method merges the content of the given entity into an existing
one because the EntityService method save() did not merge an entity.
|
javax.ws.rs.core.Response |
restore(String filepath)
This method restores a backup from the fileSystem
|
public javax.ws.rs.core.StreamingOutput getHelpHTML()
public org.imixs.workflow.xml.EntityCollection getEntitiesByQuery(String query, int start, int count, String items)
query - start - count - type - sortorder - items - public org.imixs.workflow.xml.EntityCollection getEntitiesByQueryXML(String query, int start, int count, String items)
public org.imixs.workflow.xml.EntityCollection getEntitiesByQueryJSON(String query, int start, int count, String items)
public org.imixs.workflow.xml.XMLCount getWorkListCountByQuery(String query)
query - public javax.ws.rs.core.Response getIndexList()
public javax.ws.rs.core.Response addIndex(String name, int type)
name - - name of index fieldtype - - index typepublic javax.ws.rs.core.Response deleteIndex(String name)
title - - name of index fieldpublic javax.ws.rs.core.Response putEntity(org.imixs.workflow.xml.XMLItemCollection xmlworkitem)
xmlworkitem - - entity to be savedpublic 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–2016 Imixs Software Solutions GmbH. All rights reserved.