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()InternalAuthorizationUsergetUser(String id, Date date)Gets the current user's entitlements based on the id and date.List<AuthorizationUser>getUsers()List<AuthorizationUser>getUsersNotInsertedIntoGraph()protected voidinitSqlStatements()-
Methods inherited from class org.openiam.common.authmanager.jdbc.impl.AbstractJDBCDao
getSchemaName, initDataSource
-
-
-
-
Method Detail
-
initSqlStatements
protected void initSqlStatements()
- Specified by:
initSqlStatementsin classAbstractJDBCDao
-
getEntitlementRightsStateForUsers
public List<MembershipRightDTO> getEntitlementRightsStateForUsers()
- Specified by:
getEntitlementRightsStateForUsersin interfaceMembershipDAO
-
getEntitlementRightsStateForResources
public List<MembershipRightDTO> getEntitlementRightsStateForResources()
- Specified by:
getEntitlementRightsStateForResourcesin interfaceMembershipDAO
-
getEntitlementStateForUser
public List<MembershipDTO> getEntitlementStateForUser(String userId, Date date)
- Specified by:
getEntitlementStateForUserin interfaceMembershipDAO
-
getEntitlementStateForUsers
public List<MembershipDTO> getEntitlementStateForUsers(Date date)
- Specified by:
getEntitlementStateForUsersin interfaceMembershipDAO
-
getEntitlementStateForResources
public List<MembershipDTO> getEntitlementStateForResources(Date date)
- Specified by:
getEntitlementStateForResourcesin interfaceMembershipDAO
-
getOrganizations
public List<AuthorizationOrganization> getOrganizations()
- Specified by:
getOrganizationsin interfaceMembershipDAO
-
getGroups
public List<AuthorizationGroup> getGroups()
- Specified by:
getGroupsin interfaceMembershipDAO
-
getRoles
public List<AuthorizationRole> getRoles()
- Specified by:
getRolesin interfaceMembershipDAO
-
getResources
public List<AuthorizationResource> getResources()
- Specified by:
getResourcesin interfaceMembershipDAO
-
getPublicResources
public List<AuthorizationResource> getPublicResources()
- Specified by:
getPublicResourcesin interfaceMembershipDAO
-
getUsers
public List<AuthorizationUser> getUsers()
- Specified by:
getUsersin 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:
getUserin interfaceMembershipDAO
-
getLanguageMappings
public List<LanguageMapping> getLanguageMappings(Collection<String> ids, String referenceType)
- Specified by:
getLanguageMappingsin interfaceMembershipDAO
-
getUsersNotInsertedIntoGraph
public List<AuthorizationUser> getUsersNotInsertedIntoGraph()
- Specified by:
getUsersNotInsertedIntoGraphin interfaceMembershipDAO
-
-