@Transactional public class PlatformFolderItemService extends AbstractPlatformSecurityService
Modifier and Type | Class and Description |
---|---|
static class |
PlatformFolderItemService.CustomFolderPath |
Modifier and Type | Field and Description |
---|---|
protected CasePermissionService |
casePermissionService |
protected CmmnEngine |
cmmnEngine |
protected CmmnHistoryService |
cmmnHistoryService |
protected CoreContentService |
contentService |
protected FolderNameParser |
folderNameParser |
protected 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 |
protected ProcessEngine |
processEngine |
protected ProcessPermissionService |
processPermissionService |
static String |
SCOPE_TYPE_USER |
protected SearchService |
searchService |
protected SimpleContentTypeMapper |
simpleTypeMapper |
protected TaskPermissionService |
taskPermissionService |
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
Constructor and Description |
---|
PlatformFolderItemService() |
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
public static final String PERSONAL_FOLDER_NAME
public static final String SCOPE_TYPE_USER
@Autowired protected CoreContentService contentService
@Autowired protected PlatformEntityLinkService platformEntityLinkService
@Autowired protected FolderNameParser folderNameParser
@Autowired protected PlatformCaseInstanceService platformCaseInstanceService
@Autowired protected PlatformProcessInstanceService platformProcessInstanceService
@Autowired protected PlatformTaskService platformTaskService
@Autowired protected ProcessPermissionService processPermissionService
@Autowired protected CasePermissionService casePermissionService
@Autowired protected TaskPermissionService taskPermissionService
@Autowired protected HistoryService historyService
@Autowired protected ProcessEngine processEngine
@Autowired protected CmmnHistoryService cmmnHistoryService
@Autowired protected CmmnEngine cmmnEngine
@Autowired protected PlatformContentItemService platformContentItemService
@Autowired protected SimpleContentTypeMapper simpleTypeMapper
@Autowired(required=false) protected SearchService searchService
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public FolderResponse getFolderItemsForScope(String scopeId, String scopeType)
public FolderResponse getChildFolderItems(String contentItemId, String parentFolderId, Boolean showFolders)
public void createSimpleContentItem(CoreContentItem contentItem)
public void createBinaryContentItem(CoreContentItem contentItem, MultipartFile file)
public CoreContentItem getOrCreateParentFolder(CoreContentItem contentItem)
protected String getScopeTypeFromContentItem(CoreContentItem contentItem)
protected String getScopeIdFromContentItem(CoreContentItem contentItem)
public CoreContentItem getParentFolderWithScope(CoreContentItem contentItem)
public CoreContentItem getFolderFromScope(String scopeType, String scopeId, String tenantId)
protected void migrateContentItemsWithoutParentFolder(String parentFolderId, String scopeType, String scopeId)
public CoreContentItem createFolderFromPath(PlatformFolderItemService.CustomFolderPath path, String scopeType, String scopeId)
protected CoreContentItem createCustomFolderHierarchy(List<HierarchyLevel> hierarchy, String parentFolderId, String tenantId)
public CoreContentItem createFolderFromInstance(String scopeType, String scopeId)
public CoreContentItem createCaseFolderHierarchy(String caseInstanceId)
public CoreContentItem createProcessFolderHierarchy(String processInstanceId)
public CoreContentItem createTaskFolderHierarchy(String taskId)
protected List<HierarchyLevel> getHierarchyFromEntityLinks(String scopeType, String scopeId)
protected void buildHierarchy(String scopeType, String scopeId, List<HierarchyLevel> hierarchy)
protected HierarchyLevel getHierarchyLevel(String scopeType, String scopeId)
protected CoreContentItem createWorkFolderHierarchy(List<HierarchyLevel> hierarchyLevels, String parentFolderId)
public CoreContentItem getRootFolder(String tenantId)
public CoreContentItem getWorkFolder(String tenantId)
public boolean isReadOnly(CoreContentItem f)
public boolean isReadOnly(FolderItem f)
protected PlatformFolderItemService.CustomFolderPath getCaseCustomFolderPath(String caseInstanceId)
protected PlatformFolderItemService.CustomFolderPath getProcessCustomFolderPath(String processInstanceId)
protected PlatformFolderItemService.CustomFolderPath getTaskCustomFolderPath(String taskId)
protected PlatformFolderItemService.CustomFolderPath getProcessTaskCustomFolderPath(TaskRepresentation task, String taskDefinitionKey, String processDefinitionId, String processInstanceId, String tenantId)
protected PlatformFolderItemService.CustomFolderPath getCaseTaskCustomFolderPath(TaskRepresentation task, String taskDefinitionKey, String caseDefinitionId, String scopeId, String tenantId)
public List<FolderPath> getParentPaths(CoreContentItem current, String parentFolderId)
public List<FolderItem> getFirstLevelContentItems(String contentItemId)
protected CoreContentItem createPersonalFolder(String contentItemId)
public List<FolderItem> getChildContentItems(String contentItemId, Boolean showFolders)
protected void validateContentItemPermission(ContentItem contentItem)
protected void validateContentItemPermission(String scopeId, String scopeType)
protected void addChildFiles(String contentItemId, List<FolderItem> childFiles)
protected String getContentTypeForFileExtension(MultipartFile file)