@Transactional
public class PlatformFolderItemService
extends com.flowable.platform.security.service.AbstractPlatformSecurityService
Modifier and Type | Field and Description |
---|---|
protected org.flowable.cmmn.api.CmmnHistoryService |
cmmnHistoryService |
protected com.flowable.core.content.api.CoreContentService |
contentService |
protected com.flowable.core.service.form.FolderNameParser |
folderNameParser |
protected org.flowable.engine.HistoryService |
historyService |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
static String |
PERSONAL_FOLDER_NAME |
protected PlatformCaseInstanceService |
platformCaseInstanceService |
protected PlatformContentItemService |
platformContentItemService |
protected PlatformEntityLinkService |
platformEntityLinkService |
protected PlatformProcessInstanceService |
platformProcessInstanceService |
protected PlatformTaskService |
platformTaskService |
static String |
SCOPE_TYPE_USER |
protected SearchService |
searchService |
protected SimpleContentTypeMapper |
simpleTypeMapper |
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
Constructor and Description |
---|
PlatformFolderItemService() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildFiles(String contentItemId,
List<FolderItem> childFiles) |
protected void |
buildHierarchy(String scopeType,
String scopeId,
List<com.flowable.core.service.form.HierarchyLevel> hierarchy) |
com.flowable.core.content.api.CoreContentItem |
createCaseFolderHierarchy(String caseInstanceId) |
protected com.flowable.core.content.api.CoreContentItem |
createCustomFolderHierarchy(List<com.flowable.core.service.form.HierarchyLevel> hierarchy,
String parentFolderId) |
com.flowable.core.content.api.CoreContentItem |
createFolderFromInstance(String scopeType,
String scopeId) |
com.flowable.core.content.api.CoreContentItem |
createFolderFromPath(String path,
String scopeType,
String scopeId) |
protected com.flowable.core.content.api.CoreContentItem |
createPersonalFolder(String contentItemId) |
com.flowable.core.content.api.CoreContentItem |
createProcessFolderHierarchy(String processInstanceId) |
com.flowable.core.content.api.CoreContentItem |
createTaskFolderHierarchy(String taskId) |
protected com.flowable.core.content.api.CoreContentItem |
createWorkFolderHierarchy(List<com.flowable.core.service.form.HierarchyLevel> hierarchy,
String parentFolderId) |
protected String |
getCaseCustomFolderPath(String caseInstanceId) |
protected String |
getCaseTaskCustomFolderPath(String taskDefinitionKey,
String caseDefinitionId,
String scopeId) |
List<FolderItem> |
getChildContentItems(String contentItemId,
Boolean showFolders) |
List<FolderItem> |
getFirstLevelContentItems(String contentItemId) |
com.flowable.core.content.api.CoreContentItem |
getFolderFromScope(String scopeType,
String scopeId) |
protected List<com.flowable.core.service.form.HierarchyLevel> |
getHierarchyFromEntityLinks(String scopeType,
String scopeId) |
protected com.flowable.core.service.form.HierarchyLevel |
getHierarchyLevel(String scopeType,
String scopeId) |
com.flowable.core.content.api.CoreContentItem |
getOrCreateParentFolder(com.flowable.core.content.api.CoreContentItem contentItem) |
com.flowable.core.content.api.CoreContentItem |
getParentFolderWithScope(com.flowable.core.content.api.CoreContentItem contentItem) |
List<FolderPath> |
getParentPaths(com.flowable.core.content.api.CoreContentItem current,
String parentFolderId) |
protected String |
getProcessCustomFolderPath(String processInstanceId) |
protected String |
getProcessTaskCustomFolderPath(String taskDefinitionKey,
String processDefinitionId,
String processInstanceId) |
com.flowable.core.content.api.CoreContentItem |
getRootFolder() |
protected String |
getScopeIdFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem) |
protected String |
getScopeTypeFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem) |
protected String |
getTaskCustomFolderPath(String taskId) |
com.flowable.core.content.api.CoreContentItem |
getWorkFolder() |
boolean |
isReadOnly(com.flowable.core.content.api.CoreContentItem f) |
boolean |
isReadOnly(FolderItem f) |
protected boolean |
isRelativePath(String path) |
protected void |
migrateContentItemsWithoutParentFolder(String parentFolderId,
String scopeType,
String scopeId) |
currentUserHasAdminRights, currentUserIsSuperAdmin, fetchCasePermissionMappings, fetchCasePermissionMappings, fetchCaseSecurityPolicyModel, fetchPermissions, fetchPermissionsForTask, fetchProcessPermissionMappings, fetchProcessPermissionMappings, fetchProcessSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModelForTask, fetchSecurityPolicyModelForTask, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappingsForCase, fetchTaskPermissionMappingsForProcess, fetchTaskSecurityPolicyModelForCase, fetchTaskSecurityPolicyModelForProcess, filterPermissionsForRole, getCmmnExtensionElementValue, getCurrentGroupKeys, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
public static final String PERSONAL_FOLDER_NAME
public static final String SCOPE_TYPE_USER
@Autowired protected com.flowable.core.content.api.CoreContentService contentService
@Autowired protected PlatformEntityLinkService platformEntityLinkService
@Autowired protected com.flowable.core.service.form.FolderNameParser folderNameParser
@Autowired protected PlatformCaseInstanceService platformCaseInstanceService
@Autowired protected PlatformProcessInstanceService platformProcessInstanceService
@Autowired protected PlatformTaskService platformTaskService
@Autowired protected org.flowable.engine.HistoryService historyService
@Autowired protected org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService
@Autowired protected PlatformContentItemService platformContentItemService
@Autowired protected SimpleContentTypeMapper simpleTypeMapper
@Autowired protected SearchService searchService
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public com.flowable.core.content.api.CoreContentItem getOrCreateParentFolder(com.flowable.core.content.api.CoreContentItem contentItem)
protected String getScopeTypeFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem)
protected String getScopeIdFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem)
public com.flowable.core.content.api.CoreContentItem getParentFolderWithScope(com.flowable.core.content.api.CoreContentItem contentItem)
public com.flowable.core.content.api.CoreContentItem getFolderFromScope(String scopeType, String scopeId)
protected void migrateContentItemsWithoutParentFolder(String parentFolderId, String scopeType, String scopeId)
public com.flowable.core.content.api.CoreContentItem createFolderFromPath(String path, String scopeType, String scopeId)
protected com.flowable.core.content.api.CoreContentItem createCustomFolderHierarchy(List<com.flowable.core.service.form.HierarchyLevel> hierarchy, String parentFolderId)
public com.flowable.core.content.api.CoreContentItem createFolderFromInstance(String scopeType, String scopeId)
public com.flowable.core.content.api.CoreContentItem createCaseFolderHierarchy(String caseInstanceId)
public com.flowable.core.content.api.CoreContentItem createProcessFolderHierarchy(String processInstanceId)
public com.flowable.core.content.api.CoreContentItem createTaskFolderHierarchy(String taskId)
protected List<com.flowable.core.service.form.HierarchyLevel> getHierarchyFromEntityLinks(String scopeType, String scopeId)
protected void buildHierarchy(String scopeType, String scopeId, List<com.flowable.core.service.form.HierarchyLevel> hierarchy)
protected com.flowable.core.service.form.HierarchyLevel getHierarchyLevel(String scopeType, String scopeId)
protected com.flowable.core.content.api.CoreContentItem createWorkFolderHierarchy(List<com.flowable.core.service.form.HierarchyLevel> hierarchy, String parentFolderId)
public com.flowable.core.content.api.CoreContentItem getRootFolder()
public com.flowable.core.content.api.CoreContentItem getWorkFolder()
public boolean isReadOnly(com.flowable.core.content.api.CoreContentItem f)
public boolean isReadOnly(FolderItem f)
protected boolean isRelativePath(String path)
protected String getProcessTaskCustomFolderPath(String taskDefinitionKey, String processDefinitionId, String processInstanceId)
protected String getCaseTaskCustomFolderPath(String taskDefinitionKey, String caseDefinitionId, String scopeId)
public List<FolderPath> getParentPaths(com.flowable.core.content.api.CoreContentItem current, String parentFolderId)
public List<FolderItem> getFirstLevelContentItems(String contentItemId)
protected com.flowable.core.content.api.CoreContentItem createPersonalFolder(String contentItemId)
public List<FolderItem> getChildContentItems(String contentItemId, Boolean showFolders)
protected void addChildFiles(String contentItemId, List<FolderItem> childFiles)
Copyright © 2019. All rights reserved.