|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.service.impl.AccountingLineRenderingServiceImpl
public class AccountingLineRenderingServiceImpl
The default implementation of the AccountingLineRenderingService
Field Summary | |
---|---|
protected String |
KUALI_FORM_NAME
|
Constructor Summary | |
---|---|
AccountingLineRenderingServiceImpl()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String KUALI_FORM_NAME
Constructor Detail |
---|
public AccountingLineRenderingServiceImpl()
Method Detail |
---|
public void performPreTablificationTransformations(List<TableJoining> elements, AccountingLineGroupDefinition groupDefinition, AccountingDocument accountingDocument, AccountingLine accountingLine, boolean newLine, Map unconvertedValues, String accountingLinePropertyName)
AccountingLineRenderingService
performPreTablificationTransformations
in interface AccountingLineRenderingService
elements
- 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.kfs.sys.document.datadictionary.AccountingLineGroupDefinition, org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.sys.businessobject.AccountingLine, boolean, java.util.Map, java.lang.String)
public void performPostTablificationTransformations(List<AccountingLineTableRow> rows, AccountingLineGroupDefinition groupDefinition, AccountingDocument document, AccountingLine accountingLine, boolean newLine)
AccountingLineRenderingService
performPostTablificationTransformations
in interface AccountingLineRenderingService
rows
- 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.kfs.sys.document.datadictionary.AccountingLineGroupDefinition, org.kuali.kfs.sys.document.AccountingDocument, org.kuali.kfs.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 for
protected FinancialSystemTransactionalDocumentPresentationController getPresentationController(AccountingDocument document)
document
- the document to get the presentation controller for
public List<AccountingLineTableRow> tablify(List<TableJoining> elements)
tablify
in interface AccountingLineRenderingService
elements
- renderable elements to find table form for
AccountingLineRenderingService.tablify(java.util.List)
protected int getMaxRowCount(List<TableJoining> elements)
elements
- the elements to turn into table rows
protected List<AccountingLineTableRow> createBlankTableRows(int count)
count
- the count of table rows
protected 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)
AccountingLineRenderingService
getFieldRendererForField
in interface AccountingLineRenderingService
AccountingLineRenderingService.getFieldRendererForField(org.kuali.rice.kns.web.ui.Field, org.kuali.kfs.sys.businessobject.AccountingLine)
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 rendered
public AccountingLineViewFieldDefinition createGenericAccountingLineViewFieldDefinition(org.kuali.rice.kns.datadictionary.MaintainableFieldDefinition currentDefinition)
AccountingLineRenderingService
createGenericAccountingLineViewFieldDefinition
in interface AccountingLineRenderingService
currentDefinition
- the field definition to create a generic accounting line view field version of
AccountingLineRenderingService.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)
AccountingLineRenderingService
findForm
in interface AccountingLineRenderingService
pageContext
- the pageContext to find the form in
AccountingLineRenderingService.findForm(javax.servlet.jsp.PageContext)
protected org.kuali.rice.kns.service.DocumentHelperService getDocumentHelperService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |