org.kuali.rice.krad.kim
Class PermissionDerivedRoleTypeServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
      extended by org.kuali.rice.kns.kim.role.RoleTypeServiceBase
          extended by org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase
              extended by org.kuali.rice.krad.kim.PermissionDerivedRoleTypeServiceImpl
All Implemented Interfaces:
DelegationTypeService, RoleTypeService, KimTypeService

public class PermissionDerivedRoleTypeServiceImpl
extends DerivedRoleTypeServiceBase

This is a description of what this class does - wliang don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
DataDictionaryTypeServiceBase.KimTypeAttributeException, DataDictionaryTypeServiceBase.KimTypeAttributeValidationException
 
Field Summary
 
Fields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
COMMA_SEPARATOR
 
Constructor Summary
PermissionDerivedRoleTypeServiceImpl()
           
 
Method Summary
protected  List<Assignee> getPermissionAssignees(Map<String,String> qualification)
           
protected  PermissionService getPermissionService()
           
 String getPermissionTemplateName()
           
 String getPermissionTemplateNamespace()
           
 List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode, String roleName, Map<String,String> qualification)
          Return an empty list since this method should not be called by the role service for this service type.
 boolean hasDerivedRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String,String> qualification)
          This simple initial implementation just calls #getRoleMembersFromApplicationRole(String, String, Map) and checks the results.
 void setPermissionTemplateName(String permissionTemplateName)
           
 void setPermissionTemplateNamespace(String permissionTemplateNamespace)
           
 
Methods inherited from class org.kuali.rice.kns.kim.role.DerivedRoleTypeServiceBase
isDerivedRoleType
 
Methods inherited from class org.kuali.rice.kns.kim.role.RoleTypeServiceBase
convertQualificationForMemberRoles, doesDelegationQualifierMatchQualification, doesRoleQualifierMatchQualification, dynamicRoleMembership, getMatchingRoleMemberships, getQualifiersForExactMatch, shouldValidateQualifiersForMemberType, sortRoleMembers
 
Methods inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
areAttributesEqual, extractErrorsFromGlobalVariablesErrorMap, getAttributeDefinitions, getAttributeFormatter, getAttributeMaxValue, getAttributeMinValue, getAttributeValidatingExpression, getAttributeValue, getBusinessObjectService, getClosestParentDocumentTypeName, getDataDictionaryAttributeDefinition, getDataDictionaryService, getDictionaryValidationService, getDocumentTypeService, getNonDataDictionaryAttributeDefinition, getRequiredAttributes, getTypeInfoService, getUniqueAttributes, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, isCheckRequiredAttributes, performMatch, translateInputAttributes, validateAttributeFormat, validateAttributeRequired, validateAttributes, validateAttributesAgainstExisting, validateDataDictionaryAttribute, validateDataDictionaryAttribute, validateNonDataDictionaryAttribute, validatePrimitiveFromDescriptor, validateReferencesExistAndActive, validateRequiredAttributesAgainstReceived, validateUniqueAttributes, validateUnmodifiableAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kim.framework.type.KimTypeService
getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributes
 

Constructor Detail

PermissionDerivedRoleTypeServiceImpl

public PermissionDerivedRoleTypeServiceImpl()
Method Detail

getPermissionTemplateNamespace

public String getPermissionTemplateNamespace()
Returns:
the permissionTemplateNamespace

setPermissionTemplateNamespace

public void setPermissionTemplateNamespace(String permissionTemplateNamespace)
Parameters:
permissionTemplateNamespace - the permissionTemplateNamespace to set

getPermissionTemplateName

public String getPermissionTemplateName()
Returns:
the permissionTemplateName

setPermissionTemplateName

public void setPermissionTemplateName(String permissionTemplateName)
Parameters:
permissionTemplateName - the permissionTemplateName to set

getPermissionAssignees

protected List<Assignee> getPermissionAssignees(Map<String,String> qualification)

getRoleMembersFromDerivedRole

public List<RoleMembership> getRoleMembersFromDerivedRole(String namespaceCode,
                                                          String roleName,
                                                          Map<String,String> qualification)
Description copied from class: RoleTypeServiceBase
Return an empty list since this method should not be called by the role service for this service type. Subclasses which are application role types should override this method.

Specified by:
getRoleMembersFromDerivedRole in interface RoleTypeService
Overrides:
getRoleMembersFromDerivedRole in class DerivedRoleTypeServiceBase

hasDerivedRole

public boolean hasDerivedRole(String principalId,
                              List<String> groupIds,
                              String namespaceCode,
                              String roleName,
                              Map<String,String> qualification)
Description copied from class: RoleTypeServiceBase
This simple initial implementation just calls #getRoleMembersFromApplicationRole(String, String, Map) and checks the results.

Specified by:
hasDerivedRole in interface RoleTypeService
Overrides:
hasDerivedRole in class RoleTypeServiceBase
Parameters:
principalId - the principalId. cannot be null or blank.
groupIds - the groupIds the principal is a member of. cannot be null.
namespaceCode - the namespace code the role is in. cannot be blank or null.
roleName - the name of the role. cannot be blank or null.
qualification - the qualification. cannot be null.
Returns:
if the principal has a derived role.

getPermissionService

protected PermissionService getPermissionService()
Returns:
the documentService


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.