public interface PermissionRepository
| Modifier and Type | Method and Description |
|---|---|
Iterable<SocialSecurityAction> |
findActions(String context)
Returns all the actions for the context.
|
boolean |
isAllowed(String action,
Set<String> profileRoles,
String context)
Checks if the Actions is allow for a given set of Roles for the context.
|
void |
save(SocialSecurityAction action)
Saves a new Action.
|
SocialSecurityAction |
updateSecurityAction(String context,
String actionName,
List<String> roles)
Updates the SecurityAction based
|
boolean isAllowed(String action, Set<String> profileRoles, String context) throws org.craftercms.commons.mongo.MongoDataException
action - Actions to check.profileRoles - Roles to check action against.context - Context of the action.org.craftercms.commons.mongo.MongoDataException - If unable to check.Iterable<SocialSecurityAction> findActions(String context) throws org.craftercms.commons.mongo.MongoDataException
context - Context of the action.org.craftercms.commons.mongo.MongoDataExceptionSocialSecurityAction updateSecurityAction(String context, String actionName, List<String> roles) throws org.craftercms.commons.mongo.MongoDataException
context - actionName - roles - org.craftercms.commons.mongo.MongoDataExceptionvoid save(SocialSecurityAction action) throws org.craftercms.commons.mongo.MongoDataException
action - New Action to save.org.craftercms.commons.mongo.MongoDataException - If unable to save.Copyright © 2015 CrafterCMS. All Rights Reserved.