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.voidsave(SocialSecurityAction action) Saves a new ActionvoidsetPermissionRepositoryImpl(PermissionRepository permissionRepository) Updates the Roles for the given Action of the Context.
-
Constructor Details
-
SecurityActionsServiceImpl
public SecurityActionsServiceImpl()
-
-
Method Details
-
get
Description copied from interface:SecurityActionsServiceGets All SecurityAction for the given context.- Specified by:
getin 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:SecurityActionsServiceUpdates the Roles for the given Action of the Context.- Specified by:
updatein 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:SecurityActionsServiceSaves a new Action- Specified by:
savein interfaceSecurityActionsService- Parameters:
action- Action to be saved.- Throws:
SocialException
-
setPermissionRepositoryImpl
-