KIE Remote Services :: Services 6.2.0.Beta3

org.kie.remote.services.rest
Class ResourceBase

java.lang.Object
  extended by org.kie.remote.services.rest.ResourceBase
Direct Known Subclasses:
CommandWebServiceImpl, DeploymentResourceImpl, DeploymentsResourceImpl, DeployResourceBase, HistoryResourceImpl, QueryResourceImpl, RuntimeResourceImpl, TaskResourceImpl

public class ResourceBase
extends Object


Field Summary
protected static org.slf4j.Logger logger
           
static Set<String> paginationParams
           
static String PROC_INST_ID_PARAM_NAME
           
protected  ProcessRequestBean processRequestBean
           
 
Constructor Summary
ResourceBase()
           
 
Method Summary
protected  JaxbProcessDefinition convertProcAssetDescToJaxbProcDef(org.jbpm.services.api.model.ProcessDefinition procAssetDesc)
           
protected static List<org.kie.api.task.model.Status> convertStringListToStatusList(List<String> statusStrList)
           
protected static org.jbpm.services.task.query.TaskSummaryImpl convertTaskToTaskSummary(org.kie.internal.task.api.model.InternalTask 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, javax.ws.rs.core.Response.Status status)
           
protected
<T> T
doRestTaskOperation(org.jbpm.services.task.commands.TaskCommand<T> cmd)
           
protected
<T> T
doRestTaskOperationWithDeploymentId(String deploymentId, org.jbpm.services.task.commands.TaskCommand<T> cmd)
           
protected
<T> T
doRestTaskOperationWithTaskId(Long taskId, org.jbpm.services.task.commands.TaskCommand<T> cmd)
           
protected static Map<String,Object> extractMapFromParams(Map<String,String[]> params, String operation)
           
protected  org.jbpm.process.audit.AuditLogService getAuditLogService()
           
protected  String getBaseUri()
           
protected static org.kie.api.task.model.Status getEnum(String value)
           
protected static List<Long> getLongListParam(String paramName, boolean required, Map<String,String[]> params, String operation, boolean mustBeLong)
           
protected static int getMaxNumResultsNeeded(int[] pageInfo)
           
protected static Number getNumberParam(String paramName, boolean required, Map<String,String[]> params, String operation, boolean mustBeLong)
           
protected static Object getObjectParam(String paramName, boolean required, Map<String,String[]> params, String operation)
           
protected static List<org.kie.api.task.model.OrganizationalEntity> getOrganizationalEntityListFromParams(Map<String,String[]> params, boolean required, String operation)
           
protected static int[] getPageNumAndPageSize(Map<String,String[]> params, String oper)
           
protected  String getRelativePath()
           
protected  Map<String,String[]> getRequestParams()
           
protected  String getRequestUri()
           
protected static String[] getStringListParam(String paramName, boolean required, Map<String,String[]> params, String operation)
           
protected static List<String> getStringListParamAsList(String paramName, boolean required, Map<String,String[]> params, String operation)
           
protected static String getStringParam(String paramName, boolean required, Map<String,String[]> params, String operation)
           
protected static
<T> List<T>
paginate(int[] pageInfo, List<T> results)
           
protected static
<T,R extends JaxbPaginatedList<T>>
R
paginateAndCreateResult(int[] pageInfo, List<T> results, R resultList)
           
protected static
<T,R extends JaxbPaginatedList<T>>
R
paginateAndCreateResult(Map<String,String[]> params, String oper, List<T> results, R resultList)
           
protected  JaxbCommandsResponse restProcessJaxbCommandsRequest(JaxbCommandsRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger

processRequestBean

@Inject
protected ProcessRequestBean processRequestBean

paginationParams

public static Set<String> paginationParams

PROC_INST_ID_PARAM_NAME

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

ResourceBase

public ResourceBase()
Method Detail

getAuditLogService

protected org.jbpm.process.audit.AuditLogService getAuditLogService()

restProcessJaxbCommandsRequest

protected JaxbCommandsResponse restProcessJaxbCommandsRequest(JaxbCommandsRequest request)

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,
                                                                javax.ws.rs.core.Response.Status status)

getRequestParams

protected Map<String,String[]> getRequestParams()

getStringParam

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

getStringListParamAsList

protected static List<String> getStringListParamAsList(String paramName,
                                                       boolean required,
                                                       Map<String,String[]> params,
                                                       String operation)

getStringListParam

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

getObjectParam

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

getLongListParam

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

getNumberParam

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

extractMapFromParams

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

getOrganizationalEntityListFromParams

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

convertTaskToTaskSummary

protected static org.jbpm.services.task.query.TaskSummaryImpl convertTaskToTaskSummary(org.kie.internal.task.api.model.InternalTask task)

convertStringListToStatusList

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

getPageNumAndPageSize

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

paginate

protected static <T> List<T> paginate(int[] pageInfo,
                                      List<T> results)

getMaxNumResultsNeeded

protected static int getMaxNumResultsNeeded(int[] pageInfo)

paginateAndCreateResult

protected static <T,R extends JaxbPaginatedList<T>> R paginateAndCreateResult(Map<String,String[]> params,
                                                                              String oper,
                                                                              List<T> results,
                                                                              R resultList)

paginateAndCreateResult

protected static <T,R extends JaxbPaginatedList<T>> R paginateAndCreateResult(int[] pageInfo,
                                                                              List<T> results,
                                                                              R resultList)

getBaseUri

protected String getBaseUri()

getRequestUri

protected String getRequestUri()

getRelativePath

protected String getRelativePath()

getEnum

protected static org.kie.api.task.model.Status getEnum(String value)

convertProcAssetDescToJaxbProcDef

protected JaxbProcessDefinition convertProcAssetDescToJaxbProcDef(org.jbpm.services.api.model.ProcessDefinition procAssetDesc)

doRestTaskOperation

protected <T> T doRestTaskOperation(org.jbpm.services.task.commands.TaskCommand<T> cmd)

doRestTaskOperationWithTaskId

protected <T> T doRestTaskOperationWithTaskId(Long taskId,
                                              org.jbpm.services.task.commands.TaskCommand<T> cmd)

doRestTaskOperationWithDeploymentId

protected <T> T doRestTaskOperationWithDeploymentId(String deploymentId,
                                                    org.jbpm.services.task.commands.TaskCommand<T> cmd)

KIE Remote Services :: Services 6.2.0.Beta3

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