com.ibm.btt.bc.ac.dao.xml
Class SecurityUserDAOXMLImpl
java.lang.Object
com.ibm.btt.bc.ac.dao.xml.XMLBase
com.ibm.btt.bc.ac.dao.xml.SecurityUserDAOXMLImpl
- All Implemented Interfaces:
- ISecurityUserDAO
public class SecurityUserDAOXMLImpl
- extends XMLBase
- implements ISecurityUserDAO
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityUserDAOXMLImpl
public SecurityUserDAOXMLImpl(java.lang.String filePath)
throws XMLPersistException
- Throws:
XMLPersistException
setFactory
public static void setFactory(IDAOFactory fac)
assignRoleToUser
public java.lang.String assignRoleToUser(java.lang.String user,
java.lang.String roleName,
java.util.Calendar startDate,
java.util.Calendar endDate)
throws DAOException
- Specified by:
assignRoleToUser
in interface ISecurityUserDAO
- Throws:
DAOException
deleteUser
public java.lang.String deleteUser(java.lang.String userId)
throws DAOException
- Specified by:
deleteUser
in interface ISecurityUserDAO
- Throws:
DAOException
findUser
public java.util.List<SecurityUser> findUser(QueryConditions queryConditions)
throws DAOException
- Specified by:
findUser
in interface ISecurityUserDAO
- Throws:
DAOException
getAllAssignedRolesForUser
public java.util.List<AssignedRole> getAllAssignedRolesForUser(java.lang.String userId)
throws DAOException
- Specified by:
getAllAssignedRolesForUser
in interface ISecurityUserDAO
- Throws:
DAOException
getAllUsers
public java.util.List<SecurityUser> getAllUsers()
throws DAOException
- Specified by:
getAllUsers
in interface ISecurityUserDAO
- Throws:
DAOException
getAssignedRoleForUser
public AssignedRole getAssignedRoleForUser(java.lang.String userId,
java.lang.String roleName)
throws DAOException
- Specified by:
getAssignedRoleForUser
in interface ISecurityUserDAO
- Throws:
DAOException
removeRoleFromUser
public java.lang.String removeRoleFromUser(java.lang.String userId,
java.lang.String roleName)
throws DAOException
- Specified by:
removeRoleFromUser
in interface ISecurityUserDAO
- Throws:
DAOException
addUser
public java.lang.String addUser(SecurityUser user)
throws DAOException
- Specified by:
addUser
in interface ISecurityUserDAO
- Throws:
DAOException
updateAssignedRole
public java.lang.String updateAssignedRole(java.lang.String userId,
java.lang.String roleName,
java.util.Calendar startDate,
java.util.Calendar endDate)
throws DAOException
- Specified by:
updateAssignedRole
in interface ISecurityUserDAO
- Throws:
DAOException
updateUser
public java.lang.String updateUser(SecurityUser user)
throws DAOException
- Specified by:
updateUser
in interface ISecurityUserDAO
- Throws:
DAOException
findUserWithId
public SecurityUser findUserWithId(java.lang.String userId)
throws DAOException
- Specified by:
findUserWithId
in interface ISecurityUserDAO
- Throws:
DAOException
(c) Copyright IBM Corporation 1998, 2011