Class SecurityActionsServiceImpl
- java.lang.Object
-
- org.craftercms.social.services.system.impl.SecurityActionsServiceImpl
-
- All Implemented Interfaces:
SecurityActionsService
public class SecurityActionsServiceImpl extends Object implements SecurityActionsService
Security Actions Service Default implementation.
-
-
Constructor Summary
Constructors Constructor Description SecurityActionsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<SocialSecurityAction>
get(String context)
Gets All SecurityAction for the given context.void
save(SocialSecurityAction action)
Saves a new Actionvoid
setPermissionRepositoryImpl(PermissionRepository permissionRepository)
SocialSecurityAction
update(String context, String actionName, List<String> roles)
Updates the Roles for the given Action of the Context.
-
-
-
Method Detail
-
get
public Iterable<SocialSecurityAction> get(String context)
Description copied from interface:SecurityActionsService
Gets All SecurityAction for the given context.- Specified by:
get
in interfaceSecurityActionsService
- Parameters:
context
- the context.- Returns:
- All SecurityActions for the given context, empty Iterator if nothing is found
-
update
public SocialSecurityAction update(String context, String actionName, List<String> roles) throws SocialException
Description copied from interface:SecurityActionsService
Updates the Roles for the given Action of the Context.- Specified by:
update
in interfaceSecurityActionsService
- Parameters:
context
- context of the action.actionName
- Action name to removeWatcher.roles
- New roles to assign the action.- Returns:
- the updated SecurityAction, null if unable to find action for the given context.
- Throws:
SocialException
-
save
public void save(SocialSecurityAction action) throws SocialException
Description copied from interface:SecurityActionsService
Saves a new Action- Specified by:
save
in interfaceSecurityActionsService
- Parameters:
action
- Action to be saved.- Throws:
SocialException
-
setPermissionRepositoryImpl
public void setPermissionRepositoryImpl(PermissionRepository permissionRepository)
-
-