public abstract class ItemUtils extends RestHandler
RestHandler.AuthDataCOOKIENAME| Constructor and Description |
|---|
ItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.WebApplicationException |
createWebAppException(String msg)
Creates a WebApplicationException response from a simple text message.
|
static javax.ws.rs.WebApplicationException |
createWebAppException(String msg,
Exception ex,
javax.ws.rs.core.Response.Status status)
Creates a WebApplicationException response from a simple text message, exception and status
|
static javax.ws.rs.WebApplicationException |
createWebAppException(String msg,
javax.ws.rs.core.Response.Status status)
Creates a WebApplicationException response from a simple text message and status
|
LinkedHashMap<String,URI> |
enumerate(org.cristalise.kernel.entity.proxy.ItemProxy item,
String dataPath,
String uriPath,
javax.ws.rs.core.UriInfo uri) |
protected javax.ws.rs.core.Response |
getOutcomeResponse(org.cristalise.kernel.persistency.outcome.Outcome oc,
org.cristalise.kernel.events.Event ev,
boolean json) |
protected static LinkedHashMap<String,String> |
getPropertySummary(org.cristalise.kernel.entity.proxy.ItemProxy item) |
protected static org.cristalise.kernel.entity.proxy.ItemProxy |
getProxy(String uuid) |
protected LinkedHashMap<String,Object> |
makeCollectionData(org.cristalise.kernel.collection.Collection<?> coll,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
makeEventData(org.cristalise.kernel.events.Event ev,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
makeJobData(org.cristalise.kernel.entity.agent.Job job,
String itemName,
javax.ws.rs.core.UriInfo uri) |
checkAuthCookie, checkAuthData, encryptAuthData, getAgent, getAgent, toJSONprotected static LinkedHashMap<String,String> getPropertySummary(org.cristalise.kernel.entity.proxy.ItemProxy item) throws org.cristalise.kernel.common.ObjectNotFoundException
org.cristalise.kernel.common.ObjectNotFoundExceptionprotected static org.cristalise.kernel.entity.proxy.ItemProxy getProxy(String uuid)
public LinkedHashMap<String,URI> enumerate(org.cristalise.kernel.entity.proxy.ItemProxy item, String dataPath, String uriPath, javax.ws.rs.core.UriInfo uri)
protected javax.ws.rs.core.Response getOutcomeResponse(org.cristalise.kernel.persistency.outcome.Outcome oc,
org.cristalise.kernel.events.Event ev,
boolean json)
protected LinkedHashMap<String,Object> makeEventData(org.cristalise.kernel.events.Event ev, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> makeJobData(org.cristalise.kernel.entity.agent.Job job, String itemName, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> makeCollectionData(org.cristalise.kernel.collection.Collection<?> coll, javax.ws.rs.core.UriInfo uri)
public static javax.ws.rs.WebApplicationException createWebAppException(String msg)
msg - text messagepublic static javax.ws.rs.WebApplicationException createWebAppException(String msg, javax.ws.rs.core.Response.Status status)
msg - text messagestatus - HTTP status of the responsepublic static javax.ws.rs.WebApplicationException createWebAppException(String msg, Exception ex, javax.ws.rs.core.Response.Status status)
msg - text messageex - exceptionstatus - HTTP status of the responseCopyright © 2017 CRISTAL-iSE. All rights reserved.