public abstract class AbstractRelatedContentResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ContentService |
contentService |
protected HistoryService |
historyService |
protected PermissionService |
permissionService |
protected RepositoryService |
repositoryService |
protected SimpleContentTypeMapper |
simpleTypeMapper |
protected TaskService |
taskService |
protected org.flowable.ui.common.service.idm.cache.UserCache |
userCache |
| Constructor and Description |
|---|
AbstractRelatedContentResource() |
| Modifier and Type | Method and Description |
|---|---|
protected ContentItemRepresentation |
addContentItem(ContentItemRepresentation contentItemBody,
String taskId,
String processInstanceId,
boolean isRelatedContent) |
ContentItemRepresentation |
createContentItemOnCase(String caseId,
org.springframework.web.multipart.MultipartFile file) |
ContentItemRepresentation |
createContentItemOnProcessInstance(String processInstanceId,
ContentItemRepresentation contentItem) |
ContentItemRepresentation |
createContentItemOnProcessInstance(String processInstanceId,
org.springframework.web.multipart.MultipartFile file) |
ContentItemRepresentation |
createContentItemOnTask(String taskId,
ContentItemRepresentation contentItem) |
ContentItemRepresentation |
createContentItemOnTask(String taskId,
org.springframework.web.multipart.MultipartFile file) |
protected ContentItemRepresentation |
createContentItemResponse(ContentItem contentItem) |
protected org.flowable.ui.common.model.ResultListDataRepresentation |
createResultRepresentation(List<ContentItem> results) |
ContentItemRepresentation |
createTemporaryContentItem(ContentItemRepresentation contentItem) |
ContentItemRepresentation |
createTemporaryRawContentItem(org.springframework.web.multipart.MultipartFile file) |
void |
deleteContent(String contentId,
javax.servlet.http.HttpServletResponse response) |
ContentItemRepresentation |
getContent(String contentId) |
org.flowable.ui.common.model.ResultListDataRepresentation |
getContentItemsForCase(String caseInstanceId) |
org.flowable.ui.common.model.ResultListDataRepresentation |
getContentItemsForProcessInstance(String processInstanceId) |
org.flowable.ui.common.model.ResultListDataRepresentation |
getContentItemsForTask(String taskId) |
protected String |
getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file) |
protected String |
getFileName(org.springframework.web.multipart.MultipartFile file) |
void |
getRawContent(String contentId,
javax.servlet.http.HttpServletResponse response) |
protected ContentItemRepresentation |
uploadFile(org.flowable.ui.common.security.SecurityScope user,
org.springframework.web.multipart.MultipartFile file,
String taskId,
String processInstanceId,
String caseId) |
@Autowired protected PermissionService permissionService
@Autowired protected ContentService contentService
@Autowired protected TaskService taskService
@Autowired protected SimpleContentTypeMapper simpleTypeMapper
@Autowired protected HistoryService historyService
@Autowired protected RepositoryService repositoryService
@Autowired protected org.flowable.ui.common.service.idm.cache.UserCache userCache
public org.flowable.ui.common.model.ResultListDataRepresentation getContentItemsForTask(String taskId)
public org.flowable.ui.common.model.ResultListDataRepresentation getContentItemsForCase(String caseInstanceId)
public org.flowable.ui.common.model.ResultListDataRepresentation getContentItemsForProcessInstance(String processInstanceId)
public ContentItemRepresentation createContentItemOnTask(String taskId, org.springframework.web.multipart.MultipartFile file)
public ContentItemRepresentation createContentItemOnTask(String taskId, ContentItemRepresentation contentItem)
public ContentItemRepresentation createContentItemOnProcessInstance(String processInstanceId, ContentItemRepresentation contentItem)
public ContentItemRepresentation createContentItemOnProcessInstance(String processInstanceId, org.springframework.web.multipart.MultipartFile file)
public ContentItemRepresentation createContentItemOnCase(String caseId, org.springframework.web.multipart.MultipartFile file)
public ContentItemRepresentation createTemporaryRawContentItem(org.springframework.web.multipart.MultipartFile file)
public ContentItemRepresentation createTemporaryContentItem(ContentItemRepresentation contentItem)
public void deleteContent(String contentId, javax.servlet.http.HttpServletResponse response)
public ContentItemRepresentation getContent(String contentId)
public void getRawContent(String contentId, javax.servlet.http.HttpServletResponse response)
protected ContentItemRepresentation uploadFile(org.flowable.ui.common.security.SecurityScope user, org.springframework.web.multipart.MultipartFile file, String taskId, String processInstanceId, String caseId)
protected ContentItemRepresentation addContentItem(ContentItemRepresentation contentItemBody, String taskId, String processInstanceId, boolean isRelatedContent)
protected String getFileName(org.springframework.web.multipart.MultipartFile file)
protected org.flowable.ui.common.model.ResultListDataRepresentation createResultRepresentation(List<ContentItem> results)
protected ContentItemRepresentation createContentItemResponse(ContentItem contentItem)
protected String getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file)
Copyright © 2022 Flowable. All rights reserved.