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 Constructor Description SemanticsAvailableActionsResolverImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
calculateContentItemAvailableActions(String username, String siteId, Item item)
Calculate available actions for given content itemlong
calculateContentItemAvailableActions(String username, String siteId, DetailedItem detailedItem)
Calculate available actions for given content itemvoid
setContentServiceInternal(ContentServiceInternal contentServiceInternal)
void
setContentTypeServiceInternal(ContentTypeServiceInternal contentTypeServiceInternal)
void
setSecurityService(SecurityService securityService)
void
setSecurityServiceV1(SecurityService securityServiceV1)
void
setServicesConfig(ServicesConfig servicesConfig)
void
setStudioBlobStoreResolver(StudioBlobStoreResolver studioBlobStoreResolver)
void
setUserServiceInternal(UserServiceInternal userServiceInternal)
void
setWorkflowServiceInternal(WorkflowServiceInternal workflowServiceInternal)
-
-
-
Method Detail
-
calculateContentItemAvailableActions
public long calculateContentItemAvailableActions(String username, String siteId, Item item) throws ServiceLayerException, UserNotFoundException
Description copied from interface:SemanticsAvailableActionsResolver
Calculate available actions for given content item- Specified by:
calculateContentItemAvailableActions
in interfaceSemanticsAvailableActionsResolver
- Parameters:
username
- user name to apply permissionssiteId
- site identifieritem
- Item- Returns:
- bitmap representing available actions
- Throws:
ServiceLayerException
UserNotFoundException
-
calculateContentItemAvailableActions
public long calculateContentItemAvailableActions(String username, String siteId, DetailedItem detailedItem) throws ServiceLayerException, UserNotFoundException
Description copied from interface:SemanticsAvailableActionsResolver
Calculate available actions for given content item- Specified by:
calculateContentItemAvailableActions
in interfaceSemanticsAvailableActionsResolver
- Parameters:
username
- user name to apply permissionssiteId
- site identifierdetailedItem
- Item- Returns:
- bitmap representing available actions
- Throws:
ServiceLayerException
UserNotFoundException
-
setSecurityService
public void setSecurityService(SecurityService securityService)
-
setContentServiceInternal
public void setContentServiceInternal(ContentServiceInternal contentServiceInternal)
-
setServicesConfig
public void setServicesConfig(ServicesConfig servicesConfig)
-
setWorkflowServiceInternal
public void setWorkflowServiceInternal(WorkflowServiceInternal workflowServiceInternal)
-
setUserServiceInternal
public void setUserServiceInternal(UserServiceInternal userServiceInternal)
-
setStudioBlobStoreResolver
public void setStudioBlobStoreResolver(StudioBlobStoreResolver studioBlobStoreResolver)
-
setContentTypeServiceInternal
public void setContentTypeServiceInternal(ContentTypeServiceInternal contentTypeServiceInternal)
-
setSecurityServiceV1
public void setSecurityServiceV1(SecurityService securityServiceV1)
-
-