Interface SecurityActionsService
-
- All Known Implementing Classes:
SecurityActionsServiceImpl
public interface SecurityActionsService
SecurityActions Service Definition
-
-
Method Summary
All Methods Instance Methods Abstract 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 ActionSocialSecurityAction
update(String context, String actionName, List<String> roles)
Updates the Roles for the given Action of the Context.
-
-
-
Method Detail
-
get
Iterable<SocialSecurityAction> get(String context)
Gets All SecurityAction for the given context.- Parameters:
context
- the context.- Returns:
- All SecurityActions for the given context, empty Iterator if nothing is found
-
update
SocialSecurityAction update(String context, String actionName, List<String> roles) throws SocialException
Updates the Roles for the given Action of the Context.- 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
void save(SocialSecurityAction action) throws SocialException
Saves a new Action- Parameters:
action
- Action to be saved.- Throws:
SocialException
-
-