org.kuali.rice.kim.dao.impl
Class KimRoleDaoOjb
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
org.kuali.rice.kim.dao.impl.KimRoleDaoOjb
- All Implemented Interfaces:
- KimRoleDao, PlatformAwareDao, org.springframework.beans.factory.InitializingBean
public class KimRoleDaoOjb
- extends PlatformAwareDaoBaseOjb
- implements KimRoleDao
This is a description of what this class does - jonathan don't forget to fill
this in.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
private void |
addEqualToCriteria(org.apache.ojb.broker.query.Criteria criteria,
String propertyName,
String propertyValue)
|
private void |
addLikeToCriteria(org.apache.ojb.broker.query.Criteria criteria,
String propertyName,
String propertyValue)
|
private void |
addSubCriteriaBasedOnRoleQualification(org.apache.ojb.broker.query.Criteria c,
AttributeSet qualification)
Adds SubCriteria to the Query Criteria using the role qualification passed in |
private String[] |
getCaseInsensitiveValues(String propertyName,
String propertyValue)
|
List<KimDelegationMemberImpl> |
getDelegationGroupsForGroupIdsAndDelegationIds(Collection<String> delegationIds,
List<String> groupIds)
This overridden method ... |
Map<String,KimDelegationImpl> |
getDelegationImplMapFromRoleIds(Collection<String> roleIds)
|
List<KimDelegationImpl> |
getDelegationImplsForRoleIds(Collection<String> roleIds)
|
Map<String,List<KimDelegationMemberImpl>> |
getDelegationMembersForDelegationIds(List<String> delegationIds)
|
List<KimDelegationMemberImpl> |
getDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds,
String principalId)
This overridden method ... |
List<GroupMembershipInfo> |
getGroupMembers(Collection<String> groupIds)
|
List<GroupMembershipInfo> |
getGroupPrincipalsForPrincipalIdAndGroupIds(Collection<String> groupIds,
String principalId)
|
private List<String> |
getPrincipalIdsForPrincipalName(String principalName)
|
List<RoleMemberImpl> |
getRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds,
Collection<String> groupIds,
AttributeSet qualification)
|
private List<String> |
getRoleIdsForPrincipalName(String value)
|
protected List<RoleMemberImpl> |
getRoleMemberImpls(Map<String,String> fieldValues)
|
List<RoleMembershipInfo> |
getRoleMembers(Map<String,String> fieldValues)
|
List<RoleMemberCompleteInfo> |
getRoleMembersCompleteInfo(Map<String,String> fieldValues)
|
List<RoleMemberImpl> |
getRoleMembersForRoleIds(Collection<String> roleIds,
String memberTypeCode,
AttributeSet qualification)
|
List<RoleMemberImpl> |
getRoleMembersForRoleIdsWithFilters(Collection<String> roleIds,
String principalId,
List<String> groupIds,
AttributeSet qualification)
|
private List<String> |
getRoleMembersGroupIds(String memberNamespaceCode,
String memberName)
|
List<RoleMemberImpl> |
getRoleMembershipsForMemberId(String memberType,
String memberId,
AttributeSet qualification)
|
List<RoleMemberImpl> |
getRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds,
AttributeSet qualification)
|
private List<RoleImpl> |
getRoleMembersRoles(String memberNamespaceCode,
String memberName)
|
List<RoleMemberImpl> |
getRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds,
String principalId,
AttributeSet qualification)
Returns a list of all the active RoleMemberImpl objects for the given principal and set of role IDs. |
List<RoleImpl> |
getRoles(Map<String,String> fieldValues)
|
private boolean |
hasCoreRoleMemberCriteria(Map<String,String> fieldValues)
|
private boolean |
hasExtraRoleMemberCriteria(Map<String,String> fieldValues)
|
private void |
setupAttrCriteria(org.apache.ojb.broker.query.Criteria crit,
Map<String,String> attrCrit,
String kimTypeId)
|
private Map |
setupCritMaps(Map<String,String> fieldValues)
|
private org.apache.ojb.broker.query.ReportQueryByCriteria |
setupGroupCriteria(Map<String,String> groupCrit)
|
private org.apache.ojb.broker.query.ReportQueryByCriteria |
setupPermCriteria(Map<String,String> permCrit)
|
private org.apache.ojb.broker.query.ReportQueryByCriteria |
setupRespCriteria(Map<String,String> respCrit)
|
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport |
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KimRoleDaoOjb
public KimRoleDaoOjb()
addSubCriteriaBasedOnRoleQualification
private void addSubCriteriaBasedOnRoleQualification(org.apache.ojb.broker.query.Criteria c,
AttributeSet qualification)
- Adds SubCriteria to the Query Criteria using the role qualification passed in
- Parameters:
c
- The Query Criteria object to be usedqualification
- The role qualification
getRolePrincipalsForPrincipalIdAndRoleIds
public List<RoleMemberImpl> getRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds,
String principalId,
AttributeSet qualification)
- Description copied from interface:
KimRoleDao
- Returns a list of all the active RoleMemberImpl objects for the given principal and set of role IDs.
If the roleIds parameter is null, all RoleMemberImpls for the principal are returned.
- Specified by:
getRolePrincipalsForPrincipalIdAndRoleIds
in interface KimRoleDao
- See Also:
KimRoleDao.getRolePrincipalsForPrincipalIdAndRoleIds(java.util.Collection,
java.lang.String, org.kuali.rice.kim.bo.types.dto.AttributeSet)
getGroupPrincipalsForPrincipalIdAndGroupIds
public List<GroupMembershipInfo> getGroupPrincipalsForPrincipalIdAndGroupIds(Collection<String> groupIds,
String principalId)
- Specified by:
getGroupPrincipalsForPrincipalIdAndGroupIds
in interface KimRoleDao
- See Also:
org.kuali.rice.kim.dao.KimRoleDao#getRolePrincipalsForPrincipalIdAndRoleIds(java.util.Collection,
java.lang.String)
getGroupMembers
public List<GroupMembershipInfo> getGroupMembers(Collection<String> groupIds)
- Specified by:
getGroupMembers
in interface KimRoleDao
- See Also:
org.kuali.rice.kim.dao.KimRoleDao#getRolePrincipalsForPrincipalIdAndRoleIds(java.util.Collection,
java.lang.String)
getRoleGroupsForGroupIdsAndRoleIds
public List<RoleMemberImpl> getRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds,
Collection<String> groupIds,
AttributeSet qualification)
- Specified by:
getRoleGroupsForGroupIdsAndRoleIds
in interface KimRoleDao
- See Also:
KimRoleDao.getRoleGroupsForGroupIdsAndRoleIds(java.util.Collection,
java.util.Collection, org.kuali.rice.kim.bo.types.dto.AttributeSet)
getDelegationImplMapFromRoleIds
public Map<String,KimDelegationImpl> getDelegationImplMapFromRoleIds(Collection<String> roleIds)
- Specified by:
getDelegationImplMapFromRoleIds
in interface KimRoleDao
getDelegationImplsForRoleIds
public List<KimDelegationImpl> getDelegationImplsForRoleIds(Collection<String> roleIds)
- Specified by:
getDelegationImplsForRoleIds
in interface KimRoleDao
getDelegationPrincipalsForPrincipalIdAndDelegationIds
public List<KimDelegationMemberImpl> getDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds,
String principalId)
- This overridden method ...
- Specified by:
getDelegationPrincipalsForPrincipalIdAndDelegationIds
in interface KimRoleDao
- See Also:
KimRoleDao.getDelegationPrincipalsForPrincipalIdAndDelegationIds(java.util.Collection,
java.lang.String)
getDelegationGroupsForGroupIdsAndDelegationIds
public List<KimDelegationMemberImpl> getDelegationGroupsForGroupIdsAndDelegationIds(Collection<String> delegationIds,
List<String> groupIds)
- This overridden method ...
- Specified by:
getDelegationGroupsForGroupIdsAndDelegationIds
in interface KimRoleDao
- See Also:
KimRoleDao.getDelegationGroupsForGroupIdsAndDelegationIds(java.util.Collection,
java.util.List)
getRoleMembersForRoleIds
public List<RoleMemberImpl> getRoleMembersForRoleIds(Collection<String> roleIds,
String memberTypeCode,
AttributeSet qualification)
- Specified by:
getRoleMembersForRoleIds
in interface KimRoleDao
- See Also:
KimRoleDao.getRoleMembersForRoleIds(Collection, String, org.kuali.rice.kim.bo.types.dto.AttributeSet)
getRoleMembershipsForRoleIdsAsMembers
public List<RoleMemberImpl> getRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds,
AttributeSet qualification)
- Specified by:
getRoleMembershipsForRoleIdsAsMembers
in interface KimRoleDao
- See Also:
KimRoleDao.getRoleMembersForRoleIds(Collection, String, org.kuali.rice.kim.bo.types.dto.AttributeSet)
getRoleMembershipsForMemberId
public List<RoleMemberImpl> getRoleMembershipsForMemberId(String memberType,
String memberId,
AttributeSet qualification)
- Specified by:
getRoleMembershipsForMemberId
in interface KimRoleDao
- See Also:
KimRoleDao.getRoleMembersForRoleIds(Collection, String, org.kuali.rice.kim.bo.types.dto.AttributeSet)
getRoleMembersForRoleIdsWithFilters
public List<RoleMemberImpl> getRoleMembersForRoleIdsWithFilters(Collection<String> roleIds,
String principalId,
List<String> groupIds,
AttributeSet qualification)
- Specified by:
getRoleMembersForRoleIdsWithFilters
in interface KimRoleDao
getDelegationMembersForDelegationIds
public Map<String,List<KimDelegationMemberImpl>> getDelegationMembersForDelegationIds(List<String> delegationIds)
- Specified by:
getDelegationMembersForDelegationIds
in interface KimRoleDao
- See Also:
KimRoleDao.getDelegationMembersForDelegationIds(java.util.List)
getRoles
public List<RoleImpl> getRoles(Map<String,String> fieldValues)
- Specified by:
getRoles
in interface KimRoleDao
getPrincipalIdsForPrincipalName
private List<String> getPrincipalIdsForPrincipalName(String principalName)
getRoleIdsForPrincipalName
private List<String> getRoleIdsForPrincipalName(String value)
setupCritMaps
private Map setupCritMaps(Map<String,String> fieldValues)
setupAttrCriteria
private void setupAttrCriteria(org.apache.ojb.broker.query.Criteria crit,
Map<String,String> attrCrit,
String kimTypeId)
setupPermCriteria
private org.apache.ojb.broker.query.ReportQueryByCriteria setupPermCriteria(Map<String,String> permCrit)
setupRespCriteria
private org.apache.ojb.broker.query.ReportQueryByCriteria setupRespCriteria(Map<String,String> respCrit)
setupGroupCriteria
private org.apache.ojb.broker.query.ReportQueryByCriteria setupGroupCriteria(Map<String,String> groupCrit)
addLikeToCriteria
private void addLikeToCriteria(org.apache.ojb.broker.query.Criteria criteria,
String propertyName,
String propertyValue)
addEqualToCriteria
private void addEqualToCriteria(org.apache.ojb.broker.query.Criteria criteria,
String propertyName,
String propertyValue)
getCaseInsensitiveValues
private String[] getCaseInsensitiveValues(String propertyName,
String propertyValue)
getRoleMemberImpls
protected List<RoleMemberImpl> getRoleMemberImpls(Map<String,String> fieldValues)
getRoleMembers
public List<RoleMembershipInfo> getRoleMembers(Map<String,String> fieldValues)
- Specified by:
getRoleMembers
in interface KimRoleDao
getRoleMembersCompleteInfo
public List<RoleMemberCompleteInfo> getRoleMembersCompleteInfo(Map<String,String> fieldValues)
- Specified by:
getRoleMembersCompleteInfo
in interface KimRoleDao
hasCoreRoleMemberCriteria
private boolean hasCoreRoleMemberCriteria(Map<String,String> fieldValues)
hasExtraRoleMemberCriteria
private boolean hasExtraRoleMemberCriteria(Map<String,String> fieldValues)
getRoleMembersRoles
private List<RoleImpl> getRoleMembersRoles(String memberNamespaceCode,
String memberName)
getRoleMembersGroupIds
private List<String> getRoleMembersGroupIds(String memberNamespaceCode,
String memberName)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.