oracle.cle.persistence.handler
Class UserHandler

java.lang.Object
  |
  +--oracle.cle.persistence.DeploymentConnector
        |
        +--oracle.cle.persistence.DeploymentAutoConnector
              |
              +--oracle.cle.persistence.Handler
                    |
                    +--oracle.cle.persistence.handler.UserHandler
All Implemented Interfaces:
HandlerDefinition, java.io.Serializable

public abstract class UserHandler
extends Handler

Convenience class for persistence interaction with resource "User".

See Also:
Serialized Form

Field Summary
static java.lang.String LOGIN
           
protected  ConnectionProvider provider
           
 
Constructor Summary
UserHandler()
           
 
Method Summary
 User login(java.lang.String username, java.lang.String password)
          Logs a user in using the information found in the login provider information
protected abstract  User populateUser(User user)
           
 
Methods inherited from class oracle.cle.persistence.Handler
commitChanges, createObject, createObject, deleteObject, deleteObject, deleteObject, findObject, findObject, getAllObjects, getAllObjects, getObject, newObject, registerForChanges, registerForChanges, startTransaction, startTransaction
 
Methods inherited from class oracle.cle.persistence.DeploymentAutoConnector
getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getReferenceClass, releaseConnection, releaseConnection, releaseConnection, releaseConnection
 
Methods inherited from class oracle.cle.persistence.DeploymentConnector
deploymentKeyNotFound, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getDeploymentKey, getDeploymentKey, getDeploymentKey, getProvider, getProvider, providerNotSupported, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection, releaseConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGIN

public static final java.lang.String LOGIN

provider

protected ConnectionProvider provider
Constructor Detail

UserHandler

public UserHandler()
Method Detail

login

public User login(java.lang.String username,
                  java.lang.String password)
           throws java.lang.Exception
Logs a user in using the information found in the login provider information

The "persistence_login.properties" file should contain all the information required to login (including failover), but does not, by default, have a username or password.
This method will fill in the login information (user/password) and enable login if everything else is as it should be.


populateUser

protected abstract User populateUser(User user)


Copyright © 2003 ORACLE Corp. All Rights Reserved.