KIE Remote Services :: Services 6.0.0.Final

org.kie.services.remote.rest
Class ResourceBase

java.lang.Object
  extended by org.kie.services.remote.rest.ResourceBase
Direct Known Subclasses:
RuntimeResource, TaskResource

public class ResourceBase
extends Object


Field Summary
protected static String PROC_INST_ID_PARAM_NAME
           
 
Constructor Summary
ResourceBase()
           
 
Method Summary
protected static List<org.kie.api.task.model.Status> convertStringListToStatusList(List<String> statusStrList)
           
protected static org.jbpm.services.task.query.TaskSummaryImpl convertTaskToTaskSummary(org.jbpm.services.task.impl.model.TaskImpl task)
           
protected static javax.ws.rs.core.Response createCorrectVariant(Object responseObj, javax.ws.rs.core.HttpHeaders headers)
           
protected static javax.ws.rs.core.Response createCorrectVariant(Object responseObj, javax.ws.rs.core.HttpHeaders headers, boolean useDefault)
           
protected static Map<String,Object> extractMapFromParams(Map<String,List<String>> params, String operation)
           
protected static List<Long> getLongListParam(String paramName, boolean required, Map<String,List<String>> params, String operation, boolean mustBeLong)
           
protected static Number getNumberParam(String paramName, boolean required, Map<String,List<String>> params, String operation, boolean mustBeLong)
           
protected static Object getObjectParam(String paramName, boolean required, Map<String,List<String>> params, String operation)
           
protected static List<org.kie.api.task.model.OrganizationalEntity> getOrganizationalEntityListFromParams(Map<String,List<String>> params, boolean required, String operation)
           
protected static int[] getPageNumAndPageSize(Map<String,List<String>> params, String oper)
           
protected  String getRelativePath(javax.servlet.http.HttpServletRequest request)
           
protected static Map<String,List<String>> getRequestParams(javax.servlet.http.HttpServletRequest request)
           
protected static List<String> getStringListParam(String paramName, boolean required, Map<String,List<String>> params, String operation)
           
protected static String getStringParam(String paramName, boolean required, Map<String,List<String>> params, String operation)
           
static javax.ws.rs.core.Variant getVariant(javax.ws.rs.core.HttpHeaders headers)
           
static JaxbCommandsResponse restProcessJaxbCommandsRequest(JaxbCommandsRequest request, RestProcessRequestBean requestBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROC_INST_ID_PARAM_NAME

protected static final String PROC_INST_ID_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

ResourceBase

public ResourceBase()
Method Detail

restProcessJaxbCommandsRequest

public static JaxbCommandsResponse restProcessJaxbCommandsRequest(JaxbCommandsRequest request,
                                                                  RestProcessRequestBean requestBean)

getVariant

public static javax.ws.rs.core.Variant getVariant(javax.ws.rs.core.HttpHeaders headers)

createCorrectVariant

protected static javax.ws.rs.core.Response createCorrectVariant(Object responseObj,
                                                                javax.ws.rs.core.HttpHeaders headers)

createCorrectVariant

protected static javax.ws.rs.core.Response createCorrectVariant(Object responseObj,
                                                                javax.ws.rs.core.HttpHeaders headers,
                                                                boolean useDefault)

getRequestParams

protected static Map<String,List<String>> getRequestParams(javax.servlet.http.HttpServletRequest request)

getStringParam

protected static String getStringParam(String paramName,
                                       boolean required,
                                       Map<String,List<String>> params,
                                       String operation)

getStringListParam

protected static List<String> getStringListParam(String paramName,
                                                 boolean required,
                                                 Map<String,List<String>> params,
                                                 String operation)

getObjectParam

protected static Object getObjectParam(String paramName,
                                       boolean required,
                                       Map<String,List<String>> params,
                                       String operation)

getLongListParam

protected static List<Long> getLongListParam(String paramName,
                                             boolean required,
                                             Map<String,List<String>> params,
                                             String operation,
                                             boolean mustBeLong)

getNumberParam

protected static Number getNumberParam(String paramName,
                                       boolean required,
                                       Map<String,List<String>> params,
                                       String operation,
                                       boolean mustBeLong)

extractMapFromParams

protected static Map<String,Object> extractMapFromParams(Map<String,List<String>> params,
                                                         String operation)

getOrganizationalEntityListFromParams

protected static List<org.kie.api.task.model.OrganizationalEntity> getOrganizationalEntityListFromParams(Map<String,List<String>> params,
                                                                                                         boolean required,
                                                                                                         String operation)

convertTaskToTaskSummary

protected static org.jbpm.services.task.query.TaskSummaryImpl convertTaskToTaskSummary(org.jbpm.services.task.impl.model.TaskImpl task)

convertStringListToStatusList

protected static List<org.kie.api.task.model.Status> convertStringListToStatusList(List<String> statusStrList)

getPageNumAndPageSize

protected static int[] getPageNumAndPageSize(Map<String,List<String>> params,
                                             String oper)

getRelativePath

protected String getRelativePath(javax.servlet.http.HttpServletRequest request)

KIE Remote Services :: Services 6.0.0.Final

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.