KIE Remote Services :: Services 6.2.0.CR4

org.kie.remote.services.rest
Class DeployResourceBase

java.lang.Object
  extended by org.kie.remote.services.rest.ResourceBase
      extended by org.kie.remote.services.rest.DeployResourceBase

@Singleton
public class DeployResourceBase
extends ResourceBase

This class is extended by both the DeploymentResourceImpl and the DeploymentsResourceImpl.

It contains methods and fields common to both REST resource implementations.


Field Summary
 
Fields inherited from class org.kie.remote.services.rest.ResourceBase
paginationParams, PROC_INST_ID_PARAM_NAME, processRequestBean
 
Constructor Summary
DeployResourceBase()
           
 
Method Summary
 void activate(String deploymentId)
           
 void deactivate(String deploymentId)
           
 JaxbDeploymentUnit determineStatus(String deploymentId, boolean checkDeploymentService)
          Determines the status of a deployment
 void fillProcessDefinitionList(String deploymentId, int[] pageInfo, int maxNumResults, List<JaxbProcessDefinition> procDefList)
           
 JaxbDeploymentUnitList getDeploymentList(int[] pageInfo, int maxNumResults)
           
 JaxbProcessDefinitionList getProcessDefinitionList(int[] pageInfo, int maxNumResults)
           
 JaxbDeploymentJobResult submitDeployJob(String deploymentId, String strategy, String mergeMode, JaxbDeploymentDescriptor deployDescriptor)
           
 JaxbDeploymentJobResult submitUndeployJob(String deploymentId)
           
 
Methods inherited from class org.kie.remote.services.rest.ResourceBase
convertProcAssetDescToJaxbProcDef, convertStringListToStatusList, convertTaskToTaskSummary, createCorrectVariant, createCorrectVariant, doRestTaskOperation, doRestTaskOperationWithDeploymentId, doRestTaskOperationWithTaskId, extractMapFromParams, getAuditLogService, getBaseUri, getEnum, getLongListParam, getMaxNumResultsNeeded, getNumberParam, getObjectParam, getOrganizationalEntityListFromParams, getPageNumAndPageSize, getRelativePath, getRequestParams, getRequestUri, getStringListParam, getStringListParamAsList, getStringParam, paginate, paginateAndCreateResult, paginateAndCreateResult, restProcessJaxbCommandsRequest, setProcessRequestBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployResourceBase

public DeployResourceBase()
Method Detail

determineStatus

public JaxbDeploymentUnit determineStatus(String deploymentId,
                                          boolean checkDeploymentService)
Determines the status of a deployment

Parameters:
checkDeploymentService - Whether or not to use the DeploymentService when checking the status
Returns:
A JaxbDeploymentUnit representing the status

submitDeployJob

public JaxbDeploymentJobResult submitDeployJob(String deploymentId,
                                               String strategy,
                                               String mergeMode,
                                               JaxbDeploymentDescriptor deployDescriptor)

submitUndeployJob

public JaxbDeploymentJobResult submitUndeployJob(String deploymentId)

getDeploymentList

public JaxbDeploymentUnitList getDeploymentList(int[] pageInfo,
                                                int maxNumResults)

getProcessDefinitionList

public JaxbProcessDefinitionList getProcessDefinitionList(int[] pageInfo,
                                                          int maxNumResults)

fillProcessDefinitionList

public void fillProcessDefinitionList(String deploymentId,
                                      int[] pageInfo,
                                      int maxNumResults,
                                      List<JaxbProcessDefinition> procDefList)

activate

public void activate(String deploymentId)

deactivate

public void deactivate(String deploymentId)

KIE Remote Services :: Services 6.2.0.CR4

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