Interface SecurityService
- All Known Implementing Classes:
SecurityServiceImpl
public interface SecurityService
-
Method Summary
Modifier and TypeMethodDescriptionlonggetAvailableActions(String username, String site, String path) Get available actions for given user over content from site and specified pathgetUserPermission(String siteId, String username, List<String> roles) Get user permissions for given site
-
Method Details
-
getAvailableActions
long getAvailableActions(String username, String site, String path) throws ServiceLayerException, UserNotFoundException Get available actions for given user over content from site and specified path- Parameters:
username- user to get allowed actions forsite- site identifierpath- path of the content/object- Returns:
- bitmap representing available actions
- Throws:
ServiceLayerExceptionUserNotFoundException
-
getUserPermission
List<String> getUserPermission(String siteId, String username, List<String> roles) throws ExecutionException Get user permissions for given site- Parameters:
siteId- crafter site Idusername- userroles- roles the user is assigned to- Returns:
- list of user permissions
- Throws:
ExecutionException
-