Class SecurityActionsServiceImpl
java.lang.Object
org.craftercms.social.services.system.impl.SecurityActionsServiceImpl
- All Implemented Interfaces:
SecurityActionsService
Security Actions Service Default implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets All SecurityAction for the given context.void
save
(SocialSecurityAction action) Saves a new Actionvoid
setPermissionRepositoryImpl
(PermissionRepository permissionRepository) Updates the Roles for the given Action of the Context.
-
Constructor Details
-
SecurityActionsServiceImpl
public SecurityActionsServiceImpl()
-
-
Method Details
-
get
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
Description copied from interface:SecurityActionsService
Saves a new Action- Specified by:
save
in interfaceSecurityActionsService
- Parameters:
action
- Action to be saved.- Throws:
SocialException
-
setPermissionRepositoryImpl
-