org.kuali.rice.kns.web.ui
Class SectionBridge

java.lang.Object
  extended by org.kuali.rice.kns.web.ui.SectionBridge

Deprecated. KNS Struts deprecated, use KRAD and the Spring MVC framework.

@Deprecated
public class SectionBridge
extends Object


Constructor Summary
SectionBridge()
          Deprecated.  
 
Method Summary
protected static void applyInquiryFieldAuthorizations(Field field, InquiryRestrictions inquiryRestrictions)
          Deprecated.  
static List<Row> getContainerRows(Section s, CollectionDefinitionI collectionDefinition, BusinessObject o, Maintainable m, Maintainable oldMaintainable, List<String> displayedFieldNames, Set<String> conditionallyRequiredMaintenanceFields, StringBuffer containerRowErrorKey, int numberOfColumns, Inquirable inquirable)
          Deprecated.  
static List<Row> getContainerRows(Section s, CollectionDefinitionI collectionDefinition, BusinessObject o, Maintainable m, Maintainable oldMaintainable, List<String> displayedFieldNames, Set<String> conditionallyRequiredMaintenanceFields, StringBuffer containerRowErrorKey, String parents, boolean hideAdd, int numberOfColumns, Inquirable inquirable)
          Deprecated. Builds a list of Rows with Fields of type containers for a many section.
static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
          Deprecated.  
protected static boolean isRowHiddenForInquiry(BusinessObject lineBusinessObject, Inquirable inquirable, String collectionName)
          Deprecated. Determines whether a business object is hidden on an inquiry screen.
protected static boolean isRowHiddenForMaintenanceDocument(BusinessObject lineBusinessObject, BusinessObject oldLineBusinessObject, Maintainable newMaintainable, String collectionName)
          Deprecated. Determines whether a business object is hidden on a maintenance document.
protected static boolean isRowHideableForInquiry(BusinessObject lineBusinessObject)
          Deprecated. Determines whether a business object is hidable on an inquiry screen.
protected static boolean isRowHideableForMaintenanceDocument(BusinessObject lineBusinessObject, BusinessObject oldLineBusinessObject)
          Deprecated. Determines whether a business object is hidable on a maintenance document.
static Section toSection(Inquirable inquirable, InquirySectionDefinition sd, BusinessObject o, InquiryRestrictions auths)
          Deprecated. This method creates a Section for display on an Inquiry Screen.
static Section toSection(MaintainableSectionDefinition sd, BusinessObject o, Maintainable maintainable, Maintainable oldMaintainable, String maintenanceAction, List<String> displayedFieldNames, Set<String> conditionallyRequiredMaintenanceFields)
          Deprecated. This method creates a Section for a MaintenanceDocument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionBridge

public SectionBridge()
Deprecated. 
Method Detail

toSection

public static final Section toSection(Inquirable inquirable,
                                      InquirySectionDefinition sd,
                                      BusinessObject o,
                                      InquiryRestrictions auths)
Deprecated. 
This method creates a Section for display on an Inquiry Screen.

Parameters:
sd - The DD definition from which to construct the Section.
o - The BusinessObject from which to populate the Section values.
Returns:
A populated Section.

applyInquiryFieldAuthorizations

protected static final void applyInquiryFieldAuthorizations(Field field,
                                                            InquiryRestrictions inquiryRestrictions)
Deprecated. 

toSection

public static final Section toSection(MaintainableSectionDefinition sd,
                                      BusinessObject o,
                                      Maintainable maintainable,
                                      Maintainable oldMaintainable,
                                      String maintenanceAction,
                                      List<String> displayedFieldNames,
                                      Set<String> conditionallyRequiredMaintenanceFields)
                               throws InstantiationException,
                                      IllegalAccessException
Deprecated. 
This method creates a Section for a MaintenanceDocument.

Parameters:
sd - The DD definition of the Section.
o - The BusinessObject from which the Section will be populated.
maintainable -
maintenanceAction - The action (new, newwithexisting, copy, edit, etc) requested from the UI.
autoFillDefaultValues - Should default values be auto-filled?
autoFillBlankRequiredValues - Should required values left blank on the UI be auto-filled?
displayedFieldNames - What fields are displayed on the UI?
Returns:
A populated Section.
Throws:
InstantiationException
IllegalAccessException

getContainerRows

public static final List<Row> getContainerRows(Section s,
                                               CollectionDefinitionI collectionDefinition,
                                               BusinessObject o,
                                               Maintainable m,
                                               Maintainable oldMaintainable,
                                               List<String> displayedFieldNames,
                                               Set<String> conditionallyRequiredMaintenanceFields,
                                               StringBuffer containerRowErrorKey,
                                               int numberOfColumns,
                                               Inquirable inquirable)
Deprecated. 
See Also:
#getContainerRows(Section, CollectionDefinitionI, BusinessObject, Maintainable, List, StringBuffer, String, boolean, int)

getContainerRows

public static final List<Row> getContainerRows(Section s,
                                               CollectionDefinitionI collectionDefinition,
                                               BusinessObject o,
                                               Maintainable m,
                                               Maintainable oldMaintainable,
                                               List<String> displayedFieldNames,
                                               Set<String> conditionallyRequiredMaintenanceFields,
                                               StringBuffer containerRowErrorKey,
                                               String parents,
                                               boolean hideAdd,
                                               int numberOfColumns,
                                               Inquirable inquirable)
Deprecated. 
Builds a list of Rows with Fields of type containers for a many section.

Parameters:
s - The Section containing the Collection/Container.
collectionDefinition - The DD definition of the Collection.
o - The BusinessObject from which the Container/Collection will be populated.
m - The Maintainable for the BO (needed by some methods called on FieldBridge, FieldUtils etc.)
displayedFieldNames -
containerRowErrorKey - The error key for the Container/Collection.
parents -
hideAdd - Should the add line be added to the Container/Collection?
numberOfColumns - In how many columns in the UI will the fields in the Container/Collection be shown?
Returns:

isRowHideableForMaintenanceDocument

protected static boolean isRowHideableForMaintenanceDocument(BusinessObject lineBusinessObject,
                                                             BusinessObject oldLineBusinessObject)
Deprecated. 
Determines whether a business object is hidable on a maintenance document. Hidable means that if the user chose to hide the inactive elements in the collection in which the passed in BOs reside, then the BOs would be hidden

Parameters:
lineBusinessObject - the BO in the new maintainable, should be of type PersistableBusinessObject and Inquirable
oldLineBusinessObject - the corresponding BO in the old maintainable, should be of type PersistableBusinessObject and Inquirable
Returns:
whether the BOs are eligible to be hidden if the user decides to hide them

isRowHiddenForMaintenanceDocument

protected static boolean isRowHiddenForMaintenanceDocument(BusinessObject lineBusinessObject,
                                                           BusinessObject oldLineBusinessObject,
                                                           Maintainable newMaintainable,
                                                           String collectionName)
Deprecated. 
Determines whether a business object is hidden on a maintenance document.

Parameters:
lineBusinessObject - the BO in the new maintainable, should be of type PersistableBusinessObject
oldLineBusinessObject - the corresponding BO in the old maintainable
newMaintainable - the new maintainable from the maintenace document
collectionName - the name of the collection from which these BOs come
Returns:

isRowHideableForInquiry

protected static boolean isRowHideableForInquiry(BusinessObject lineBusinessObject)
Deprecated. 
Determines whether a business object is hidable on an inquiry screen. Hidable means that if the user chose to hide the inactive elements in the collection in which the passed in BO resides, then the BO would be hidden

Parameters:
lineBusinessObject - the collection element BO, should be of type PersistableBusinessObject and Inquirable
Returns:
whether the BO is eligible to be hidden if the user decides to hide them

isRowHiddenForInquiry

protected static boolean isRowHiddenForInquiry(BusinessObject lineBusinessObject,
                                               Inquirable inquirable,
                                               String collectionName)
Deprecated. 
Determines whether a business object is hidden on an inquiry screen.

Parameters:
lineBusinessObject - the BO in the collection, should be of type PersistableBusinessObject and Inquirable
inquirable - the inquirable
collectionName - the name of the collection from which the BO comes
Returns:
true if the business object is to be hidden; false otherwise

getMaintenanceDocumentDictionaryService

public static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
Deprecated. 


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.