public class PermissionRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<SocialSecurityAction> implements PermissionRepository
| Constructor and Description |
|---|
PermissionRepositoryImpl() |
| 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.
|
SocialSecurityAction |
updateSecurityAction(String context,
String actionName,
List<String> roles)
Updates the SecurityAction based
|
count, count, count, createSortQuery, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getCollection, getFileInfo, getFileInfo, getQueryFor, init, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, returnList, returnSimple, save, save, saveFile, saveFile, setJongo, setQueries, update, update, update, update, updateFile, updateFile, updateFile, validateObject, validateObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsavepublic boolean isAllowed(String action, Set<String> profileRoles, String context) throws org.craftercms.commons.mongo.MongoDataException
PermissionRepositoryisAllowed in interface PermissionRepositoryaction - Actions to check.profileRoles - Roles to check action against.context - Context of the action.org.craftercms.commons.mongo.MongoDataException - If unable to check.public Iterable<SocialSecurityAction> findActions(String context) throws org.craftercms.commons.mongo.MongoDataException
PermissionRepositoryfindActions in interface PermissionRepositorycontext - Context of the action.org.craftercms.commons.mongo.MongoDataExceptionpublic SocialSecurityAction updateSecurityAction(String context, String actionName, List<String> roles) throws org.craftercms.commons.mongo.MongoDataException
PermissionRepositoryupdateSecurityAction in interface PermissionRepositoryorg.craftercms.commons.mongo.MongoDataExceptionCopyright © 2019 CrafterCMS. All Rights Reserved.