public interface GroupAction extends AuthorizableAction
GroupAction interface allows for implementations to be informed about and react to the following
changes to a Group's members:
onMemberAdded(Group, Authorizable, Root, NamePathMapper)onMembersAdded(Group, Iterable, Iterable, Root, NamePathMapper)onMembersAddedContentId(Group, Iterable, Iterable, Root, NamePathMapper) onMemberRemoved(Group, Authorizable, Root, NamePathMapper)onMembersRemoved(Group, Iterable, Iterable, Root, NamePathMapper)
Please consult the parent interface AuthorizableAction for details on persisting changes,
configuring actions and the API through which actions are invoked.
For convenience, an AbstractGroupAction is provided.
init, onCreate, onCreate, onPasswordChange, onRemovevoid onMemberAdded(Group group, Authorizable member, org.apache.jackrabbit.oak.api.Root root, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws RepositoryException
Authorizable was added as a member of the Group.
Implementations may perform specific modifications or validations.group - The Group to which the Authorizable was added.member - The Authorizable added.root - The root associated with the user manager.namePathMapper - RepositoryException - If an error occurs.void onMembersAdded(Group group, Iterable<String> memberIds, Iterable<String> failedIds, org.apache.jackrabbit.oak.api.Root root, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws RepositoryException
Group. The members are provided as an iterable
of their string-based IDs, as some members may no longer or not yet exist.
Implementations may perform specific modifications or validations.group - The Group to which the members were added.memberIds - An Iterable of the member IDs.root - The root associated with the user manager.namePathMapper - RepositoryException - If an error occurs.void onMembersAddedContentId(Group group, Iterable<String> memberContentIds, Iterable<String> failedIds, org.apache.jackrabbit.oak.api.Root root, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws RepositoryException
Group during XML group import.
The members are provided as an iterable of their string-based content IDs (UUIDs), as these
members do not exist yet (group imported before users). Implementations may track such content ids
for later processing once the user identified by the content id is added.
Implementations may perform specific modifications or validations.
group - The Group to which the members were added.memberContentIds - An Iterable of the member content IDs (UUIDs).root - The root associated with the user manager.namePathMapper - RepositoryException - If an error occurs.void onMemberRemoved(Group group, Authorizable member, org.apache.jackrabbit.oak.api.Root root, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws RepositoryException
Authorizable was removed from the Group.
Implementations may perform specific modifications or validations.group - The Group from which the Authorizable was removed.member - The Authorizable removed.root - The root associated with the user manager.namePathMapper - RepositoryException - If an error occurs.void onMembersRemoved(Group group, Iterable<String> memberIds, Iterable<String> failedIds, org.apache.jackrabbit.oak.api.Root root, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper) throws RepositoryException
Group. The members are provided as an iterable
of their string-based IDs, as some members may no longer or not yet exist.
Implementations may perform specific modifications or validations.group - The Group from which the members were removed.memberIds - An Iterable of the member IDs.root - The root associated with the user manager.namePathMapper - RepositoryException - If an error occurs.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.