public abstract class AbstractRelatedContentResource extends Object
Modifier and Type | Field and Description |
---|---|
protected RelatedContentService |
contentService |
protected HistoryService |
historyService |
protected PermissionService |
permissionService |
protected RelatedContentStreamProvider |
relatedContentStreamProvider |
protected RepositoryService |
repositoryService |
protected com.activiti.model.component.SimpleContentTypeMapper |
simpleTypeMapper |
protected RelatedContentStreamProvider |
streamProvider |
protected TaskService |
taskService |
protected UserCache |
userCache |
Constructor and Description |
---|
AbstractRelatedContentResource() |
Modifier and Type | Method and Description |
---|---|
protected com.activiti.model.runtime.RelatedContentRepresentation |
addRelatedContent(com.activiti.model.runtime.RelatedContentRepresentation relatedContent,
String taskId,
String processInstanceId,
boolean isRelatedContent) |
protected List<com.activiti.model.runtime.ProcessInstanceRepresentation> |
convertInstanceList(List<HistoricProcessInstance> instances) |
com.activiti.model.runtime.RelatedContentRepresentation |
createRelatedContentOnProcessInstance(String processInstanceId,
org.springframework.web.multipart.MultipartFile file) |
com.activiti.model.runtime.RelatedContentRepresentation |
createRelatedContentOnProcessInstance(String processInstanceId,
com.activiti.model.runtime.RelatedContentRepresentation relatedContent) |
com.activiti.model.runtime.RelatedContentRepresentation |
createRelatedContentOnTask(String taskId,
org.springframework.web.multipart.MultipartFile file) |
com.activiti.model.runtime.RelatedContentRepresentation |
createRelatedContentOnTask(String taskId,
com.activiti.model.runtime.RelatedContentRepresentation relatedContent) |
protected com.activiti.model.runtime.RelatedContentRepresentation |
createRelatedContentResponse(com.activiti.domain.runtime.RelatedContent relatedContent) |
protected com.activiti.model.common.ResultListDataRepresentation |
createResultRepresentation(org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> results) |
com.activiti.model.runtime.RelatedContentRepresentation |
createTemporaryRawRelatedContent(org.springframework.web.multipart.MultipartFile file) |
com.activiti.model.runtime.RelatedContentRepresentation |
createTemporaryRelatedContent(com.activiti.model.runtime.RelatedContentRepresentation relatedContent) |
void |
deleteContent(Long contentId,
javax.servlet.http.HttpServletResponse response) |
com.activiti.model.runtime.RelatedContentRepresentation |
getContent(Long contentId) |
protected String |
getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file) |
protected String |
getFileName(org.springframework.web.multipart.MultipartFile file) |
void |
getRawContent(Long contentId,
javax.servlet.http.HttpServletResponse response) |
com.activiti.model.common.ResultListDataRepresentation |
getRelatedContentForProcessInstance(String processInstanceId) |
com.activiti.model.common.ResultListDataRepresentation |
getRelatedContentForTask(String taskId) |
com.activiti.model.common.ResultListDataRepresentation |
getRelatedProcessInstancesForContent(String source,
String sourceId) |
protected com.activiti.model.runtime.RelatedContentRepresentation |
uploadFile(com.activiti.domain.idm.User user,
org.springframework.web.multipart.MultipartFile file,
String taskId,
String processInstanceId) |
@Autowired protected PermissionService permissionService
@Autowired protected RelatedContentService contentService
@Autowired protected RelatedContentStreamProvider streamProvider
@Autowired protected TaskService taskService
@Autowired protected com.activiti.model.component.SimpleContentTypeMapper simpleTypeMapper
@Autowired protected HistoryService historyService
@Autowired protected RepositoryService repositoryService
@Autowired protected UserCache userCache
@Autowired protected RelatedContentStreamProvider relatedContentStreamProvider
public com.activiti.model.common.ResultListDataRepresentation getRelatedContentForTask(String taskId)
public com.activiti.model.common.ResultListDataRepresentation getRelatedContentForProcessInstance(String processInstanceId)
public com.activiti.model.runtime.RelatedContentRepresentation createRelatedContentOnTask(String taskId, org.springframework.web.multipart.MultipartFile file)
public com.activiti.model.runtime.RelatedContentRepresentation createRelatedContentOnTask(String taskId, com.activiti.model.runtime.RelatedContentRepresentation relatedContent)
public com.activiti.model.runtime.RelatedContentRepresentation createRelatedContentOnProcessInstance(String processInstanceId, com.activiti.model.runtime.RelatedContentRepresentation relatedContent)
public com.activiti.model.runtime.RelatedContentRepresentation createRelatedContentOnProcessInstance(String processInstanceId, org.springframework.web.multipart.MultipartFile file)
public com.activiti.model.runtime.RelatedContentRepresentation createTemporaryRawRelatedContent(org.springframework.web.multipart.MultipartFile file)
public com.activiti.model.runtime.RelatedContentRepresentation createTemporaryRelatedContent(com.activiti.model.runtime.RelatedContentRepresentation relatedContent)
public void deleteContent(Long contentId, javax.servlet.http.HttpServletResponse response)
public com.activiti.model.runtime.RelatedContentRepresentation getContent(Long contentId)
public void getRawContent(Long contentId, javax.servlet.http.HttpServletResponse response)
public com.activiti.model.common.ResultListDataRepresentation getRelatedProcessInstancesForContent(String source, String sourceId)
protected List<com.activiti.model.runtime.ProcessInstanceRepresentation> convertInstanceList(List<HistoricProcessInstance> instances)
protected com.activiti.model.runtime.RelatedContentRepresentation uploadFile(com.activiti.domain.idm.User user, org.springframework.web.multipart.MultipartFile file, String taskId, String processInstanceId)
protected com.activiti.model.runtime.RelatedContentRepresentation addRelatedContent(com.activiti.model.runtime.RelatedContentRepresentation relatedContent, String taskId, String processInstanceId, boolean isRelatedContent)
protected String getFileName(org.springframework.web.multipart.MultipartFile file)
protected com.activiti.model.common.ResultListDataRepresentation createResultRepresentation(org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> results)
protected com.activiti.model.runtime.RelatedContentRepresentation createRelatedContentResponse(com.activiti.domain.runtime.RelatedContent relatedContent)
protected String getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file)
Copyright © 2014–2015 Alfresco. All rights reserved.