info.magnolia.cms.security
Interface UserManager

All Known Implementing Classes:
DelegatingUserManager, ExternalUserManager, HierarchicalUserManager, MgnlUserManager, SystemUserManager

public interface UserManager

Used to get the current or other User objects.

Version:
$Revision: 32667 $ ($Author: gjoseph $)
Author:
philipp

Field Summary
static java.lang.String ANONYMOUS_USER
          Anonymous user
static java.lang.String SYSTEM_PSWD
          Magnolia system default password
static java.lang.String SYSTEM_USER
          Magnolia system user.
 
Method Summary
 void changePassword(User user, java.lang.String newPassword)
           
 User createUser(java.lang.String name, java.lang.String pw)
          Creates a user without security restrictions
 java.util.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(java.lang.String name)
          Find a specific user.
 User getUser(javax.security.auth.Subject subject)
          Initialize new user using JAAS authenticated/authorized subject
 

Field Detail

SYSTEM_USER

static final java.lang.String SYSTEM_USER
Magnolia system user.

See Also:
Constant Field Values

SYSTEM_PSWD

static final java.lang.String SYSTEM_PSWD
Magnolia system default password

See Also:
Constant Field Values

ANONYMOUS_USER

static final java.lang.String ANONYMOUS_USER
Anonymous user

See Also:
Constant Field Values
Method Detail

getUser

User getUser(java.lang.String name)
             throws java.lang.UnsupportedOperationException
Find a specific user. Not all implementations will support this method.

Parameters:
name - the name of the user
Returns:
the user object
Throws:
java.lang.UnsupportedOperationException

getUser

User getUser(javax.security.auth.Subject subject)
             throws java.lang.UnsupportedOperationException
Initialize new user using JAAS authenticated/authorized subject

Parameters:
subject -
Throws:
java.lang.UnsupportedOperationException

getSystemUser

User getSystemUser()
                   throws java.lang.UnsupportedOperationException
Get system user, this user must always exist in magnolia repository.

Returns:
system user
Throws:
java.lang.UnsupportedOperationException

getAnonymousUser

User getAnonymousUser()
                      throws java.lang.UnsupportedOperationException
Get Anonymous user, this user must always exist in magnolia repository.

Returns:
anonymous user
Throws:
java.lang.UnsupportedOperationException

getAllUsers

java.util.Collection<User> getAllUsers()
                                       throws java.lang.UnsupportedOperationException
Get all users.

Returns:
collection of User objects
Throws:
java.lang.UnsupportedOperationException

createUser

User createUser(java.lang.String name,
                java.lang.String pw)
                throws java.lang.UnsupportedOperationException
Creates a user without security restrictions

Parameters:
name - user name
pw - password
Returns:
the new user object
Throws:
java.lang.UnsupportedOperationException

changePassword

void changePassword(User user,
                    java.lang.String newPassword)
                    throws java.lang.UnsupportedOperationException
Throws:
java.lang.UnsupportedOperationException


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.