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 UserManager
RepositoryException
public <T extends Authorizable> T getAuthorizable(String id, Class<T> authorizableClass) throws RepositoryException
getAuthorizable
in interface UserManager
RepositoryException
public Authorizable getAuthorizable(Principal principal) throws RepositoryException
getAuthorizable
in interface UserManager
RepositoryException
public Authorizable getAuthorizableByPath(String path) throws RepositoryException
getAuthorizableByPath
in interface UserManager
RepositoryException
public Iterator<Authorizable> findAuthorizables(String relPath, String value) throws RepositoryException
findAuthorizables
in interface UserManager
RepositoryException
public Iterator<Authorizable> findAuthorizables(String relPath, String value, int searchType) throws RepositoryException
findAuthorizables
in interface UserManager
RepositoryException
public Iterator<Authorizable> findAuthorizables(Query query) throws RepositoryException
findAuthorizables
in interface UserManager
RepositoryException
public User createUser(String userID, String password) throws AuthorizableExistsException, RepositoryException
createUser
in interface UserManager
AuthorizableExistsException
RepositoryException
public User createUser(String userID, String password, Principal principal, String intermediatePath) throws RepositoryException
createUser
in interface UserManager
RepositoryException
public User createSystemUser(String userID, String intermediatePath) throws RepositoryException
createSystemUser
in interface UserManager
RepositoryException
public Group createGroup(String groupID) throws RepositoryException
createGroup
in interface UserManager
RepositoryException
public Group createGroup(Principal principal) throws RepositoryException
createGroup
in interface UserManager
RepositoryException
public Group createGroup(Principal principal, String intermediatePath) throws RepositoryException
createGroup
in interface UserManager
RepositoryException
public Group createGroup(String groupID, Principal principal, String intermediatePath) throws RepositoryException
createGroup
in interface UserManager
RepositoryException
public boolean isAutoSave()
isAutoSave
in interface UserManager
public void autoSave(boolean enable) throws RepositoryException
autoSave
in interface UserManager
RepositoryException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.