|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManager
Manages users.
Field Summary | |
---|---|
static String |
ANONYMOUS_USER
Anonymous user name. |
static String |
SYSTEM_PSWD
Magnolia system default password. |
static String |
SYSTEM_USER
Magnolia system user name. |
Method Summary | |
---|---|
void |
changePassword(User user,
String newPassword)
Sets a new password. |
User |
createUser(String name,
String pw)
Creates a user without security restrictions. |
Collection<User> |
getAllUsers()
Get all users. |
User |
getAnonymousUser()
Get Anonymous user, this user must always exist in magnolia repository. |
User |
getSystemUser()
Get system user, this user must always exist in magnolia repository. |
User |
getUser(String name)
Find a specific user. |
User |
getUser(Subject subject)
Initialize new user using JAAS authenticated/authorized subject. |
Field Detail |
---|
static final String SYSTEM_USER
static final String SYSTEM_PSWD
static final String ANONYMOUS_USER
Method Detail |
---|
User getUser(String name) throws UnsupportedOperationException
name
- the name of the user
UnsupportedOperationException
User getUser(Subject subject) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationUser getSystemUser() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationUser getAnonymousUser() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationCollection<User> getAllUsers() throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationUser createUser(String name, String pw) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operationvoid changePassword(User user, String newPassword) throws UnsupportedOperationException
UnsupportedOperationException
- if the current implementation doesn't support this operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |