public class AlfrescoRESTFulFactory extends Object
Factory to create RESTful resources for the new Alfresco Workflow Public REST API.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
protected static String |
WORKFLOW_PUBLIC_REST_API_PATH |
Constructor and Description |
---|
AlfrescoRESTFulFactory(String baseURL,
org.alfresco.wd.ext.restlet.auth.OwRestletAuthenticationHandler authHandler,
Locale currentLocale,
NativeValueConverterFactory converterFactory)
Constructor for REST-Connection handler
|
protected static final String WORKFLOW_PUBLIC_REST_API_PATH
public AlfrescoRESTFulFactory(String baseURL, org.alfresco.wd.ext.restlet.auth.OwRestletAuthenticationHandler authHandler, Locale currentLocale, NativeValueConverterFactory converterFactory)
baseURL
- String base part of URLauthHandler
- OwRestletAuthenticationHandlercurrentLocale
- LocaleconverterFactory
- NativeValueConverterFactorypublic ProcessDefinitionsResource processDefinitionsResource(OperationContext context) throws OwRestException
OwRestException
- thrown if something goes wrong with the creation of the REST resource.public ProcessDefinitionStartFormModelResource processDefinitionStartFormModelResource(String processDefinitionId) throws OwRestException
OwRestException
public TaskFormModelResource taskFormModelResource(String taskId) throws OwRestException
OwRestException
public ProcessesResource processesResource() throws OwRestException
OwRestException
public TaskInstanceResource taskInstanceResource(String taskId, String selectStatement) throws OwRestException
taskId
- the ID of the task that will be updated.selectStatement
- comma separated list of the names of the fields that should be updated (this is needed for a partial update).OwRestException
public TaskInstancesResource taskInstancesResource(String assignee, String candidateUser, String candidateGroup, Status status, com.wewebu.ow.server.field.OwSearchNode filterCriteria_p, OperationContext context) throws OwRestException
assignee
- - return only tasks for which the assignee is this user.candidateUser
- - return only tasks for which this user is a candidate.candidateGroup
- - return only tasks for which this group is a candidate.status
- - only return tasks with a given status.filterCriteria_p
- - additional filtering based on tasks' variables should be expressed as a OwSearchNode
.OwRestException
public TaskInstancesResource taskInstancesForProcessResource(String processId) throws OwRestException
OwRestException
public ProcessInstanceItemsResource processInstanceItems(String processId) throws OwRestException
OwRestException
public ProcessInstanceItemResource processInstanceItem(String processId, String itemGuidId) throws OwRestException
OwRestException
public ProcessInstanceResource processInstance(String processId) throws OwRestException
OwRestException
public ProcessImageResource processImageResource(String processId) throws OwRestException
OwRestException
public TaskInstanceVariableResource taskInstanceVariableResource(String taskId, String variableName) throws OwRestException
OwRestException
public TaskInstanceVariablesResource taskInstanceVariablesResource(String taskId) throws OwRestException
OwRestException
public TaskInstanceStateResource taskInstanceStateResource(String taskInstanceId) throws OwRestException
OwRestException
protected String getCallUrl(String actionUri)
actionUri
- String URI of the actionpublic void release()
public AlfrescoRESTFulFactoryOld getOldAPIFactory()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.