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

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

public class DefaultStrategyImpl
extends java.lang.Object
implements DefaultStrategy

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
DefaultStrategyImpl()
           
DefaultStrategyImpl(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 getCommonSQL(int sqlID)
          Retrieves the Common SQL
 java.lang.String getRoleId(java.lang.String roleName)
          Retrieves the Role ID
 java.lang.String getUserId(java.lang.String userName)
          Retrieves the User ID
 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

DefaultStrategyImpl

public DefaultStrategyImpl(javax.sql.DataSource dataSource)

DefaultStrategyImpl

public DefaultStrategyImpl()
Method Detail

getColumnName

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

Specified by:
getColumnName in interface DefaultStrategy

getAuthenticatorSQL

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

Specified by:
getAuthenticatorSQL in interface DefaultStrategy

getUserStoreAdminSQL

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

Specified by:
getUserStoreAdminSQL in interface DefaultStrategy

getCommonSQL

public java.lang.String getCommonSQL(int sqlID)
Description copied from interface: DefaultStrategy
Retrieves the Common SQL

Specified by:
getCommonSQL in interface DefaultStrategy

getAccessControlAdminSQL

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

Specified by:
getAccessControlAdminSQL in interface DefaultStrategy

getAuthorizerSQL

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

Specified by:
getAuthorizerSQL in interface DefaultStrategy

getUserStoreReaderSQL

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

Specified by:
getUserStoreReaderSQL in interface DefaultStrategy

getUserId

public java.lang.String getUserId(java.lang.String userName)
                           throws UserStoreException
Description copied from interface: DefaultStrategy
Retrieves the User ID

Specified by:
getUserId in interface DefaultStrategy
Throws:
UserStoreException

getRoleId

public java.lang.String getRoleId(java.lang.String roleName)
                           throws UserStoreException
Description copied from interface: DefaultStrategy
Retrieves the Role ID

Specified by:
getRoleId in interface DefaultStrategy
Throws:
UserStoreException

getUserRoles

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

Specified by:
getUserRoles in interface DefaultStrategy
Throws:
UserStoreException


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