@Service public class RelatedContentService extends Object
Modifier and Type | Field and Description |
---|---|
protected Clock |
clock |
protected com.activiti.repository.runtime.RelatedContentRepository |
contentRepository |
protected ContentStorage |
contentStorage |
Constructor and Description |
---|
RelatedContentService() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkin(com.activiti.domain.runtime.RelatedContent content,
String comment,
boolean keepCheckedOut) |
boolean |
checkout(com.activiti.domain.runtime.RelatedContent content,
com.activiti.domain.idm.User user,
boolean toLocal) |
com.activiti.domain.runtime.RelatedContent |
createRelatedContent(com.activiti.domain.idm.User user,
String name,
String source,
String sourceId,
String taskId,
String processId,
String mimeType,
InputStream data,
Long lengthHint,
boolean relatedContent,
boolean link) |
protected com.activiti.domain.runtime.RelatedContent |
createRelatedContent(com.activiti.domain.idm.User user,
String name,
String source,
String sourceId,
String taskId,
String processId,
String mimeType,
InputStream data,
Long lengthHint,
boolean relatedContent,
boolean link,
String field) |
com.activiti.domain.runtime.RelatedContent |
createRelatedContent(com.activiti.domain.idm.User user,
String name,
String source,
String sourceId,
String taskId,
String processId,
String field,
String mimeType,
InputStream data,
Long lengthHint) |
void |
deleteContentForProcessInstance(String processInstanceId)
Deletes all content related to the given process instance.
|
void |
deleteRelatedContent(com.activiti.domain.runtime.RelatedContent content) |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getAllFieldContentForProcessInstance(String processInstanceId,
int pageSize,
int page) |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getAllFieldContentForTask(String taskId,
String field,
int pageSize,
int page) |
ContentStorage |
getContentStorage() |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getFieldContentForProcessInstance(String processInstanceId,
String field,
int pageSize,
int page) |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getFieldContentForTask(String taskId,
int pageSize,
int page) |
com.activiti.domain.runtime.RelatedContent |
getRelatedContent(Long id,
boolean includeOwner) |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getRelatedContent(String source,
String sourceId,
int pageSize,
int page) |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getRelatedContentForProcessInstance(String processInstanceId,
int pageSize,
int page) |
org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> |
getRelatedContentForTask(String taskId,
int pageSize,
int page) |
boolean |
lockContent(com.activiti.domain.runtime.RelatedContent content,
int timeOut,
com.activiti.domain.idm.User user) |
void |
setContentField(Long relatedContentId,
String field,
String processInstanceId,
String taskId)
Marks a piece of content as permanent and flags it being used as selected content in the given field,
for the given process instance id and (optional) task id.
|
void |
storeRelatedContent(com.activiti.domain.runtime.RelatedContent relatedContent) |
boolean |
uncheckout(com.activiti.domain.runtime.RelatedContent content) |
boolean |
unlock(com.activiti.domain.runtime.RelatedContent content) |
void |
updateName(Long relatedContentId,
String newName) |
void |
updateRelatedContentData(Long relatedContentId,
String contentStoreId,
InputStream contentStream,
Long lengthHint,
com.activiti.domain.idm.User user) |
@Autowired protected com.activiti.repository.runtime.RelatedContentRepository contentRepository
@Autowired protected ContentStorage contentStorage
@Autowired protected Clock clock
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getRelatedContent(String source, String sourceId, int pageSize, int page)
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getRelatedContentForTask(String taskId, int pageSize, int page)
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getRelatedContentForProcessInstance(String processInstanceId, int pageSize, int page)
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getFieldContentForProcessInstance(String processInstanceId, String field, int pageSize, int page)
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getFieldContentForTask(String taskId, int pageSize, int page)
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getAllFieldContentForProcessInstance(String processInstanceId, int pageSize, int page)
public org.springframework.data.domain.Page<com.activiti.domain.runtime.RelatedContent> getAllFieldContentForTask(String taskId, String field, int pageSize, int page)
@Transactional public com.activiti.domain.runtime.RelatedContent createRelatedContent(com.activiti.domain.idm.User user, String name, String source, String sourceId, String taskId, String processId, String field, String mimeType, InputStream data, Long lengthHint)
@Transactional public com.activiti.domain.runtime.RelatedContent createRelatedContent(com.activiti.domain.idm.User user, String name, String source, String sourceId, String taskId, String processId, String mimeType, InputStream data, Long lengthHint, boolean relatedContent, boolean link)
protected com.activiti.domain.runtime.RelatedContent createRelatedContent(com.activiti.domain.idm.User user, String name, String source, String sourceId, String taskId, String processId, String mimeType, InputStream data, Long lengthHint, boolean relatedContent, boolean link, String field)
public com.activiti.domain.runtime.RelatedContent getRelatedContent(Long id, boolean includeOwner)
@Transactional public void deleteRelatedContent(com.activiti.domain.runtime.RelatedContent content)
@Transactional public boolean lockContent(com.activiti.domain.runtime.RelatedContent content, int timeOut, com.activiti.domain.idm.User user)
@Transactional public boolean checkout(com.activiti.domain.runtime.RelatedContent content, com.activiti.domain.idm.User user, boolean toLocal)
@Transactional public boolean unlock(com.activiti.domain.runtime.RelatedContent content)
@Transactional public boolean uncheckout(com.activiti.domain.runtime.RelatedContent content)
@Transactional public boolean checkin(com.activiti.domain.runtime.RelatedContent content, String comment, boolean keepCheckedOut)
@Transactional public void updateRelatedContentData(Long relatedContentId, String contentStoreId, InputStream contentStream, Long lengthHint, com.activiti.domain.idm.User user)
@Transactional public void setContentField(Long relatedContentId, String field, String processInstanceId, String taskId)
@Transactional public void storeRelatedContent(com.activiti.domain.runtime.RelatedContent relatedContent)
public ContentStorage getContentStorage()
@Transactional public void deleteContentForProcessInstance(String processInstanceId)
Copyright © 2014–2015 Alfresco. All rights reserved.