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 classPlatformFolderItemService.CustomFolderPath -
Field Summary
Fields Modifier and Type Field Description protected com.flowable.platform.security.permission.CasePermissionServicecasePermissionServiceprotected org.flowable.cmmn.api.CmmnHistoryServicecmmnHistoryServiceprotected com.flowable.core.content.api.CoreContentServicecontentServiceprotected com.flowable.core.service.form.FolderNameParserfolderNameParserprotected org.flowable.engine.HistoryServicehistoryServiceprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperstatic java.lang.StringPERSONAL_FOLDER_NAMEprotected PlatformCaseInstanceServiceplatformCaseInstanceServiceprotected PlatformContentItemServiceplatformContentItemServiceprotected PlatformEntityLinkServiceplatformEntityLinkServiceprotected PlatformProcessInstanceServiceplatformProcessInstanceServiceprotected PlatformTaskServiceplatformTaskServiceprotected com.flowable.platform.security.permission.ProcessPermissionServiceprocessPermissionServicestatic java.lang.StringSCOPE_TYPE_USERprotected SearchServicesearchServiceprotected SimpleContentTypeMappersimpleTypeMapperprotected com.flowable.platform.security.permission.TaskPermissionServicetaskPermissionServiceFields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, 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 voidaddChildFiles(java.lang.String contentItemId, java.util.List<FolderItem> childFiles)protected voidbuildHierarchy(java.lang.String scopeType, java.lang.String scopeId, java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy)voidcreateBinaryContentItem(com.flowable.core.content.api.CoreContentItem contentItem, org.springframework.web.multipart.MultipartFile file)com.flowable.core.content.api.CoreContentItemcreateCaseFolderHierarchy(java.lang.String caseInstanceId)protected com.flowable.core.content.api.CoreContentItemcreateCustomFolderHierarchy(java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy, java.lang.String parentFolderId, java.lang.String tenantId)com.flowable.core.content.api.CoreContentItemcreateFolderFromInstance(java.lang.String scopeType, java.lang.String scopeId)com.flowable.core.content.api.CoreContentItemcreateFolderFromPath(PlatformFolderItemService.CustomFolderPath path, java.lang.String scopeType, java.lang.String scopeId)protected com.flowable.core.content.api.CoreContentItemcreatePersonalFolder(java.lang.String contentItemId)com.flowable.core.content.api.CoreContentItemcreateProcessFolderHierarchy(java.lang.String processInstanceId)voidcreateSimpleContentItem(com.flowable.core.content.api.CoreContentItem contentItem)com.flowable.core.content.api.CoreContentItemcreateTaskFolderHierarchy(java.lang.String taskId)protected com.flowable.core.content.api.CoreContentItemcreateWorkFolderHierarchy(java.util.List<com.flowable.core.service.form.HierarchyLevel> hierarchy, java.lang.String parentFolderId)protected PlatformFolderItemService.CustomFolderPathgetCaseCustomFolderPath(java.lang.String caseInstanceId)protected PlatformFolderItemService.CustomFolderPathgetCaseTaskCustomFolderPath(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)FolderResponsegetChildFolderItems(java.lang.String contentItemId, java.lang.String parentFolderId, java.lang.Boolean showFolders)java.util.List<FolderItem>getFirstLevelContentItems(java.lang.String contentItemId)com.flowable.core.content.api.CoreContentItemgetFolderFromScope(java.lang.String scopeType, java.lang.String scopeId, java.lang.String tenantId)FolderResponsegetFolderItemsForScope(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.HierarchyLevelgetHierarchyLevel(java.lang.String scopeType, java.lang.String scopeId)com.flowable.core.content.api.CoreContentItemgetOrCreateParentFolder(com.flowable.core.content.api.CoreContentItem contentItem)com.flowable.core.content.api.CoreContentItemgetParentFolderWithScope(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.CustomFolderPathgetProcessCustomFolderPath(java.lang.String processInstanceId)protected PlatformFolderItemService.CustomFolderPathgetProcessTaskCustomFolderPath(java.lang.String taskDefinitionKey, java.lang.String processDefinitionId, java.lang.String processInstanceId, java.lang.String tenantId)com.flowable.core.content.api.CoreContentItemgetRootFolder(java.lang.String tenantId)protected java.lang.StringgetScopeIdFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem)protected java.lang.StringgetScopeTypeFromContentItem(com.flowable.core.content.api.CoreContentItem contentItem)protected PlatformFolderItemService.CustomFolderPathgetTaskCustomFolderPath(java.lang.String taskId)com.flowable.core.content.api.CoreContentItemgetWorkFolder(java.lang.String tenantId)booleanisReadOnly(com.flowable.core.content.api.CoreContentItem f)booleanisReadOnly(FolderItem f)protected voidmigrateContentItemsWithoutParentFolder(java.lang.String parentFolderId, java.lang.String scopeType, java.lang.String scopeId)protected voidvalidateContentItemPermission(java.lang.String scopeId, java.lang.String scopeType)protected voidvalidateContentItemPermission(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, 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)
-