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 |
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) |
Authorizable |
getAuthorizableByPath(String path) |
boolean |
isAutoSave() |
public UserManagerDelegator(SessionDelegate sessionDelegate, UserManager userManagerDelegate)
public Authorizable getAuthorizable(String id) throws RepositoryException
getAuthorizable in interface UserManagerRepositoryExceptionpublic Authorizable getAuthorizable(Principal principal) throws RepositoryException
getAuthorizable in interface UserManagerRepositoryExceptionpublic Authorizable getAuthorizableByPath(String path) throws UnsupportedRepositoryOperationException, RepositoryException
getAuthorizableByPath in interface UserManagerUnsupportedRepositoryOperationExceptionRepositoryExceptionpublic 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 AuthorizableExistsException, RepositoryException
createUser in interface UserManagerAuthorizableExistsExceptionRepositoryExceptionpublic Group createGroup(String groupID) throws AuthorizableExistsException, RepositoryException
createGroup in interface UserManagerAuthorizableExistsExceptionRepositoryExceptionpublic Group createGroup(Principal principal) throws AuthorizableExistsException, RepositoryException
createGroup in interface UserManagerAuthorizableExistsExceptionRepositoryExceptionpublic Group createGroup(Principal principal, String intermediatePath) throws AuthorizableExistsException, RepositoryException
createGroup in interface UserManagerAuthorizableExistsExceptionRepositoryExceptionpublic Group createGroup(String groupID, Principal principal, String intermediatePath) throws AuthorizableExistsException, RepositoryException
createGroup in interface UserManagerAuthorizableExistsExceptionRepositoryExceptionpublic boolean isAutoSave()
isAutoSave in interface UserManagerpublic void autoSave(boolean enable)
throws UnsupportedRepositoryOperationException,
RepositoryException
autoSave in interface UserManagerUnsupportedRepositoryOperationExceptionRepositoryExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.