IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.bc.ac.dao.db
Class SecurityRoleDAODBImpl

java.lang.Object
  extended by com.ibm.btt.bc.ac.dao.db.DBBase
      extended by com.ibm.btt.bc.ac.dao.db.SecurityRoleDAODBImpl
All Implemented Interfaces:
ISecurityRoleDAO

public class SecurityRoleDAODBImpl
extends DBBase
implements ISecurityRoleDAO


Nested Class Summary
(package private)  class SecurityRoleDAODBImpl.RightResultSet
           
(package private)  class SecurityRoleDAODBImpl.RoleResultSet
           
 
Nested classes/interfaces inherited from class com.ibm.btt.bc.ac.dao.db.DBBase
DBBase.ProcessResultSet<T>
 
Field Summary
 
Fields inherited from class com.ibm.btt.bc.ac.dao.db.DBBase
connectionPool, rightTableName, roleRightTableName, roleSubRoleTableName, roleTableName, serviceRightTableName, serviceTableName, userRoleTableName, userTableName
 
Constructor Summary
SecurityRoleDAODBImpl(ConnectionPool connectionPool, java.lang.String dbSchema)
           
 
Method Summary
 java.lang.String addRole(SecurityRole role)
           
 java.lang.String assignRightToRole(java.lang.String roleName, java.lang.String rightName)
           
 java.lang.String assignSubRoleToRole(java.lang.String roleName, java.lang.String subRoleName)
           
 java.lang.String deleteRole(java.lang.String roleName)
           
 java.util.List<SecurityRole> findRole(QueryConditions queryConditions)
           
 SecurityRole findRoleByName(java.lang.String roleName)
           
 java.util.List<SecurityRight> getAllAssignedRightList(java.lang.String roleName)
           
 java.util.List<SecurityRole> getAllRoles()
           
 java.util.List<SecurityRole> getAllSubRolesFromRole(java.lang.String roleName)
           
 java.util.List<SecurityRight> getAssignedRightList(java.lang.String roleName)
           
 SecurityRight getRightForRole(java.lang.String roleName, java.lang.String rightName)
           
 SecurityRole getSubRoleFromRole(java.lang.String roleName, java.lang.String subRoleName)
           
 java.lang.String removeRightFromRole(java.lang.String roleName, java.lang.String rightName)
           
 java.lang.String removeSubRoleFromRole(java.lang.String roleName, java.lang.String subRoleName)
           
 java.lang.String updateRole(SecurityRole role)
           
 
Methods inherited from class com.ibm.btt.bc.ac.dao.db.DBBase
closeConnection, execute, getConnection, query, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityRoleDAODBImpl

public SecurityRoleDAODBImpl(ConnectionPool connectionPool,
                             java.lang.String dbSchema)
Method Detail

addRole

public java.lang.String addRole(SecurityRole role)
                         throws DAOException
Specified by:
addRole in interface ISecurityRoleDAO
Throws:
DAOException

assignRightToRole

public java.lang.String assignRightToRole(java.lang.String roleName,
                                          java.lang.String rightName)
                                   throws DAOException
Specified by:
assignRightToRole in interface ISecurityRoleDAO
Throws:
DAOException

assignSubRoleToRole

public java.lang.String assignSubRoleToRole(java.lang.String roleName,
                                            java.lang.String subRoleName)
                                     throws DAOException
Specified by:
assignSubRoleToRole in interface ISecurityRoleDAO
Throws:
DAOException

deleteRole

public java.lang.String deleteRole(java.lang.String roleName)
                            throws DAOException
Specified by:
deleteRole in interface ISecurityRoleDAO
Throws:
DAOException

findRole

public java.util.List<SecurityRole> findRole(QueryConditions queryConditions)
                                      throws DAOException
Specified by:
findRole in interface ISecurityRoleDAO
Throws:
DAOException

findRoleByName

public SecurityRole findRoleByName(java.lang.String roleName)
                            throws DAOException
Specified by:
findRoleByName in interface ISecurityRoleDAO
Throws:
DAOException

getAllAssignedRightList

public java.util.List<SecurityRight> getAllAssignedRightList(java.lang.String roleName)
                                                      throws DAOException
Specified by:
getAllAssignedRightList in interface ISecurityRoleDAO
Throws:
DAOException

getAllRoles

public java.util.List<SecurityRole> getAllRoles()
                                         throws DAOException
Specified by:
getAllRoles in interface ISecurityRoleDAO
Throws:
DAOException

getAllSubRolesFromRole

public java.util.List<SecurityRole> getAllSubRolesFromRole(java.lang.String roleName)
                                                    throws DAOException
Specified by:
getAllSubRolesFromRole in interface ISecurityRoleDAO
Throws:
DAOException

getAssignedRightList

public java.util.List<SecurityRight> getAssignedRightList(java.lang.String roleName)
                                                   throws DAOException
Specified by:
getAssignedRightList in interface ISecurityRoleDAO
Throws:
DAOException

getRightForRole

public SecurityRight getRightForRole(java.lang.String roleName,
                                     java.lang.String rightName)
                              throws DAOException
Specified by:
getRightForRole in interface ISecurityRoleDAO
Throws:
DAOException

getSubRoleFromRole

public SecurityRole getSubRoleFromRole(java.lang.String roleName,
                                       java.lang.String subRoleName)
                                throws DAOException
Specified by:
getSubRoleFromRole in interface ISecurityRoleDAO
Throws:
DAOException

removeRightFromRole

public java.lang.String removeRightFromRole(java.lang.String roleName,
                                            java.lang.String rightName)
                                     throws DAOException
Specified by:
removeRightFromRole in interface ISecurityRoleDAO
Throws:
DAOException

removeSubRoleFromRole

public java.lang.String removeSubRoleFromRole(java.lang.String roleName,
                                              java.lang.String subRoleName)
                                       throws DAOException
Specified by:
removeSubRoleFromRole in interface ISecurityRoleDAO
Throws:
DAOException

updateRole

public java.lang.String updateRole(SecurityRole role)
                            throws DAOException
Specified by:
updateRole in interface ISecurityRoleDAO
Throws:
DAOException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009