public abstract class ItemUtils extends RestHandler
RestHandler.AuthData| Modifier and Type | Field and Description |
|---|---|
protected static String |
PREDEFINED_PATH |
COOKIENAME, PASSWORD, USERNAME| Constructor and Description |
|---|
ItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
ArrayList<LinkedHashMap<String,Object>> |
enumerate(ItemProxy item,
ClusterType cluster,
String uriPath,
javax.ws.rs.core.UriInfo uri,
javax.ws.rs.core.NewCookie cookie) |
ArrayList<LinkedHashMap<String,Object>> |
enumerate(ItemProxy item,
String dataPath,
String uriPath,
javax.ws.rs.core.UriInfo uri,
javax.ws.rs.core.NewCookie cookie) |
protected String |
executeJob(ItemProxy item,
String postData,
String contentType,
String actPath,
String transition,
AgentProxy agent) |
protected String |
executePredefinedStep(ItemProxy item,
String postData,
String contentType,
String actPath,
AgentProxy agent) |
protected ArrayList<LinkedHashMap<String,Object>> |
getAllViewpoints(ItemProxy item,
javax.ws.rs.core.UriInfo uri,
javax.ws.rs.core.NewCookie cookie) |
protected String |
getItemName(ItemPath ip) |
static List<String> |
getItemNames(Property... props) |
protected static URI |
getItemURI(javax.ws.rs.core.UriInfo uri,
ItemPath item,
Object... path) |
protected static URI |
getItemURI(javax.ws.rs.core.UriInfo uri,
ItemProxy item,
Object... path) |
protected static URI |
getItemURI(javax.ws.rs.core.UriInfo uri,
Object... segments) |
protected static URI |
getItemURI(javax.ws.rs.core.UriInfo uri,
UUID item,
Object... path) |
protected LinkedHashMap<String,Object> |
getJobActivityData(Job job,
String itemName,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
getJobItemData(Job job,
String itemName,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
getJobOutcomeData(Job job,
String itemName,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
getJobTransitionData(Job job,
String itemName,
javax.ws.rs.core.UriInfo uri) |
javax.ws.rs.core.Response.ResponseBuilder |
getOutcome(String uuid,
String schema,
int version,
int eventId,
boolean json,
javax.ws.rs.core.NewCookie cookie) |
protected javax.ws.rs.core.Response.ResponseBuilder |
getOutcomeResponse(Outcome oc,
boolean json,
javax.ws.rs.core.NewCookie cookie)
Creates Response with without any specific header.
|
protected javax.ws.rs.core.Response.ResponseBuilder |
getOutcomeResponse(Outcome oc,
Date eventDate,
boolean json,
javax.ws.rs.core.NewCookie cookie)
Creates Response with header 'Last-Modified:
|
protected javax.ws.rs.core.Response.ResponseBuilder |
getOutcomeResponse(Outcome oc,
Event ev,
boolean json,
javax.ws.rs.core.NewCookie cookie) |
protected static ArrayList<LinkedHashMap<String,String>> |
getPropertySummary(ItemProxy item) |
protected ItemProxy |
getProxy(String uuid,
javax.ws.rs.core.NewCookie cookie) |
javax.ws.rs.core.Response.ResponseBuilder |
getViewpointOutcome(String uuid,
String schema,
String viewName,
boolean json,
javax.ws.rs.core.NewCookie cookie) |
protected LinkedHashMap<String,Object> |
makeCollectionData(Collection<?> coll,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
makeEventData(Event ev,
javax.ws.rs.core.UriInfo uri) |
protected LinkedHashMap<String,Object> |
makeJobData(Job job,
String itemName,
javax.ws.rs.core.UriInfo uri) |
static boolean |
produceJSON(List<javax.ws.rs.core.MediaType> types)
Check if the requested media type should be a JSON or XML
|
checkAndCreateNewCookie, checkAndCreateNewCookie, checkAuthCookie, createNewCookie, createNewCookie, decryptAuthData, encryptAuthData, getAgent, getAgent, getAgentPath, getPagedResult, getPropertiesFromQParams, makeItemDomainPathsData, toJSONprotected static final String PREDEFINED_PATH
protected static URI getItemURI(javax.ws.rs.core.UriInfo uri, ItemProxy item, Object... path)
protected static URI getItemURI(javax.ws.rs.core.UriInfo uri, ItemPath item, Object... path)
protected static ArrayList<LinkedHashMap<String,String>> getPropertySummary(ItemProxy item) throws org.cristalise.kernel.common.ObjectNotFoundException
org.cristalise.kernel.common.ObjectNotFoundExceptionpublic javax.ws.rs.core.Response.ResponseBuilder getViewpointOutcome(String uuid, String schema, String viewName, boolean json, javax.ws.rs.core.NewCookie cookie)
public javax.ws.rs.core.Response.ResponseBuilder getOutcome(String uuid, String schema, int version, int eventId, boolean json, javax.ws.rs.core.NewCookie cookie)
public ArrayList<LinkedHashMap<String,Object>> enumerate(ItemProxy item, ClusterType cluster, String uriPath, javax.ws.rs.core.UriInfo uri, javax.ws.rs.core.NewCookie cookie)
public ArrayList<LinkedHashMap<String,Object>> enumerate(ItemProxy item, String dataPath, String uriPath, javax.ws.rs.core.UriInfo uri, javax.ws.rs.core.NewCookie cookie)
protected ArrayList<LinkedHashMap<String,Object>> getAllViewpoints(ItemProxy item, javax.ws.rs.core.UriInfo uri, javax.ws.rs.core.NewCookie cookie) throws Exception
Exceptionprotected javax.ws.rs.core.Response.ResponseBuilder getOutcomeResponse(Outcome oc, boolean json, javax.ws.rs.core.NewCookie cookie)
oc - the Outcome to convertjson - produce json or xmlprotected javax.ws.rs.core.Response.ResponseBuilder getOutcomeResponse(Outcome oc, Date eventDate, boolean json, javax.ws.rs.core.NewCookie cookie)
oc - the Outcome to convertjson - produce json or xmlprotected javax.ws.rs.core.Response.ResponseBuilder getOutcomeResponse(Outcome oc, Event ev, boolean json, javax.ws.rs.core.NewCookie cookie)
protected LinkedHashMap<String,Object> makeEventData(Event ev, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> makeJobData(Job job, String itemName, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> getJobItemData(Job job, String itemName, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> getJobActivityData(Job job, String itemName, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> getJobTransitionData(Job job, String itemName, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> getJobOutcomeData(Job job, String itemName, javax.ws.rs.core.UriInfo uri)
protected LinkedHashMap<String,Object> makeCollectionData(Collection<?> coll, javax.ws.rs.core.UriInfo uri)
public static boolean produceJSON(List<javax.ws.rs.core.MediaType> types) throws UnsupportedOperationException
types - the media types requested by the clientUnsupportedOperationExceptionpublic static List<String> getItemNames(Property... props)
props - protected String executePredefinedStep(ItemProxy item, String postData, String contentType, String actPath, AgentProxy agent) throws org.cristalise.kernel.common.ObjectNotFoundException, org.cristalise.kernel.common.InvalidDataException, OutcomeBuilderException, org.cristalise.kernel.common.AccessRightsException, org.cristalise.kernel.common.InvalidTransitionException, org.cristalise.kernel.common.PersistencyException, org.cristalise.kernel.common.ObjectAlreadyExistsException, org.cristalise.kernel.common.InvalidCollectionModification
item - postData - types - actPath - agent - org.cristalise.kernel.common.ObjectNotFoundExceptionorg.cristalise.kernel.common.InvalidDataExceptionOutcomeBuilderExceptionorg.cristalise.kernel.common.AccessRightsExceptionorg.cristalise.kernel.common.InvalidTransitionExceptionorg.cristalise.kernel.common.PersistencyExceptionorg.cristalise.kernel.common.ObjectAlreadyExistsExceptionorg.cristalise.kernel.common.InvalidCollectionModificationprotected String executeJob(ItemProxy item, String postData, String contentType, String actPath, String transition, AgentProxy agent) throws org.cristalise.kernel.common.AccessRightsException, org.cristalise.kernel.common.ObjectNotFoundException, org.cristalise.kernel.common.PersistencyException, org.cristalise.kernel.common.InvalidDataException, OutcomeBuilderException, org.cristalise.kernel.common.InvalidTransitionException, org.cristalise.kernel.common.ObjectAlreadyExistsException, org.cristalise.kernel.common.InvalidCollectionModification, ScriptErrorException
item - postData - types - actPath - transition - agent - org.cristalise.kernel.common.AccessRightsExceptionorg.cristalise.kernel.common.ObjectNotFoundExceptionorg.cristalise.kernel.common.PersistencyExceptionorg.cristalise.kernel.common.InvalidDataExceptionOutcomeBuilderExceptionorg.cristalise.kernel.common.InvalidTransitionExceptionorg.cristalise.kernel.common.ObjectAlreadyExistsExceptionorg.cristalise.kernel.common.InvalidCollectionModificationScriptErrorExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.