org.kuali.student.lum.workflow.qualifierresolver
Class AbstractOrganizationServiceQualifierResolver

java.lang.Object
  extended by org.kuali.student.lum.workflow.qualifierresolver.AbstractOrganizationServiceQualifierResolver
All Implemented Interfaces:
QualifierResolver
Direct Known Subclasses:
CocOrganizationQualifierResolver, CocOrgTypeQualifierResolver, OrganizationCurriculumCommitteeQualifierResolver, OrganizationQualifierResolver, ParentOrganizationQualifierResolver, StaticOrganizationQualifierResolver

public abstract class AbstractOrganizationServiceQualifierResolver
extends Object
implements QualifierResolver

An abstract base class that consolidates convenience methods for using the OrganizationService class.


Field Summary
protected static String DOCUMENT_CONTENT_XML_DEFAULT_ORG_ID_KEY
           
protected static String DOCUMENT_CONTENT_XML_ORG_ID_KEY
           
static String DOCUMENT_CONTENT_XML_ROOT_ELEMENT_NAME
           
static String KUALI_ORG_COC
           
static String KUALI_ORG_COLLEGE
           
static String KUALI_ORG_DEPARTMENT
           
static String KUALI_ORG_DIVISION
           
static String KUALI_ORG_HIERARCHY_CURRICULUM
           
static String KUALI_ORG_PROGRAM
           
static String KUALI_ORG_TYPE_CURRICULUM_PARENT
           
 
Constructor Summary
AbstractOrganizationServiceQualifierResolver()
           
 
Method Summary
protected  List<Map<String,String>> attributeSetFromSearchResult(List<SearchResultRowInfo> results, String orgIdKey)
           
protected  String getOrganizationIdDocumentContentFieldKey(RouteContext context)
           
protected  Set<String> getOrganizationIdsFromDocumentContent(RouteContext context)
          Method to fetch the organization ids from the KEW document content XML
protected  OrganizationService getOrganizationService()
           
protected  List<SearchResultRowInfo> relatedOrgsFromOrgId(String orgId, String relationType, String relatedOrgType)
           
protected  void setOrganizationService(OrganizationService orgSvc)
           
 
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.kew.role.QualifierResolver
resolve
 

Field Detail

DOCUMENT_CONTENT_XML_DEFAULT_ORG_ID_KEY

protected static final String DOCUMENT_CONTENT_XML_DEFAULT_ORG_ID_KEY
See Also:
Constant Field Values

DOCUMENT_CONTENT_XML_ORG_ID_KEY

protected static final String DOCUMENT_CONTENT_XML_ORG_ID_KEY
See Also:
Constant Field Values

DOCUMENT_CONTENT_XML_ROOT_ELEMENT_NAME

public static final String DOCUMENT_CONTENT_XML_ROOT_ELEMENT_NAME
See Also:
Constant Field Values

KUALI_ORG_TYPE_CURRICULUM_PARENT

public static final String KUALI_ORG_TYPE_CURRICULUM_PARENT
See Also:
Constant Field Values

KUALI_ORG_HIERARCHY_CURRICULUM

public static final String KUALI_ORG_HIERARCHY_CURRICULUM
See Also:
Constant Field Values

KUALI_ORG_DEPARTMENT

public static final String KUALI_ORG_DEPARTMENT
See Also:
Constant Field Values

KUALI_ORG_COLLEGE

public static final String KUALI_ORG_COLLEGE
See Also:
Constant Field Values

KUALI_ORG_COC

public static final String KUALI_ORG_COC
See Also:
Constant Field Values

KUALI_ORG_DIVISION

public static final String KUALI_ORG_DIVISION
See Also:
Constant Field Values

KUALI_ORG_PROGRAM

public static final String KUALI_ORG_PROGRAM
See Also:
Constant Field Values
Constructor Detail

AbstractOrganizationServiceQualifierResolver

public AbstractOrganizationServiceQualifierResolver()
Method Detail

getOrganizationService

protected OrganizationService getOrganizationService()

setOrganizationService

protected void setOrganizationService(OrganizationService orgSvc)

getOrganizationIdsFromDocumentContent

protected Set<String> getOrganizationIdsFromDocumentContent(RouteContext context)
Method to fetch the organization ids from the KEW document content XML

Parameters:
context - - RouteContext class that holds data about the current document's routing and data
Returns:
A list of organization ids that are listed in the XML (may have duplicates if duplicates are allowed by KS code)

getOrganizationIdDocumentContentFieldKey

protected String getOrganizationIdDocumentContentFieldKey(RouteContext context)

relatedOrgsFromOrgId

protected List<SearchResultRowInfo> relatedOrgsFromOrgId(String orgId,
                                                         String relationType,
                                                         String relatedOrgType)

attributeSetFromSearchResult

protected List<Map<String,String>> attributeSetFromSearchResult(List<SearchResultRowInfo> results,
                                                                String orgIdKey)


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