Class PlatformFolderItemService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.service.content.PlatformFolderItemService
- All Implemented Interfaces:
com.flowable.platform.security.permission.PermissionServiceRegistryAware
,org.springframework.beans.factory.Aware
@Transactional
public class PlatformFolderItemService
extends com.flowable.platform.security.service.AbstractPlatformSecurityService
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlatformFolderItemService.CustomFolderPath
-
Field Summary
Fields Modifier and Type Field Description protected com.flowable.platform.security.permission.CasePermissionService
casePermissionService
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 java.lang.String
PERSONAL_FOLDER_NAME
protected PlatformCaseInstanceService
platformCaseInstanceService
protected PlatformContentItemService
platformContentItemService
protected PlatformEntityLinkService
platformEntityLinkService
protected PlatformProcessInstanceService
platformProcessInstanceService
protected PlatformTaskService
platformTaskService
protected com.flowable.platform.security.permission.ProcessPermissionService
processPermissionService
static java.lang.String
SCOPE_TYPE_USER
protected SearchService
searchService
protected SimpleContentTypeMapper
simpleTypeMapper
protected com.flowable.platform.security.permission.TaskPermissionService
taskPermissionService
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
Constructor Summary
Constructors Constructor Description PlatformFolderItemService()
-
Method Summary
Modifier and Type Method Description protected void
addChildFiles(java.lang.String contentItemId, java.util.List<FolderItem> childFiles)
protected void
buildHierarchy(java.lang.String scopeType, java.lang.String scopeId, java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy)
void
createBinaryContentItem(com.flowable.core.content.api.CoreContentItem contentItem, org.springframework.web.multipart.MultipartFile file)
com.flowable.core.content.api.CoreContentItem
createCaseFolderHierarchy(java.lang.String caseInstanceId)
protected com.flowable.core.content.api.CoreContentItem
createCustomFolderHierarchy(java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy, java.lang.String parentFolderId, java.lang.String tenantId)
com.flowable.core.content.api.CoreContentItem
createFolderFromInstance(java.lang.String scopeType, java.lang.String scopeId)
com.flowable.core.content.api.CoreContentItem
createFolderFromPath(PlatformFolderItemService.CustomFolderPath path, java.lang.String scopeType, java.lang.String scopeId)
protected com.flowable.core.content.api.CoreContentItem
createPersonalFolder(java.lang.String contentItemId)
com.flowable.core.content.api.CoreContentItem
createProcessFolderHierarchy(java.lang.String processInstanceId)
void
createSimpleContentItem(com.flowable.core.content.api.CoreContentItem contentItem)
com.flowable.core.content.api.CoreContentItem
createTaskFolderHierarchy(java.lang.String taskId)
protected com.flowable.core.content.api.CoreContentItem
createWorkFolderHierarchy(java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy, java.lang.String parentFolderId)
protected PlatformFolderItemService.CustomFolderPath
getCaseCustomFolderPath(java.lang.String caseInstanceId)
protected PlatformFolderItemService.CustomFolderPath
getCaseTaskCustomFolderPath(java.lang.String taskDefinitionKey, java.lang.String caseDefinitionId, java.lang.String scopeId, java.lang.String tenantId)
java.util.List<FolderItem>
getChildContentItems(java.lang.String contentItemId, java.lang.Boolean showFolders)
FolderResponse
getChildFolderItems(java.lang.String contentItemId, java.lang.String parentFolderId, java.lang.Boolean showFolders)
protected java.lang.String
getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file)
java.util.List<FolderItem>
getFirstLevelContentItems(java.lang.String contentItemId)
com.flowable.core.content.api.CoreContentItem
getFolderFromScope(java.lang.String scopeType, java.lang.String scopeId, java.lang.String tenantId)
FolderResponse
getFolderItemsForScope(java.lang.String scopeId, java.lang.String scopeType)
protected java.util.List<com.flowable.core.service.form.HierarchyLevel>
getHierarchyFromEntityLinks(java.lang.String scopeType, java.lang.String scopeId)
protected com.flowable.core.service.form.HierarchyLevel
getHierarchyLevel(java.lang.String scopeType, java.lang.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)
java.util.List<FolderPath>
getParentPaths(com.flowable.core.content.api.CoreContentItem current, java.lang.String parentFolderId)
protected PlatformFolderItemService.CustomFolderPath
getProcessCustomFolderPath(java.lang.String processInstanceId)
protected PlatformFolderItemService.CustomFolderPath
getProcessTaskCustomFolderPath(java.lang.String taskDefinitionKey, java.lang.String processDefinitionId, java.lang.String processInstanceId, java.lang.String tenantId)
com.flowable.core.content.api.CoreContentItem
getRootFolder(java.lang.String tenantId)
protected java.lang.String
getScopeIdFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem)
protected java.lang.String
getScopeTypeFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem)
protected PlatformFolderItemService.CustomFolderPath
getTaskCustomFolderPath(java.lang.String taskId)
com.flowable.core.content.api.CoreContentItem
getWorkFolder(java.lang.String tenantId)
boolean
isReadOnly(com.flowable.core.content.api.CoreContentItem f)
boolean
isReadOnly(FolderItem f)
protected void
migrateContentItemsWithoutParentFolder(java.lang.String parentFolderId, java.lang.String scopeType, java.lang.String scopeId)
protected void
validateContentItemPermission(java.lang.String scopeId, java.lang.String scopeType)
protected void
validateContentItemPermission(org.flowable.content.api.ContentItem contentItem)
Methods inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
currentUserHasAdminRights, currentUserIsSuperAdmin, fetchCasePermissionMappings, fetchCasePermissionMappings, fetchCaseSecurityPolicyModel, fetchPermissions, fetchPermissionsForTask, fetchProcessPermissionMappings, fetchProcessPermissionMappings, fetchProcessSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModelForCaseInstance, fetchSecurityPolicyModelForProcessInstance, fetchSecurityPolicyModelForTask, fetchSecurityPolicyModelForTask, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappingsForCase, fetchTaskPermissionMappingsForProcess, fetchTaskSecurityPolicyModelForCase, fetchTaskSecurityPolicyModelForProcess, filterPermissionsForRole, getCmmnExtensionElementValue, getCurrentGroupKeys, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
-
Field Details
-
PERSONAL_FOLDER_NAME
public static final java.lang.String PERSONAL_FOLDER_NAME- See Also:
- Constant Field Values
-
SCOPE_TYPE_USER
public static final java.lang.String SCOPE_TYPE_USER- See Also:
- Constant Field Values
-
contentService
@Autowired protected com.flowable.core.content.api.CoreContentService contentService -
platformEntityLinkService
-
folderNameParser
@Autowired protected com.flowable.core.service.form.FolderNameParser folderNameParser -
platformCaseInstanceService
-
platformProcessInstanceService
-
platformTaskService
-
processPermissionService
@Autowired protected com.flowable.platform.security.permission.ProcessPermissionService processPermissionService -
casePermissionService
@Autowired protected com.flowable.platform.security.permission.CasePermissionService casePermissionService -
taskPermissionService
@Autowired protected com.flowable.platform.security.permission.TaskPermissionService taskPermissionService -
historyService
@Autowired protected org.flowable.engine.HistoryService historyService -
cmmnHistoryService
@Autowired protected org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService -
platformContentItemService
-
simpleTypeMapper
-
searchService
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
PlatformFolderItemService
public PlatformFolderItemService()
-
-
Method Details
-
getFolderItemsForScope
-
getChildFolderItems
public FolderResponse getChildFolderItems(java.lang.String contentItemId, java.lang.String parentFolderId, java.lang.Boolean showFolders) -
createSimpleContentItem
public void createSimpleContentItem(com.flowable.core.content.api.CoreContentItem contentItem) -
createBinaryContentItem
public void createBinaryContentItem(com.flowable.core.content.api.CoreContentItem contentItem, org.springframework.web.multipart.MultipartFile file) -
getOrCreateParentFolder
public com.flowable.core.content.api.CoreContentItem getOrCreateParentFolder(com.flowable.core.content.api.CoreContentItem contentItem) -
getScopeTypeFromContentItem
protected java.lang.String getScopeTypeFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem) -
getScopeIdFromContentItem
protected java.lang.String getScopeIdFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem) -
getParentFolderWithScope
public com.flowable.core.content.api.CoreContentItem getParentFolderWithScope(com.flowable.core.content.api.CoreContentItem contentItem) -
getFolderFromScope
public com.flowable.core.content.api.CoreContentItem getFolderFromScope(java.lang.String scopeType, java.lang.String scopeId, java.lang.String tenantId) -
migrateContentItemsWithoutParentFolder
protected void migrateContentItemsWithoutParentFolder(java.lang.String parentFolderId, java.lang.String scopeType, java.lang.String scopeId) -
createFolderFromPath
public com.flowable.core.content.api.CoreContentItem createFolderFromPath(PlatformFolderItemService.CustomFolderPath path, java.lang.String scopeType, java.lang.String scopeId) -
createCustomFolderHierarchy
protected com.flowable.core.content.api.CoreContentItem createCustomFolderHierarchy(java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy, java.lang.String parentFolderId, java.lang.String tenantId) -
createFolderFromInstance
public com.flowable.core.content.api.CoreContentItem createFolderFromInstance(java.lang.String scopeType, java.lang.String scopeId) -
createCaseFolderHierarchy
public com.flowable.core.content.api.CoreContentItem createCaseFolderHierarchy(java.lang.String caseInstanceId) -
createProcessFolderHierarchy
public com.flowable.core.content.api.CoreContentItem createProcessFolderHierarchy(java.lang.String processInstanceId) -
createTaskFolderHierarchy
public com.flowable.core.content.api.CoreContentItem createTaskFolderHierarchy(java.lang.String taskId) -
getHierarchyFromEntityLinks
protected java.util.List<com.flowable.core.service.form.HierarchyLevel> getHierarchyFromEntityLinks(java.lang.String scopeType, java.lang.String scopeId) -
buildHierarchy
protected void buildHierarchy(java.lang.String scopeType, java.lang.String scopeId, java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy) -
getHierarchyLevel
protected com.flowable.core.service.form.HierarchyLevel getHierarchyLevel(java.lang.String scopeType, java.lang.String scopeId) -
createWorkFolderHierarchy
protected com.flowable.core.content.api.CoreContentItem createWorkFolderHierarchy(java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy, java.lang.String parentFolderId) -
getRootFolder
public com.flowable.core.content.api.CoreContentItem getRootFolder(java.lang.String tenantId) -
getWorkFolder
public com.flowable.core.content.api.CoreContentItem getWorkFolder(java.lang.String tenantId) -
isReadOnly
public boolean isReadOnly(com.flowable.core.content.api.CoreContentItem f) -
isReadOnly
-
getCaseCustomFolderPath
protected PlatformFolderItemService.CustomFolderPath getCaseCustomFolderPath(java.lang.String caseInstanceId) -
getProcessCustomFolderPath
protected PlatformFolderItemService.CustomFolderPath getProcessCustomFolderPath(java.lang.String processInstanceId) -
getTaskCustomFolderPath
protected PlatformFolderItemService.CustomFolderPath getTaskCustomFolderPath(java.lang.String taskId) -
getProcessTaskCustomFolderPath
protected PlatformFolderItemService.CustomFolderPath getProcessTaskCustomFolderPath(java.lang.String taskDefinitionKey, java.lang.String processDefinitionId, java.lang.String processInstanceId, java.lang.String tenantId) -
getCaseTaskCustomFolderPath
protected PlatformFolderItemService.CustomFolderPath getCaseTaskCustomFolderPath(java.lang.String taskDefinitionKey, java.lang.String caseDefinitionId, java.lang.String scopeId, java.lang.String tenantId) -
getParentPaths
public java.util.List<FolderPath> getParentPaths(com.flowable.core.content.api.CoreContentItem current, java.lang.String parentFolderId) -
getFirstLevelContentItems
-
createPersonalFolder
protected com.flowable.core.content.api.CoreContentItem createPersonalFolder(java.lang.String contentItemId) -
getChildContentItems
public java.util.List<FolderItem> getChildContentItems(java.lang.String contentItemId, java.lang.Boolean showFolders) -
validateContentItemPermission
protected void validateContentItemPermission(org.flowable.content.api.ContentItem contentItem) -
validateContentItemPermission
protected void validateContentItemPermission(java.lang.String scopeId, java.lang.String scopeType) -
addChildFiles
protected void addChildFiles(java.lang.String contentItemId, java.util.List<FolderItem> childFiles) -
getContentTypeForFileExtension
protected java.lang.String getContentTypeForFileExtension(org.springframework.web.multipart.MultipartFile file)
-