org.wso2.registry.users.def
Interface DefaultStrategy

All Known Implementing Classes:
DefaultStrategyImpl

public interface DefaultStrategy

Method in this class dominate how the DefaultRealm behaves. This enables different types of Realms to be written. For example users can be pulled out from tables with different names. Sample implementation is WSASRealm. Thrives to achieve loose coupling.


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
 

Method Detail

getColumnName

java.lang.String getColumnName(int columnID)
Retrives the column name given the column Id


getAuthenticatorSQL

java.lang.String getAuthenticatorSQL(int sqlID)
Retrieves the authentication SQL


getUserStoreAdminSQL

java.lang.String getUserStoreAdminSQL(int sqlID)
Retrieves the SQL to perform User Store administration.


getCommonSQL

java.lang.String getCommonSQL(int sqlID)
Retrieves the Common SQL


getAccessControlAdminSQL

java.lang.String getAccessControlAdminSQL(int sqlID)
Retrieves the Access Control Admin SQL


getAuthorizerSQL

java.lang.String getAuthorizerSQL(int sqlID)
Retrieves the Authorizer SQL


getUserStoreReaderSQL

java.lang.String getUserStoreReaderSQL(int sqlID)
Retrieves the User Store Reader SQL


getUserId

java.lang.String getUserId(java.lang.String userName)
                           throws UserStoreException
Retrieves the User ID

Throws:
UserStoreException

getRoleId

java.lang.String getRoleId(java.lang.String roleName)
                           throws UserStoreException
Retrieves the Role ID

Throws:
UserStoreException

getUserRoles

java.lang.String[] getUserRoles(java.lang.String userName)
                                throws UserStoreException
Retrieves the User Roles

Throws:
UserStoreException


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