Class AvailableActionsResolverImpl
java.lang.Object
org.craftercms.studio.impl.v2.security.AvailableActionsResolverImpl
- All Implemented Interfaces:
AvailableActionsResolver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAvailableActionsResolverImpl
(StudioConfiguration studioConfiguration, ConfigurationService configurationService, UserServiceInternal userServiceInternal, com.google.common.cache.Cache<String, SitePermissionMappings> cache) -
Method Summary
Modifier and TypeMethodDescriptionlong
getContentItemAvailableActions
(String username, String siteId, String path) Get content item available actions for given site and path
-
Field Details
-
CACHE_KEY
- See Also:
-
-
Constructor Details
-
AvailableActionsResolverImpl
public AvailableActionsResolverImpl(StudioConfiguration studioConfiguration, ConfigurationService configurationService, UserServiceInternal userServiceInternal, com.google.common.cache.Cache<String, SitePermissionMappings> cache)
-
-
Method Details
-
getContentItemAvailableActions
public long getContentItemAvailableActions(String username, String siteId, String path) throws ServiceLayerException, UserNotFoundException Description copied from interface:AvailableActionsResolver
Get content item available actions for given site and path- Specified by:
getContentItemAvailableActions
in interfaceAvailableActionsResolver
- Parameters:
username
- username of user to validate permissionssiteId
- site identifierpath
- path of the content- Returns:
- Throws:
ServiceLayerException
UserNotFoundException
-