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

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

Deprecated.

@Deprecated
public class SectionBridge
extends Object


Field Summary
private static BusinessObjectAuthorizationService businessObjectAuthorizationService
          Deprecated.  
private static DataDictionaryService dataDictionaryService
          Deprecated.  
private static org.apache.log4j.Logger LOG
          Deprecated.  
private static MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
          Deprecated.  
 
Constructor Summary
SectionBridge()
          Deprecated.  
 
Method Summary
private static void addShowInactiveButtonField(Section section, String collectionName, boolean showInactive)
          Deprecated. Helper method to build up the show inactive button source and place in the section.
protected static void applyInquiryFieldAuthorizations(Field field, InquiryRestrictions inquiryRestrictions)
          Deprecated.  
private static void applyInquiryRowsAuthorizations(List<Row> rows, InquiryRestrictions inquiryRestrictions)
          Deprecated.  
private static void applyInquirySectionAuthorizations(Section section, InquiryRestrictions inquiryRestrictions)
          Deprecated.  
private static Field createMaintainableSubSectionHeader(SubSectionHeaderDefinitionI definition)
          Deprecated. This is a helper method to create a sub section header
private static BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
          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.
private static DataDictionaryService getDataDictionaryService()
          Deprecated.  
private static Field getDeleteRowButtonField(String collectionName, String rowIndex)
          Deprecated. Helper method to build up a Field containing a delete button mapped up to remove the collection record identified by the given collection name and index.
static MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
          Deprecated.  
private static List<Field> getSummaryFields(Map collSummaryFields, CollectionDefinitionI collectionDefinition)
          Deprecated. This method returns an ordered list of fields.
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.
private static List<Row> reArrangeRows(List<Row> rows, int numberOfColumns)
          Deprecated.  
private static void setDuplicateIdentificationFieldsReadOnly(Field field, List<String> duplicateIdentificationFieldNames)
          Deprecated.  
private static void setPrimaryKeyFieldsReadOnly(Class businessObjectClass, Field field)
          Deprecated. Retrieves the primary key property names for the given class.
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.
private static void updateUserFields(Field field, BusinessObject businessObject)
          Deprecated. Updates fields of type kualiuser sets the universal user id and/or name if required.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Deprecated. 

businessObjectAuthorizationService

private static BusinessObjectAuthorizationService businessObjectAuthorizationService
Deprecated. 

dataDictionaryService

private static DataDictionaryService dataDictionaryService
Deprecated. 

maintenanceDocumentDictionaryService

private static MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
Deprecated. 
Constructor Detail

SectionBridge

public SectionBridge()
Deprecated. 
Method Detail

getBusinessObjectAuthorizationService

private static BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
Deprecated. 

getDataDictionaryService

private static DataDictionaryService getDataDictionaryService()
Deprecated. 

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.

applyInquirySectionAuthorizations

private static final void applyInquirySectionAuthorizations(Section section,
                                                            InquiryRestrictions inquiryRestrictions)
Deprecated. 

applyInquiryRowsAuthorizations

private static final void applyInquiryRowsAuthorizations(List<Row> rows,
                                                         InquiryRestrictions inquiryRestrictions)
Deprecated. 

applyInquiryFieldAuthorizations

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

reArrangeRows

private static final List<Row> reArrangeRows(List<Row> rows,
                                             int numberOfColumns)
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:

updateUserFields

private static final void updateUserFields(Field field,
                                           BusinessObject businessObject)
Deprecated. 
Updates fields of type kualiuser sets the universal user id and/or name if required.

Parameters:
field -
businessObject -

getDeleteRowButtonField

private static final Field getDeleteRowButtonField(String collectionName,
                                                   String rowIndex)
Deprecated. 
Helper method to build up a Field containing a delete button mapped up to remove the collection record identified by the given collection name and index.

Parameters:
collectionName - - name of the collection
rowIndex - - index of the record to associate delete button
Returns:
Field - of type IMAGE_SUBMIT

addShowInactiveButtonField

private static final void addShowInactiveButtonField(Section section,
                                                     String collectionName,
                                                     boolean showInactive)
Deprecated. 
Helper method to build up the show inactive button source and place in the section.

Parameters:
section - - section that will display the button
collectionName - - name of the collection to toggle setting
showInactive - - boolean indicating whether inactive rows should be displayed

setPrimaryKeyFieldsReadOnly

private static final void setPrimaryKeyFieldsReadOnly(Class businessObjectClass,
                                                      Field field)
Deprecated. 
Retrieves the primary key property names for the given class. If the field's property is one of those keys, makes the field read-only. This is called for collection lines. Since deletion is not allowed for existing lines, the pk fields must be read-only, otherwise a user could change the pk value which would be equivalent to deleting the line and adding a new line.


setDuplicateIdentificationFieldsReadOnly

private static void setDuplicateIdentificationFieldsReadOnly(Field field,
                                                             List<String> duplicateIdentificationFieldNames)
Deprecated. 

getSummaryFields

private static final List<Field> getSummaryFields(Map collSummaryFields,
                                                  CollectionDefinitionI collectionDefinition)
Deprecated. 
This method returns an ordered list of fields.

Parameters:
collSummaryFields -
collectionDefinition -
Returns:

createMaintainableSubSectionHeader

private static final Field createMaintainableSubSectionHeader(SubSectionHeaderDefinitionI definition)
Deprecated. 
This is a helper method to create a sub section header

Parameters:
definition - the MaintainableSubSectionHeaderDefinition that we'll use to create the sub section header
Returns:
the Field, which is the sub section header

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 © 2004-2011 The Kuali Foundation. All Rights Reserved.