org.kuali.rice.kew.impl.peopleflow
Class PeopleFlowMaintainableImpl

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
      extended by org.kuali.rice.krad.maintenance.MaintainableImpl
          extended by org.kuali.rice.kew.impl.peopleflow.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:
Serialized Form

Constructor Summary
PeopleFlowMaintainableImpl()
           
 
Method Summary
 void processCollectionAddLine(View view, Object model, String collectionPath)
          Invoked when the add line action is chosen for a collection.
 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
 void saveDataObject()
          Set the attribute bo list from the map of attribute key/value pairs and then calls PeopleFlowService to save the people flow instance
 
Methods inherited from class org.kuali.rice.krad.maintenance.MaintainableImpl
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getBusinessObjectService, getCustomLockDescriptor, getDataObject, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectMetaDataService, getDocumentDictionaryService, getDocumentNumber, getDocumentTitle, getDocumentTypeName, getEncryptionService, getLockingDocumentId, getLookupService, getMaintenanceAction, getMaintenanceDocumentService, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isNotesEnabled, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterAddLine, processAfterCopy, processAfterDeleteLine, processAfterEdit, processAfterNew, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setBusinessObjectService, setDataObject, setDataObjectAuthorizationService, setDataObjectClass, setDataObjectMetaDataService, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setLookupService, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptors
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addClientSideStateForComponent, addCustomContainerComponents, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildInquiryLink, findNestedDictionaryAttribute, getCommonContext, getDataDictionaryService, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAnyRemoteFieldsHolder, processBeforeAddLine, processCollectionDeleteLine, processMultipleValueLookupResults, retrieveEditModesAndActionFlags, runComponentModifiers, setDataDictionaryService, setExpressionEvaluatorService, setViewContext, setViewDictionaryService, syncClientSideStateForComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
applyDefaultValuesForCollectionLine, buildInquiryLink, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionDeleteLine, processMultipleValueLookupResults
 

Constructor Detail

PeopleFlowMaintainableImpl

public PeopleFlowMaintainableImpl()
Method Detail

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 instances for the type attributes, or empty list if not attributes exist

saveDataObject

public void saveDataObject()
Set the attribute bo list from the map of attribute key/value pairs and then calls PeopleFlowService to save the people flow instance

Specified by:
saveDataObject in interface Maintainable
Overrides:
saveDataObject in class MaintainableImpl
See Also:
Maintainable.saveDataObject()

processCollectionAddLine

public void processCollectionAddLine(View view,
                                     Object model,
                                     String collectionPath)
Description copied from interface: ViewHelperService
Invoked when the add line action is chosen for a collection. The collection path gives the full path to the collection that action was selected for. Here validation can be performed on the line as well as further processing on the line such as defaults. If the action is valid the line should be added to the collection, otherwise errors should be added to the global MessageMap

Specified by:
processCollectionAddLine in interface ViewHelperService
Overrides:
processCollectionAddLine in class ViewHelperServiceImpl
Parameters:
view - - view instance that is being presented (the action was taken on)
model - - Top level object containing the view data including the collection and new line
collectionPath - - full path to the collection on the model
See Also:
ViewHelperService.processCollectionAddLine(org.kuali.rice.krad.uif.view.View, java.lang.Object, java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.