public class UserManagerDelegator extends Object implements UserManager
UserManager delegates back to a
delegatee wrapping each call into a UserManager closure.SEARCH_TYPE_AUTHORIZABLE, SEARCH_TYPE_GROUP, SEARCH_TYPE_USER| Constructor and Description |
|---|
UserManagerDelegator(SessionDelegate sessionDelegate,
UserManager userManagerDelegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
autoSave(boolean enable) |
Group |
createGroup(Principal principal) |
Group |
createGroup(Principal principal,
String intermediatePath) |
Group |
createGroup(String groupID) |
Group |
createGroup(String groupID,
Principal principal,
String intermediatePath) |
User |
createSystemUser(String userID,
String intermediatePath) |
User |
createUser(String userID,
String password) |
User |
createUser(String userID,
String password,
Principal principal,
String intermediatePath) |
Iterator<Authorizable> |
findAuthorizables(Query query) |
Iterator<Authorizable> |
findAuthorizables(String relPath,
String value) |
Iterator<Authorizable> |
findAuthorizables(String relPath,
String value,
int searchType) |
Authorizable |
getAuthorizable(Principal principal) |
Authorizable |
getAuthorizable(String id) |
<T extends Authorizable> |
getAuthorizable(String id,
Class<T> authorizableClass) |
Authorizable |
getAuthorizableByPath(String path) |
boolean |
isAutoSave() |
public UserManagerDelegator(SessionDelegate sessionDelegate, UserManager userManagerDelegate)
public Authorizable getAuthorizable(String id) throws RepositoryException
getAuthorizable in interface UserManagerRepositoryExceptionpublic <T extends Authorizable> T getAuthorizable(String id, Class<T> authorizableClass) throws RepositoryException
getAuthorizable in interface UserManagerRepositoryExceptionpublic Authorizable getAuthorizable(Principal principal) throws RepositoryException
getAuthorizable in interface UserManagerRepositoryExceptionpublic Authorizable getAuthorizableByPath(String path) throws RepositoryException
getAuthorizableByPath in interface UserManagerRepositoryExceptionpublic Iterator<Authorizable> findAuthorizables(String relPath, String value) throws RepositoryException
findAuthorizables in interface UserManagerRepositoryExceptionpublic Iterator<Authorizable> findAuthorizables(String relPath, String value, int searchType) throws RepositoryException
findAuthorizables in interface UserManagerRepositoryExceptionpublic Iterator<Authorizable> findAuthorizables(Query query) throws RepositoryException
findAuthorizables in interface UserManagerRepositoryExceptionpublic User createUser(String userID, String password) throws AuthorizableExistsException, RepositoryException
createUser in interface UserManagerAuthorizableExistsExceptionRepositoryExceptionpublic User createUser(String userID, String password, Principal principal, String intermediatePath) throws RepositoryException
createUser in interface UserManagerRepositoryExceptionpublic User createSystemUser(String userID, String intermediatePath) throws RepositoryException
createSystemUser in interface UserManagerRepositoryExceptionpublic Group createGroup(String groupID) throws RepositoryException
createGroup in interface UserManagerRepositoryExceptionpublic Group createGroup(Principal principal) throws RepositoryException
createGroup in interface UserManagerRepositoryExceptionpublic Group createGroup(Principal principal, String intermediatePath) throws RepositoryException
createGroup in interface UserManagerRepositoryExceptionpublic Group createGroup(String groupID, Principal principal, String intermediatePath) throws RepositoryException
createGroup in interface UserManagerRepositoryExceptionpublic boolean isAutoSave()
isAutoSave in interface UserManagerpublic void autoSave(boolean enable)
throws RepositoryException
autoSave in interface UserManagerRepositoryExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.