Class SectionBridge

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

@Deprecated public class SectionBridge extends Object
Deprecated.
KNS Struts deprecated, use KRAD and the Spring MVC framework.
  • Constructor Details

    • SectionBridge

      public SectionBridge()
      Deprecated.
  • Method Details

    • toSection

      public static 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 void applyInquiryFieldAuthorizations(Field field, InquiryRestrictions inquiryRestrictions)
      Deprecated.
    • toSection

      public static 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.
      maintenanceAction - The action (new, newwithexisting, copy, edit, etc) requested from the UI.
      displayedFieldNames - What fields are displayed on the UI?
      Returns:
      A populated Section.
      Throws:
      InstantiationException
      IllegalAccessException
    • getContainerRows

      public 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.
    • getContainerRows

      public 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.
      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.)
      containerRowErrorKey - The error key for the Container/Collection.
      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?
    • 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 BusinessObject and Inquirable
      oldLineBusinessObject - the corresponding BO in the old maintainable, should be of type BusinessObject 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 BusinessObject
      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 BusinessObject 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 BusinessObject 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.