public class PrintingUtils extends Object
| Constructor and Description |
|---|
PrintingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCommentTypeDescription(String commentTypeCode,
org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
This method will get the comment type description for given comment type
code
|
static org.kuali.rice.location.api.country.Country |
getCountryFromCode(String countryCode,
org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
This method is to get a Country object from the country code
|
static String |
getParameterValue(Class clazz,
String parameter)
This method is used if class is not PD.
|
static String |
getParameterValue(String parameter)
This method fetches system constant parameters
|
static ProposalPerson |
getPrincipalInvestigator(List<ProposalPerson> proposalPersons)
This method is to get PrincipalInvestigator for a given Proposal Development Document
|
static org.kuali.rice.location.api.state.State |
getStateFromName(String countryAlternateCode,
String stateName)
This method is to get a State object from the state name
|
static ArrayList<Source> |
getXSLTforReport(String reportType)
|
static ArrayList<Source> |
getXSLTforReportTemplate(String reportTemplate) |
static void |
streamToResponse(AttachmentDataSource attachmentDataSource,
javax.servlet.http.HttpServletResponse response) |
static void |
streamToResponse(byte[] fileContents,
String fileName,
String fileContentType,
javax.servlet.http.HttpServletResponse response) |
public static String getParameterValue(String parameter)
parameter - String for which value must be fetchedS2SUtilService.getParameterValue(java.lang.String)public static String getParameterValue(Class clazz, String parameter)
clazz - parameter - public static org.kuali.rice.location.api.state.State getStateFromName(String countryAlternateCode, String stateName)
stateName - Name of the stateorg.kuali.kra.s2s.service.S2SUtilService#getStateFromName(java.lang.String)public static ArrayList<Source> getXSLTforReportTemplate(String reportTemplate)
public static org.kuali.rice.location.api.country.Country getCountryFromCode(String countryCode, org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
countryCode - country code for the country.S2SUtilService.getCountryFromCode(java.lang.String)public static ProposalPerson getPrincipalInvestigator(List<ProposalPerson> proposalPersons)
proposalPersons - Proposal development document.S2SUtilService.getPrincipalInvestigator(org.kuali.kra.proposaldevelopment.document.ProposalDevelopmentDocument)public static String getCommentTypeDescription(String commentTypeCode, org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
commentTypeCode - Code for which description will be fetchedbusinessObjectService - BusinessObjectServicepublic static void streamToResponse(AttachmentDataSource attachmentDataSource, javax.servlet.http.HttpServletResponse response) throws Exception
ExceptionCopyright © 2013 The Kuali Foundation. All Rights Reserved.