Class JdbcMembershipDAO
- 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.JdbcMembershipDAO
-
- All Implemented Interfaces:
MembershipDAO
,org.springframework.beans.factory.InitializingBean
@Repository("jdbcMembershipDAO") public class JdbcMembershipDAO extends AbstractJDBCDao implements MembershipDAO
-
-
Field Summary
-
Fields inherited from class org.openiam.common.authmanager.jdbc.impl.AbstractJDBCDao
schemaName
-
-
Constructor Summary
Constructors Constructor Description JdbcMembershipDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MembershipRightDTO>
getEntitlementRightsStateForResources()
List<MembershipRightDTO>
getEntitlementRightsStateForUsers()
List<MembershipDTO>
getEntitlementStateForResources(Date date)
List<MembershipDTO>
getEntitlementStateForUser(String userId, Date date)
List<MembershipDTO>
getEntitlementStateForUsers(Date date)
List<AuthorizationGroup>
getGroups()
List<LanguageMapping>
getLanguageMappings(Collection<String> ids, String referenceType)
List<AuthorizationOrganization>
getOrganizations()
List<AuthorizationResource>
getPublicResources()
List<AuthorizationResource>
getResources()
List<AuthorizationRole>
getRoles()
InternalAuthorizationUser
getUser(String id, Date date)
Gets the current user's entitlements based on the id and date.List<AuthorizationUser>
getUsers()
List<AuthorizationUser>
getUsersNotInsertedIntoGraph()
protected void
initSqlStatements()
-
Methods inherited from class org.openiam.common.authmanager.jdbc.impl.AbstractJDBCDao
getSchemaName, initDataSource
-
-
-
-
Method Detail
-
initSqlStatements
protected void initSqlStatements()
- Specified by:
initSqlStatements
in classAbstractJDBCDao
-
getEntitlementRightsStateForUsers
public List<MembershipRightDTO> getEntitlementRightsStateForUsers()
- Specified by:
getEntitlementRightsStateForUsers
in interfaceMembershipDAO
-
getEntitlementRightsStateForResources
public List<MembershipRightDTO> getEntitlementRightsStateForResources()
- Specified by:
getEntitlementRightsStateForResources
in interfaceMembershipDAO
-
getEntitlementStateForUser
public List<MembershipDTO> getEntitlementStateForUser(String userId, Date date)
- Specified by:
getEntitlementStateForUser
in interfaceMembershipDAO
-
getEntitlementStateForUsers
public List<MembershipDTO> getEntitlementStateForUsers(Date date)
- Specified by:
getEntitlementStateForUsers
in interfaceMembershipDAO
-
getEntitlementStateForResources
public List<MembershipDTO> getEntitlementStateForResources(Date date)
- Specified by:
getEntitlementStateForResources
in interfaceMembershipDAO
-
getOrganizations
public List<AuthorizationOrganization> getOrganizations()
- Specified by:
getOrganizations
in interfaceMembershipDAO
-
getGroups
public List<AuthorizationGroup> getGroups()
- Specified by:
getGroups
in interfaceMembershipDAO
-
getRoles
public List<AuthorizationRole> getRoles()
- Specified by:
getRoles
in interfaceMembershipDAO
-
getResources
public List<AuthorizationResource> getResources()
- Specified by:
getResources
in interfaceMembershipDAO
-
getPublicResources
public List<AuthorizationResource> getPublicResources()
- Specified by:
getPublicResources
in interfaceMembershipDAO
-
getUsers
public List<AuthorizationUser> getUsers()
- Specified by:
getUsers
in interfaceMembershipDAO
-
getUser
public InternalAuthorizationUser getUser(String id, Date date)
Gets the current user's entitlements based on the id and date. Note that the 'date' filtering is *not* done on the database level, as that requires a full table scan on 4 different results sets (as this is a Union) When doing this query on Bechtel, the COST (via EXPLAIN) with the data filtering was over 70000, while the COST without was only ~500.- Specified by:
getUser
in interfaceMembershipDAO
-
getLanguageMappings
public List<LanguageMapping> getLanguageMappings(Collection<String> ids, String referenceType)
- Specified by:
getLanguageMappings
in interfaceMembershipDAO
-
getUsersNotInsertedIntoGraph
public List<AuthorizationUser> getUsersNotInsertedIntoGraph()
- Specified by:
getUsersNotInsertedIntoGraph
in interfaceMembershipDAO
-
-