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
OwRestExceptionpublic TaskFormModelResource taskFormModelResource(String taskId) throws OwRestException
OwRestExceptionpublic ProcessesResource processesResource() throws OwRestException
OwRestExceptionpublic 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).OwRestExceptionpublic 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.OwRestExceptionpublic TaskInstancesResource taskInstancesForProcessResource(String processId) throws OwRestException
OwRestExceptionpublic ProcessInstanceItemsResource processInstanceItems(String processId) throws OwRestException
OwRestExceptionpublic ProcessInstanceItemResource processInstanceItem(String processId, String itemGuidId) throws OwRestException
OwRestExceptionpublic ProcessInstanceResource processInstance(String processId) throws OwRestException
OwRestExceptionpublic ProcessImageResource processImageResource(String processId) throws OwRestException
OwRestExceptionpublic TaskInstanceVariableResource taskInstanceVariableResource(String taskId, String variableName) throws OwRestException
OwRestExceptionpublic TaskInstanceVariablesResource taskInstanceVariablesResource(String taskId) throws OwRestException
OwRestExceptionpublic TaskInstanceStateResource taskInstanceStateResource(String taskInstanceId) throws OwRestException
OwRestExceptionprotected String getCallUrl(String actionUri)
actionUri - String URI of the actionpublic void release()
public AlfrescoRESTFulFactoryOld getOldAPIFactory()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.