org.wso2.registry.users.def.util
Class DefaultDataSupplierImpl

java.lang.Object
  extended by org.wso2.registry.users.def.util.DefaultDataSupplierImpl
All Implemented Interfaces:
DefaultDataSupplier

public class DefaultDataSupplierImpl
extends java.lang.Object
implements DefaultDataSupplier

Represents the user store. If you change this object it will change the way the DefaultRealmBehaves.


Field Summary
protected  javax.sql.DataSource dataSource
           
 
Constructor Summary
DefaultDataSupplierImpl()
           
DefaultDataSupplierImpl(javax.sql.DataSource dataSource)
           
 
Method Summary
 java.lang.String getAccessControlAdminSQL(int sqlID)
          Retrieves the Access Control Admin SQL
 java.lang.String getAuthenticatorSQL(int sqlID)
          Retrieves the authentication SQL
 java.lang.String getAuthorizerSQL(int sqlID)
          Retrieves the Authorizer SQL
 java.lang.String getColumnName(int columnID)
          Retrives the column name given the column Id
 java.lang.String getRoleId(java.lang.String roleName)
           
 java.lang.String getUserId(java.lang.String userName)
           
 java.lang.String[] getUserRoles(java.lang.String userName)
          Retrieves the User Roles
 java.lang.String getUserStoreAdminSQL(int sqlID)
          Retrieves the SQL to perform User Store administration.
 java.lang.String getUserStoreReaderSQL(int sqlID)
          Retrieves the User Store Reader SQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSource

protected javax.sql.DataSource dataSource
Constructor Detail

DefaultDataSupplierImpl

public DefaultDataSupplierImpl(javax.sql.DataSource dataSource)

DefaultDataSupplierImpl

public DefaultDataSupplierImpl()
Method Detail

getColumnName

public java.lang.String getColumnName(int columnID)
Description copied from interface: DefaultDataSupplier
Retrives the column name given the column Id

Specified by:
getColumnName in interface DefaultDataSupplier

getAuthenticatorSQL

public java.lang.String getAuthenticatorSQL(int sqlID)
Description copied from interface: DefaultDataSupplier
Retrieves the authentication SQL

Specified by:
getAuthenticatorSQL in interface DefaultDataSupplier

getUserStoreAdminSQL

public java.lang.String getUserStoreAdminSQL(int sqlID)
Description copied from interface: DefaultDataSupplier
Retrieves the SQL to perform User Store administration.

Specified by:
getUserStoreAdminSQL in interface DefaultDataSupplier

getAccessControlAdminSQL

public java.lang.String getAccessControlAdminSQL(int sqlID)
Description copied from interface: DefaultDataSupplier
Retrieves the Access Control Admin SQL

Specified by:
getAccessControlAdminSQL in interface DefaultDataSupplier

getAuthorizerSQL

public java.lang.String getAuthorizerSQL(int sqlID)
Description copied from interface: DefaultDataSupplier
Retrieves the Authorizer SQL

Specified by:
getAuthorizerSQL in interface DefaultDataSupplier

getUserStoreReaderSQL

public java.lang.String getUserStoreReaderSQL(int sqlID)
Description copied from interface: DefaultDataSupplier
Retrieves the User Store Reader SQL

Specified by:
getUserStoreReaderSQL in interface DefaultDataSupplier

getUserId

public java.lang.String getUserId(java.lang.String userName)
                           throws UserStoreException
Throws:
UserStoreException

getRoleId

public java.lang.String getRoleId(java.lang.String roleName)
                           throws UserStoreException
Throws:
UserStoreException

getUserRoles

public java.lang.String[] getUserRoles(java.lang.String userName)
                                throws UserStoreException
Description copied from interface: DefaultDataSupplier
Retrieves the User Roles

Specified by:
getUserRoles in interface DefaultDataSupplier
Throws:
UserStoreException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.