Class PeopleFlowMaintainableImpl

All Implemented Interfaces:
Serializable, Maintainable, ViewHelperService

public class PeopleFlowMaintainableImpl extends MaintainableImpl
Custom view helper for the people flow maintenance document to retrieve the type attribute remotable fields
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • PeopleFlowMaintainableImpl

      public PeopleFlowMaintainableImpl()
  • Method Details

    • addLine

      protected int addLine(Collection<Object> collection, Object addLine, boolean insertFirst)
      sort PeopleFlowMemberBos by stop number (priority), and clean out the actionRequestPolicyCode for non-ROLE members.
      Overrides:
      addLine in class ViewHelperServiceImpl
      Parameters:
      collection - - the Collection to add the given addLine to
      addLine - - the line to add to the given collection
      insertFirst - - indicates if the item should be inserted as the first item
    • retrieveTypeAttributes

      public List<RemotableAttributeField> retrieveTypeAttributes(View view, Object model, Container container)
      Invokes the KewTypeRepositoryService to retrieve the remotable field definitions for the attributes associated with the selected type
      Parameters:
      view - - view instance
      model - - object containing the form data, from which the selected type will be pulled
      container - - container that holds the remotable fields
      Returns:
      List<RemotableAttributeField> instances for the type attributes, or empty list if not attributes exist
    • prepareForSave

      public void prepareForSave()
      Set the attribute bo list from the map of attribute key/value pairs.
      Specified by:
      prepareForSave in interface Maintainable
      Overrides:
      prepareForSave in class MaintainableImpl
    • processAfterRetrieve

      public void processAfterRetrieve()
      Set the map of attribute key/value pairs list from the attribute bo list and update the members.
      Specified by:
      processAfterRetrieve in interface Maintainable
      Overrides:
      processAfterRetrieve in class MaintainableImpl
    • saveDataObject

      public void saveDataObject()
      Calls PeopleFlowService to save the people flow instance
      Specified by:
      saveDataObject in interface Maintainable
      Overrides:
      saveDataObject in class MaintainableImpl
    • processAfterAddLine

      public void processAfterAddLine(ViewModel model, Object addLine, String collectionId, String collectionPath, boolean isValidLine)
      In the case of edit maintenance adds a new blank line to the old side This method is intended to override the method in MaintainableImpl but has a different set of parameters, so it is not actually an override. This version was needed to fetch the old collection from a different path than MaintainableImpl uses.
      Specified by:
      processAfterAddLine in interface ViewHelperService
      Overrides:
      processAfterAddLine in class MaintainableImpl
      See Also:
      • invalid reference
        org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl#processAfterAddLine(org.kuali.rice.krad.uif.view.View, org.kuali.rice.krad.uif.container.CollectionGroup, Object, Object, boolean)
    • processCollectionDeleteLine

      public void processCollectionDeleteLine(ViewModel model, String collectionId, String collectionPath, int lineIndex)
      This method is an override of ViewHelperService.processCollectionDeleteLine(). It is virtually identical except that a local processAfterDeleteLine() method is called with a different parameter set than is called from within this method to delete the line from the old maintainable object.
      Specified by:
      processCollectionDeleteLine in interface ViewHelperService
      Overrides:
      processCollectionDeleteLine in class ViewHelperServiceImpl
      See Also:
      • invalid reference
        org.kuali.rice.krad.uif.service.ViewHelperService#processCollectionDeleteLine(org.kuali.rice.krad.uif.view.View, java.lang.Object, java.lang.String, int)
    • processAfterDeleteLine

      public void processAfterDeleteLine(ViewModel model, String collectionId, String collectionPath, int lineIndex)
      In the case of edit maintenance deleted the item on the old side. This method is intended to override the method in MaintainableImpl but has a different set of parameters, so it is not actually an override. This was needed to fetch the old collection from a different path than MaintainableImpl uses. This version has the path (to the newMaintainableObject provided as a parameter, this is used to generate a path to the oldMaintainableObject
      Specified by:
      processAfterDeleteLine in interface ViewHelperService
      Overrides:
      processAfterDeleteLine in class MaintainableImpl
      See Also:
      • invalid reference
        org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl#processAfterDeleteLine(View, org.kuali.rice.krad.uif.container.CollectionGroup, java.lang.Object, int)