KIE Remote Services :: Services 6.0.0.Beta3

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


Constructor Summary
ResourceBase()
           
 
Method Summary
protected static String checkThatOperationExists(String operation, String[] possibleOperations)
           
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 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)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBase

public ResourceBase()
Method Detail

checkThatOperationExists

protected static String checkThatOperationExists(String operation,
                                                 String[] possibleOperations)

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)

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)

KIE Remote Services :: Services 6.0.0.Beta3

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