Class PeopleFlowMaintainableImpl
java.lang.Object
org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
org.kuali.rice.krad.maintenance.MaintainableImpl
org.kuali.rice.kew.impl.peopleflow.PeopleFlowMaintainableImpl
- All Implemented Interfaces:
Serializable,org.kuali.rice.krad.maintenance.Maintainable,org.kuali.rice.krad.uif.service.ViewHelperService
public class PeopleFlowMaintainableImpl
extends org.kuali.rice.krad.maintenance.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddLine(Collection<Object> collection, Object addLine, boolean insertFirst) sortPeopleFlowMemberBos by stop number (priority), and clean out the actionRequestPolicyCode for non-ROLE members.voidSet the attribute bo list from the map of attribute key/value pairs.voidprocessAfterAddLine(org.kuali.rice.krad.uif.view.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.voidprocessAfterDeleteLine(org.kuali.rice.krad.uif.view.ViewModel model, String collectionId, String collectionPath, int lineIndex) In the case of edit maintenance deleted the item on the old side.voidSet the map of attribute key/value pairs list from the attribute bo list and update the members.voidprocessCollectionDeleteLine(org.kuali.rice.krad.uif.view.ViewModel model, String collectionId, String collectionPath, int lineIndex) This method is an override of ViewHelperService.processCollectionDeleteLine().List<org.kuali.rice.core.api.uif.RemotableAttributeField> retrieveTypeAttributes(org.kuali.rice.krad.uif.view.View view, Object model, org.kuali.rice.krad.uif.container.Container container) Invokes theKewTypeRepositoryServiceto retrieve the remotable field definitions for the attributes associated with the selected typevoidCallsPeopleFlowServiceto save the people flow instanceMethods inherited from class org.kuali.rice.krad.maintenance.MaintainableImpl
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectService, getDocumentDictionaryService, getDocumentNumber, getDocumentTitle, getDocumentTypeName, getEncryptionService, getKualiRuleService, getLegacyDataAdapter, getLockingDocumentId, getMaintenanceAction, getMaintenanceDocumentService, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isLockable, isNotesEnabled, isOldDataObjectInDocument, performAddLineValidation, performCustomApplyModel, performCustomFinalize, performCustomViewFinalize, prepareExternalBusinessObject, processAfterCopy, processAfterEdit, processAfterNew, processAfterPost, retrieveObjectForEditOrCopy, setDataObject, setDataObjectAuthorizationService, setDataObjectClass, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setKualiRuleService, setLegacyDataAdapter, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptorsMethods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addCustomContainerComponents, applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, containsDuplicateLine, extractNewValuesAndAssign, extractSingleValue, filterByReturnedFieldConversions, getConfigurationService, getCurrentPersonContactId, getDataDictionaryService, getDefaultValueForField, getExpressionEvaluatorFactory, getViewDictionaryService, isDuplicateLine, linkAddedLine, logAndThrowRuntime, performCustomInitialization, performCustomViewInitialization, performDeleteLineValidation, populateDefaultValueForField, populateViewFromRequestParameters, processAfterEditLine, processAfterSaveLine, processAndAddLineObject, processBeforeAddLine, processBeforeEditLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionCloseEditLineDialog, processCollectionEditLine, processCollectionRetrieveEditLineDialog, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setConfigurationService, setDataDictionaryService, setDataObjectService, setElementContext, setExpressionEvaluatorFactory, setViewContext, setViewDictionaryServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
addCustomContainerComponents, applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, getDefaultValueForField, getExpressionEvaluatorFactory, performCustomInitialization, performCustomViewInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterEditLine, processAfterSaveLine, processAndAddLineObject, processBeforeAddLine, processBeforeEditLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionCloseEditLineDialog, processCollectionEditLine, processCollectionRetrieveEditLineDialog, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setElementContext, setViewContext
-
Constructor Details
-
PeopleFlowMaintainableImpl
public PeopleFlowMaintainableImpl()
-
-
Method Details
-
addLine
sortPeopleFlowMemberBos by stop number (priority), and clean out the actionRequestPolicyCode for non-ROLE members.- Overrides:
addLinein classorg.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl- Parameters:
collection- - the Collection to add the given addLine toaddLine- - the line to add to the given collectioninsertFirst- - indicates if the item should be inserted as the first item
-
retrieveTypeAttributes
public List<org.kuali.rice.core.api.uif.RemotableAttributeField> retrieveTypeAttributes(org.kuali.rice.krad.uif.view.View view, Object model, org.kuali.rice.krad.uif.container.Container container) Invokes theKewTypeRepositoryServiceto retrieve the remotable field definitions for the attributes associated with the selected type- Parameters:
view- - view instancemodel- - object containing the form data, from which the selected type will be pulledcontainer- - 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:
prepareForSavein interfaceorg.kuali.rice.krad.maintenance.Maintainable- Overrides:
prepareForSavein classorg.kuali.rice.krad.maintenance.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:
processAfterRetrievein interfaceorg.kuali.rice.krad.maintenance.Maintainable- Overrides:
processAfterRetrievein classorg.kuali.rice.krad.maintenance.MaintainableImpl
-
saveDataObject
public void saveDataObject()CallsPeopleFlowServiceto save the people flow instance- Specified by:
saveDataObjectin interfaceorg.kuali.rice.krad.maintenance.Maintainable- Overrides:
saveDataObjectin classorg.kuali.rice.krad.maintenance.MaintainableImpl
-
processAfterAddLine
public void processAfterAddLine(org.kuali.rice.krad.uif.view.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:
processAfterAddLinein interfaceorg.kuali.rice.krad.uif.service.ViewHelperService- Overrides:
processAfterAddLinein classorg.kuali.rice.krad.maintenance.MaintainableImpl- See Also:
-
processCollectionDeleteLine
public void processCollectionDeleteLine(org.kuali.rice.krad.uif.view.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:
processCollectionDeleteLinein interfaceorg.kuali.rice.krad.uif.service.ViewHelperService- Overrides:
processCollectionDeleteLinein classorg.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl- See Also:
-
processAfterDeleteLine
public void processAfterDeleteLine(org.kuali.rice.krad.uif.view.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:
processAfterDeleteLinein interfaceorg.kuali.rice.krad.uif.service.ViewHelperService- Overrides:
processAfterDeleteLinein classorg.kuali.rice.krad.maintenance.MaintainableImpl- See Also:
-