public class SecurityActionsServiceImpl extends Object implements SecurityActionsService
| Constructor and Description |
|---|
SecurityActionsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<SocialSecurityAction> |
get(String context)
Gets All SecurityAction for the given context.
|
void |
save(SocialSecurityAction action)
Saves a new Action
|
void |
setPermissionRepositoryImpl(PermissionRepository permissionRepository) |
SocialSecurityAction |
update(String context,
String actionName,
List<String> roles)
Updates the Roles for the given Action of the Context.
|
public Iterable<SocialSecurityAction> get(String context)
SecurityActionsServiceget in interface SecurityActionsServicecontext - the context.public SocialSecurityAction update(String context, String actionName, List<String> roles) throws SocialException
SecurityActionsServiceupdate in interface SecurityActionsServicecontext - context of the action.actionName - Action name to removeWatcher.roles - New roles to assign the action.SocialExceptionpublic void save(SocialSecurityAction action) throws SocialException
SecurityActionsServicesave in interface SecurityActionsServiceaction - Action to be saved.SocialExceptionpublic void setPermissionRepositoryImpl(PermissionRepository permissionRepository)
Copyright © 2019 CrafterCMS. All Rights Reserved.