public class AccountingLineRenderingServiceImpl extends Object implements AccountingLineRenderingService
| Modifier and Type | Field and Description |
|---|---|
protected String |
KUALI_FORM_NAME |
| Constructor and Description |
|---|
AccountingLineRenderingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected List<AccountingLineTableRow> |
createBlankTableRows(int count)
This method creates a List of blank table rows, based on the requested count
|
AccountingLineViewFieldDefinition |
createGenericAccountingLineViewFieldDefinition(org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition currentDefinition)
Begins to create an AccountingLineViewFieldDefinition, based on the information held within the given MaintainableFieldDefinition
|
KualiAccountingDocumentFormBase |
findForm(javax.servlet.jsp.PageContext pageContext)
Looks in likely places to find the form that is used by the page context for rendering an accounting document
|
AccountingLineAuthorizationTransformer |
getAccountingLineAuthorizationTransformer()
Gets the accountingLineAuthorizationTransformer attribute.
|
org.kuali.rice.kns.service.DataDictionaryService |
getDataDictionaryService()
Gets the dataDictionaryService attribute.
|
protected FinancialSystemTransactionalDocumentAuthorizerBase |
getDocumentAuthorizer(AccountingDocument document)
Creates an accounting document authorizer for the given accounting document
|
protected org.kuali.rice.kns.service.DocumentHelperService |
getDocumentHelperService() |
FieldRenderer |
getFieldRendererForField(org.kuali.rice.kns.web.ui.Field field,
AccountingLine accountingLineToRender)
Based on the control type of the field, returns a proper field renderer
|
List<AccountingLineFieldRenderingTransformation> |
getFieldTransformations()
Gets the fieldTransformations attribute.
|
protected int |
getMaxRowCount(List<TableJoining> elements)
Gets the maximum number of rows needed by any child element
|
List<AccountingLineTableTransformation> |
getPostTablificationTransformations()
Gets the postTablificationTransformations attribute.
|
protected FinancialSystemTransactionalDocumentPresentationController |
getPresentationController(AccountingDocument document) |
List<AccountingLineRenderingTransformation> |
getPreTablificationTransformations()
Gets the preTablificationTransformations attribute.
|
protected void |
performAuthorizationTransformations(List<TableJoining> elements,
AccountingLineGroupDefinition accountingLineGroupDefinition,
AccountingDocument accountingDocument,
AccountingLine accountingLine,
boolean newLine,
String accountingLinePropertyName)
Performs the authorization transformations
|
protected void |
performFieldTransformations(List<TableJoining> elements,
AccountingDocument accountingDocument,
AccountingLine accountingLine,
Map unconvertedValues)
Performs field transformations for pre-rendering
|
void |
performPostTablificationTransformations(List<AccountingLineTableRow> rows,
AccountingLineGroupDefinition groupDefinition,
AccountingDocument document,
AccountingLine accountingLine,
boolean newLine)
Performs any transformations that should happen after tablification
|
void |
performPreTablificationTransformations(List<TableJoining> elements,
AccountingLineGroupDefinition groupDefinition,
AccountingDocument accountingDocument,
AccountingLine accountingLine,
boolean newLine,
Map unconvertedValues,
String accountingLinePropertyName)
Performs any known transformations against the List of AccountingLineViewRenderableElements
|
void |
setAccountingLineAuthorizationTransformer(AccountingLineAuthorizationTransformer accountingLineAuthorizationTransformer)
Sets the accountingLineAuthorizationTransformer attribute value.
|
void |
setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
Sets the dataDictionaryService attribute value.
|
void |
setFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations)
Sets the fieldTransformations attribute value.
|
void |
setPostTablificationTransformations(List<AccountingLineTableTransformation> postTablificationTransformations)
Sets the postTablificationTransformations attribute value.
|
void |
setPreTablificationTransformations(List<AccountingLineRenderingTransformation> preTablificationTransformations)
Sets the preTablificationTransformations attribute value.
|
List<AccountingLineTableRow> |
tablify(List<TableJoining> elements)
Simplify the tree so that it is made up of only table elements and fields
|
protected void |
tablifyElements(List<TableJoining> elements,
List<AccountingLineTableRow> rows)
Requests each of the given elements to join the table
|
protected boolean |
usesDateValidation(String propertyName,
Object businessObject)
Determines if this method uses a date validation pattern, in which case, a date picker should be rendered
|
protected final String KUALI_FORM_NAME
public AccountingLineRenderingServiceImpl()
public void performPreTablificationTransformations(List<TableJoining> elements, AccountingLineGroupDefinition groupDefinition, AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, Map unconvertedValues, String accountingLinePropertyName)
AccountingLineRenderingServiceperformPreTablificationTransformations in interface AccountingLineRenderingServiceelements - the List of elements to transformaccountingDocument - the Accounting Document we're rendering lines fromaccountingLine - the line we're renderingnewLine - true if what is being rendered is the new line in the form; false otherwiseunconvertedValues - any unconverted values stored in the formaccountingLinePropertyName - the property path to this accounting lineAccountingLineRenderingService.performPreTablificationTransformations(java.util.List, org.kuali.ole.sys.document.datadictionary.AccountingLineGroupDefinition, org.kuali.ole.sys.document.AccountingDocument, org.kuali.ole.sys.businessobject.AccountingLine, boolean, java.util.Map, java.lang.String)public void performPostTablificationTransformations(List<AccountingLineTableRow> rows, AccountingLineGroupDefinition groupDefinition, AccountingDocument document, AccountingLine accountingLine, boolean newLine)
AccountingLineRenderingServiceperformPostTablificationTransformations in interface AccountingLineRenderingServicerows - the tablified rowsgroupDefinition - the data dictionary definition of the group to renderdocument - the Accounting Document we're rendering lines fromaccountingLine - the line we're rendering the line which is being renderednewLine - true if what is being rendered is the new line in the form; false otherwiseAccountingLineRenderingService.performPostTablificationTransformations(java.util.List, org.kuali.ole.sys.document.datadictionary.AccountingLineGroupDefinition, org.kuali.ole.sys.document.AccountingDocument, org.kuali.ole.sys.businessobject.AccountingLine, boolean)protected void performAuthorizationTransformations(List<TableJoining> elements, AccountingLineGroupDefinition accountingLineGroupDefinition, AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, String accountingLinePropertyName)
elements - the layout elements which we are authorizingaccountingLineGroupDefinition - the data dictionary definition of the accounting line groupaccountingDocument - the accounting line document we're rendering accounting lines foraccountingLine - the accounting line we're renderingnewLine - true if the accounting line is not yet on the form yet, false otherwiseprotected void performFieldTransformations(List<TableJoining> elements, AccountingDocument accountingDocument, AccountingLine accountingLine, Map unconvertedValues)
elements - the layout elements that hold fields to transformaccountingDocument - the accounting document with the line we are renderingaccountingLine - the accounting line we are renderingunconvertedValues - any unconverted valuesprotected FinancialSystemTransactionalDocumentAuthorizerBase getDocumentAuthorizer(AccountingDocument document)
document - the document to get an authorizer forprotected FinancialSystemTransactionalDocumentPresentationController getPresentationController(AccountingDocument document)
document - the document to get the presentation controller forpublic List<AccountingLineTableRow> tablify(List<TableJoining> elements)
tablify in interface AccountingLineRenderingServiceelements - renderable elements to find table form forAccountingLineRenderingService.tablify(java.util.List)protected int getMaxRowCount(List<TableJoining> elements)
elements - the elements to turn into table rowsprotected List<AccountingLineTableRow> createBlankTableRows(int count)
count - the count of table rowsprotected void tablifyElements(List<TableJoining> elements, List<AccountingLineTableRow> rows)
elements - the elements to join to the tablerows - the table rows to join topublic FieldRenderer getFieldRendererForField(org.kuali.rice.kns.web.ui.Field field, AccountingLine accountingLineToRender)
AccountingLineRenderingServicegetFieldRendererForField in interface AccountingLineRenderingServiceKRAD Conversion: Performs customization of the renderer based on the properties of the fields.protected boolean usesDateValidation(String propertyName, Object businessObject)
propertyName - the property of the field being checked from the command lineaccountingLineToRender - the accounting line which is being renderedpublic AccountingLineViewFieldDefinition createGenericAccountingLineViewFieldDefinition(org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition currentDefinition)
AccountingLineRenderingServicecreateGenericAccountingLineViewFieldDefinition in interface AccountingLineRenderingServicecurrentDefinition - the field definition to create a generic accounting line view field version ofAccountingLineRenderingService.createGenericAccountingLineViewFieldDefinition(org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition)public List<AccountingLineFieldRenderingTransformation> getFieldTransformations()
public void setFieldTransformations(List<AccountingLineFieldRenderingTransformation> fieldTransformations)
fieldTransformations - The fieldTransformations to set.public AccountingLineAuthorizationTransformer getAccountingLineAuthorizationTransformer()
public void setAccountingLineAuthorizationTransformer(AccountingLineAuthorizationTransformer accountingLineAuthorizationTransformer)
accountingLineAuthorizationTransformer - The accountingLineAuthorizationTransformer to set.public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
dataDictionaryService - The dataDictionaryService to set.public List<AccountingLineTableTransformation> getPostTablificationTransformations()
public void setPostTablificationTransformations(List<AccountingLineTableTransformation> postTablificationTransformations)
postTablificationTransformations - The postTablificationTransformations to set.public List<AccountingLineRenderingTransformation> getPreTablificationTransformations()
public void setPreTablificationTransformations(List<AccountingLineRenderingTransformation> preTablificationTransformations)
preTablificationTransformations - The preTablificationTransformations to set.public KualiAccountingDocumentFormBase findForm(javax.servlet.jsp.PageContext pageContext)
AccountingLineRenderingServicefindForm in interface AccountingLineRenderingServicepageContext - the pageContext to find the form inAccountingLineRenderingService.findForm(javax.servlet.jsp.PageContext)protected org.kuali.rice.kns.service.DocumentHelperService getDocumentHelperService()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.