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)
void
initSqlStatements()
void
updateUserEntitlementStatusReminded(Set<String> membershipIds, String type)
void
updateUserEntitlementStatusRevoked(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:
initSqlStatements
in classAbstractJDBCDao
-
getUserIdsWithEndingMembership
public Map<String,List<MembershipXref>> getUserIdsWithEndingMembership(Date endDate, Boolean isReminded)
- Specified by:
getUserIdsWithEndingMembership
in 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:
updateUserEntitlementStatusRevoked
in 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:
updateUserEntitlementStatusReminded
in interfaceUserDAO
- Parameters:
membershipIds
- membership id settype
- could be either "ROLE" either "GROUP"
-
getUserIdsList
public List<String> getUserIdsList()
- Specified by:
getUserIdsList
in interfaceUserDAO
-
getUserIdsForRoles
public List<String> getUserIdsForRoles(Set<String> roleIds)
- Specified by:
getUserIdsForRoles
in interfaceUserDAO
-
getUserIdsForGroups
public List<String> getUserIdsForGroups(Set<String> groupIds)
- Specified by:
getUserIdsForGroups
in interfaceUserDAO
-
getUserIdsForResources
public List<String> getUserIdsForResources(Set<String> resourceIds)
- Specified by:
getUserIdsForResources
in interfaceUserDAO
-
getList
public List<AuthorizationUser> getList()
- Specified by:
getList
in interfaceAbstractDAO<AuthorizationUser>
-
-