Search in sources :

Example 1 with MockGroup

use of com.cognifide.cq.cqsm.foundation.actions.MockGroup in project APM by Cognifide.

the class AuthorizablesUtils method createMockGroup.

public static Group createMockGroup(Context context, String id) {
    Group group = new MockGroup(id);
    context.getAuthorizables().put(id, group);
    context.getRemovedAuthorizables().remove(id);
    return group;
}
Also used : MockGroup(com.cognifide.cq.cqsm.foundation.actions.MockGroup) MockGroup(com.cognifide.cq.cqsm.foundation.actions.MockGroup) Group(org.apache.jackrabbit.api.security.user.Group)

Aggregations

MockGroup (com.cognifide.cq.cqsm.foundation.actions.MockGroup)1 Group (org.apache.jackrabbit.api.security.user.Group)1