Class JDBCUserDAOImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.jdbc.core.support.JdbcDaoSupport
-
- org.openiam.common.authmanager.jdbc.impl.AbstractJDBCDao
-
- org.openiam.common.authmanager.jdbc.impl.JDBCUserDAOImpl
-
- All Implemented Interfaces:
AbstractDAO<AuthorizationUser>,UserDAO,org.springframework.beans.factory.InitializingBean
@Repository("jdbcUserDao") public class JDBCUserDAOImpl extends AbstractJDBCDao implements UserDAO
-
-
Field Summary
-
Fields inherited from class org.openiam.common.authmanager.jdbc.impl.AbstractJDBCDao
schemaName
-
-
Constructor Summary
Constructors Constructor Description JDBCUserDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AuthorizationUser>getList()List<String>getUserIdsForGroups(Set<String> groupIds)List<String>getUserIdsForResources(Set<String> resourceIds)List<String>getUserIdsForRoles(Set<String> roleIds)List<String>getUserIdsList()Map<String,List<MembershipXref>>getUserIdsWithEndingMembership(Date endDate, Boolean isReminded)voidinitSqlStatements()voidupdateUserEntitlementStatusReminded(Set<String> membershipIds, String type)voidupdateUserEntitlementStatusRevoked(String memberEntityId, Set<String> entityIds, String type)-
Methods inherited from class org.openiam.common.authmanager.jdbc.impl.AbstractJDBCDao
getSchemaName, initDataSource
-
-
-
-
Method Detail
-
initSqlStatements
public void initSqlStatements()
- Specified by:
initSqlStatementsin classAbstractJDBCDao
-
getUserIdsWithEndingMembership
public Map<String,List<MembershipXref>> getUserIdsWithEndingMembership(Date endDate, Boolean isReminded)
- Specified by:
getUserIdsWithEndingMembershipin interfaceUserDAO- Parameters:
endDate- membership with end date equals or before provided will be selectedisReminded- referenced to column REMINDED from USER_ROLE and USER_GRP- Returns:
-
updateUserEntitlementStatusRevoked
public void updateUserEntitlementStatusRevoked(String memberEntityId, Set<String> entityIds, String type)
- Specified by:
updateUserEntitlementStatusRevokedin interfaceUserDAO- Parameters:
memberEntityId- user identityIds- role or group id settype- could be either "ROLE" either "GROUP"
-
updateUserEntitlementStatusReminded
public void updateUserEntitlementStatusReminded(Set<String> membershipIds, String type)
- Specified by:
updateUserEntitlementStatusRemindedin interfaceUserDAO- Parameters:
membershipIds- membership id settype- could be either "ROLE" either "GROUP"
-
getUserIdsList
public List<String> getUserIdsList()
- Specified by:
getUserIdsListin interfaceUserDAO
-
getUserIdsForRoles
public List<String> getUserIdsForRoles(Set<String> roleIds)
- Specified by:
getUserIdsForRolesin interfaceUserDAO
-
getUserIdsForGroups
public List<String> getUserIdsForGroups(Set<String> groupIds)
- Specified by:
getUserIdsForGroupsin interfaceUserDAO
-
getUserIdsForResources
public List<String> getUserIdsForResources(Set<String> resourceIds)
- Specified by:
getUserIdsForResourcesin interfaceUserDAO
-
getList
public List<AuthorizationUser> getList()
- Specified by:
getListin interfaceAbstractDAO<AuthorizationUser>
-
-