Interface SecurityService
-
- All Known Implementing Classes:
SecurityServiceImpl
public interface SecurityService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAvailableActions(String username, String site, String path)
Get available actions for given user over content from site and specified pathList<String>
getUserPermission(String siteId, String username, List<String> roles)
Get user permissions for given site
-
-
-
Method Detail
-
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:
ServiceLayerException
UserNotFoundException
-
getUserPermission
List<String> getUserPermission(String siteId, String username, List<String> roles) throws ExecutionException
Get user permissions for given site- Parameters:
username
- usergroups
- groups that user belongs to- Returns:
- list of user permissions
- Throws:
ExecutionException
-
-