org.outerj.xreporter.user
Class UserManagerImpl

java.lang.Object
  extended byorg.outerj.xreporter.user.UserManagerImpl
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, UserManager

public class UserManagerImpl
extends java.lang.Object
implements UserManager, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable


Field Summary
protected  ConnectionProvider connectionPool
           
protected  java.util.Properties connectionProperties
           
protected  ConnectionProviderManager connectionProviderManager
           
protected  java.lang.String customerStatement
          SQL statement to get the customer to which a user belongs
protected  java.lang.String propertiesStatement
          SQL statement to get the custom properties of this user
protected  java.lang.String rolesStatement
          SQL statement to get the roles of a user
protected  java.lang.String userCheckStatement
          SQL statement to check that a users exists
 
Fields inherited from interface org.outerj.xreporter.user.UserManager
ROLE
 
Constructor Summary
UserManagerImpl()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 User getUser(java.lang.String userName)
          Fetches a user from the database.
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionProperties

protected java.util.Properties connectionProperties

connectionProviderManager

protected ConnectionProviderManager connectionProviderManager

connectionPool

protected ConnectionProvider connectionPool

userCheckStatement

protected java.lang.String userCheckStatement
SQL statement to check that a users exists


rolesStatement

protected java.lang.String rolesStatement
SQL statement to get the roles of a user


customerStatement

protected java.lang.String customerStatement
SQL statement to get the customer to which a user belongs


propertiesStatement

protected java.lang.String propertiesStatement
SQL statement to get the custom properties of this user

Constructor Detail

UserManagerImpl

public UserManagerImpl()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
             throws org.apache.avalon.framework.component.ComponentException
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
Throws:
org.apache.avalon.framework.component.ComponentException

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

getUser

public User getUser(java.lang.String userName)
             throws java.sql.SQLException,
                    UnknownUserException
Fetches a user from the database.

Specified by:
getUser in interface UserManager
Throws:
java.sql.SQLException
UnknownUserException