org.kuali.student.lum.statement.config.context
Class OrganizationContextImpl

java.lang.Object
  extended by org.kuali.student.core.statement.naturallanguage.AbstractContext<ReqComponentInfo>
      extended by org.kuali.student.lum.statement.config.context.BasicContextImpl
          extended by org.kuali.student.lum.statement.config.context.OrganizationContextImpl
All Implemented Interfaces:
Context<ReqComponentInfo>

public class OrganizationContextImpl
extends BasicContextImpl

This class creates the template context for an organization.


Field Summary
static String ORG_TOKEN
           
private  OrganizationService organizationService
           
 
Fields inherited from class org.kuali.student.lum.statement.config.context.BasicContextImpl
INTEGER_VALUE_TOKEN, NL_HELPER_TOKEN, OPERATOR_TOKEN
 
Fields inherited from class org.kuali.student.core.statement.naturallanguage.AbstractContext
FIELDS_TOKEN
 
Constructor Summary
OrganizationContextImpl()
           
 
Method Summary
 Map<String,Object> createContextMap(ReqComponentInfo reqComponent)
          Creates the context map (template data) for the requirement component.
private  OrgInfo getOrganization(String orgId)
           
 void setOrganizationService(OrganizationService organizationService)
           
 
Methods inherited from class org.kuali.student.core.statement.naturallanguage.AbstractContext
getReqComponentFieldMap, getReqComponentFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

organizationService

private OrganizationService organizationService

ORG_TOKEN

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

OrganizationContextImpl

public OrganizationContextImpl()
Method Detail

setOrganizationService

public void setOrganizationService(OrganizationService organizationService)

getOrganization

private OrgInfo getOrganization(String orgId)
                         throws OperationFailedException
Throws:
OperationFailedException

createContextMap

public Map<String,Object> createContextMap(ReqComponentInfo reqComponent)
                                    throws OperationFailedException
Creates the context map (template data) for the requirement component.

Specified by:
createContextMap in interface Context<ReqComponentInfo>
Overrides:
createContextMap in class BasicContextImpl
Parameters:
reqComponent - Requirement component
Throws:
OperationFailedException - Creating context map fails


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.