org.kuali.kfs.sec.document.web
Class SecAccountingLineGroupImpl

java.lang.Object
  extended by org.kuali.kfs.sys.document.web.DefaultAccountingLineGroupImpl
      extended by org.kuali.kfs.sec.document.web.SecAccountingLineGroupImpl
All Implemented Interfaces:
AccountingLineGroup
Direct Known Subclasses:
CollectionSecAccountingLineGroupImpl

public class SecAccountingLineGroupImpl
extends DefaultAccountingLineGroupImpl

Integrates with access security module to check security on accounting lines before rendering


Field Summary
protected  boolean hasEditRestrictions
           
protected  boolean hasViewRestrictions
           
 
Fields inherited from class org.kuali.kfs.sys.document.web.DefaultAccountingLineGroupImpl
accountingDocument, arbitrarilyHighIndex, canEdit, cellCount, collectionItemPropertyName, collectionPropertyName, containers, displayedErrors, displayedInfo, displayedWarnings, errorKeys, groupDefinition, importLineOverride
 
Constructor Summary
SecAccountingLineGroupImpl()
          Constructs a SecAccountingLineGroupImpl
 
Method Summary
 void initialize(AccountingLineGroupDefinition groupDefinition, AccountingDocument accountingDocument, List<RenderableAccountingLineContainer> containers, String collectionPropertyName, String collectionItemPropertyName, Map<String,Object> displayedErrors, Map<String,Object> displayedWarnings, Map<String,Object> displayedInfo, boolean canEdit)
          Performs access security edit check and sets edit flag on container line to false if access is not allowed or removes container if view is not allowed
protected  void renderErrors(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Adds info message if we have restricted view of any accounting lines and adds an additional key to match on
protected  void renderMessages(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag, String messageKey)
          Helper method for outputting messages
protected  void renderSecurityMessage(javax.servlet.jsp.PageContext pageContext, javax.servlet.jsp.tagext.Tag parentTag)
          Adds info message for any security restrictions that have been applied
 
Methods inherited from class org.kuali.kfs.sys.document.web.DefaultAccountingLineGroupImpl
getAccountingDocument, getCollectionItemPropertyName, getCollectionPropertyName, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getErrorKeys, getErrorRenderer, getGroupDefinition, getRepresentedColumnNumber, getWidthInCells, hasEnoughAccountingLinesForDelete, moveListToMap, renderAccountingLineContainers, renderEverything, renderGroupHeader, renderTotals, setAccountingDocument, setArbitrarilyHighIndex, setCellCount, setCollectionItemPropertyName, setCollectionPropertyName, setDisplayedErrors, setErrorKeys, setGroupDefinition, setImportLineOverride, updateDeletabilityOfAllLines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hasEditRestrictions

protected boolean hasEditRestrictions

hasViewRestrictions

protected boolean hasViewRestrictions
Constructor Detail

SecAccountingLineGroupImpl

public SecAccountingLineGroupImpl()
Constructs a SecAccountingLineGroupImpl

Method Detail

initialize

public void initialize(AccountingLineGroupDefinition groupDefinition,
                       AccountingDocument accountingDocument,
                       List<RenderableAccountingLineContainer> containers,
                       String collectionPropertyName,
                       String collectionItemPropertyName,
                       Map<String,Object> displayedErrors,
                       Map<String,Object> displayedWarnings,
                       Map<String,Object> displayedInfo,
                       boolean canEdit)
Performs access security edit check and sets edit flag on container line to false if access is not allowed or removes container if view is not allowed

Overrides:
initialize in class DefaultAccountingLineGroupImpl
Parameters:
groupDefinition - the data dictionary group definition for this accounting line group
accountingDocument - the document which owns or will own the accounting line being rendered
containers - the containers within this group
collectionPropertyName - the property name of the collection of accounting lines owned by this group
displayedErrors - a Map of errors that have already been displayed
canEdit - determines if the page can be edited or not
See Also:
DefaultAccountingLineGroupImpl.initialize(org.kuali.kfs.sys.document.datadictionary.AccountingLineGroupDefinition, org.kuali.kfs.sys.document.AccountingDocument, java.util.List, java.lang.String, java.lang.String, java.util.Map, java.util.Map, java.util.Map, boolean)

renderErrors

protected void renderErrors(javax.servlet.jsp.PageContext pageContext,
                            javax.servlet.jsp.tagext.Tag parentTag)
                     throws javax.servlet.jsp.JspException
Adds info message if we have restricted view of any accounting lines and adds an additional key to match on

Overrides:
renderErrors in class DefaultAccountingLineGroupImpl
Parameters:
pageContext - the page context where the errors will be rendered on
parentTag - the parent tag requesting the rendering
Throws:
javax.servlet.jsp.JspException
See Also:
DefaultAccountingLineGroupImpl.renderErrors(javax.servlet.jsp.PageContext, javax.servlet.jsp.tagext.Tag)

renderMessages

protected void renderMessages(javax.servlet.jsp.PageContext pageContext,
                              javax.servlet.jsp.tagext.Tag parentTag,
                              String messageKey)
                       throws javax.servlet.jsp.JspException
Helper method for outputting messages

Parameters:
pageContext -
parentTag -
messageKey - - key for messages to display
Throws:
javax.servlet.jsp.JspException

renderSecurityMessage

protected void renderSecurityMessage(javax.servlet.jsp.PageContext pageContext,
                                     javax.servlet.jsp.tagext.Tag parentTag)
                              throws javax.servlet.jsp.JspException
Adds info message for any security restrictions that have been applied

Parameters:
pageContext -
parentTag -
Throws:
javax.servlet.jsp.JspException


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.