Search in sources :

Example 1 with MockUser

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

the class AuthorizablesUtils method createMockUser.

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

Aggregations

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