KIE Remote Services :: Services 6.2.0.CR4

org.kie.remote.services.rest
Class DeploymentResourceImpl

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

@RequestScoped
public class DeploymentResourceImpl
extends ResourceBase

This REST resource is responsible for retrieving information about and managing deployment units.


Field Summary
 
Fields inherited from class org.kie.remote.services.rest.ResourceBase
paginationParams, PROC_INST_ID_PARAM_NAME, processRequestBean
 
Constructor Summary
DeploymentResourceImpl()
           
 
Method Summary
 javax.ws.rs.core.Response activate()
           
 javax.ws.rs.core.Response deactivate()
           
 javax.ws.rs.core.Response deploy(JaxbDeploymentDescriptor deployDescriptor)
          Queues a request to deploy the given deployment unit.
 javax.ws.rs.core.Response getConfig()
          Retrieve the status of the DeploymentUnit specified in the URL.
 javax.ws.rs.core.Response listProcessDefinitions()
          Returns a list of process definitions for the specified deployment.
 javax.ws.rs.core.Response undeploy()
          Queues a request to undeploy the deployment unit specified in the URL
 
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

DeploymentResourceImpl

public DeploymentResourceImpl()
Method Detail

getConfig

public javax.ws.rs.core.Response getConfig()
Retrieve the status of the DeploymentUnit specified in the URL.

Returns:
A JaxbDeploymentUnit instance

deploy

public javax.ws.rs.core.Response deploy(JaxbDeploymentDescriptor deployDescriptor)
Queues a request to deploy the given deployment unit. If the deployment already exist, this operation will fail.

Parameters:
deployDescriptor - An optional DeploymentDescriptor instance specifying additional information about how the deployment unit should be deployed.
Returns:
A JaxbDeploymentJobResult instance with the initial status of the job

undeploy

public javax.ws.rs.core.Response undeploy()
Queues a request to undeploy the deployment unit specified in the URL

Returns:
A JaxbDeploymentJobResult instance with the initial status of the job

listProcessDefinitions

public javax.ws.rs.core.Response listProcessDefinitions()
Returns a list of process definitions for the specified deployment.

Returns:
A JaxbProcessDefinitionList instance

activate

public javax.ws.rs.core.Response activate()

deactivate

public javax.ws.rs.core.Response deactivate()

KIE Remote Services :: Services 6.2.0.CR4

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