Class SemanticsAvailableActionsResolverImpl
java.lang.Object
org.craftercms.studio.impl.v2.security.SemanticsAvailableActionsResolverImpl
- All Implemented Interfaces:
SemanticsAvailableActionsResolver
public class SemanticsAvailableActionsResolverImpl
extends Object
implements SemanticsAvailableActionsResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcalculateContentItemAvailableActions(String username, String siteId, Item item) Calculate available actions for given content itemlongcalculateContentItemAvailableActions(String username, String siteId, DetailedItem detailedItem) Calculate available actions for given content itemvoidsetContentServiceInternal(ContentServiceInternal contentServiceInternal) voidsetContentTypeServiceInternal(ContentTypeServiceInternal contentTypeServiceInternal) voidsetSecurityService(SecurityService securityService) voidsetSecurityServiceV1(SecurityService securityServiceV1) voidsetServicesConfig(ServicesConfig servicesConfig) voidsetStudioBlobStoreResolver(StudioBlobStoreResolver studioBlobStoreResolver) voidsetUserServiceInternal(UserServiceInternal userServiceInternal) voidsetWorkflowServiceInternal(WorkflowServiceInternal workflowServiceInternal)
-
Constructor Details
-
SemanticsAvailableActionsResolverImpl
public SemanticsAvailableActionsResolverImpl()
-
-
Method Details
-
calculateContentItemAvailableActions
public long calculateContentItemAvailableActions(String username, String siteId, Item item) throws ServiceLayerException, UserNotFoundException Description copied from interface:SemanticsAvailableActionsResolverCalculate available actions for given content item- Specified by:
calculateContentItemAvailableActionsin interfaceSemanticsAvailableActionsResolver- Parameters:
username- user name to apply permissionssiteId- site identifieritem- Item- Returns:
- bitmap representing available actions
- Throws:
ServiceLayerExceptionUserNotFoundException
-
calculateContentItemAvailableActions
public long calculateContentItemAvailableActions(String username, String siteId, DetailedItem detailedItem) throws ServiceLayerException, UserNotFoundException Description copied from interface:SemanticsAvailableActionsResolverCalculate available actions for given content item- Specified by:
calculateContentItemAvailableActionsin interfaceSemanticsAvailableActionsResolver- Parameters:
username- user name to apply permissionssiteId- site identifierdetailedItem- Item- Returns:
- bitmap representing available actions
- Throws:
ServiceLayerExceptionUserNotFoundException
-
setSecurityService
-
setContentServiceInternal
-
setServicesConfig
-
setWorkflowServiceInternal
-
setUserServiceInternal
-
setStudioBlobStoreResolver
-
setContentTypeServiceInternal
-
setSecurityServiceV1
-