org.kuali.rice.krms.impl.ui
Class TermSpecificationMaintainable

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.krms.impl.ui.TermSpecificationMaintainable
All Implemented Interfaces:
Serializable, Maintainable, ViewHelperService

public class TermSpecificationMaintainable
extends MaintainableImpl

Maintainable for the AgendaEditor

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
TermSpecificationMaintainable()
           
 
Method Summary
 Class getDataObjectClass()
          Returns the class for the data object being maintained
 void prepareForSave()
          Overrides the parent method to additionaly clear the contexts list, which is needed for serialization performance & space.
 void processAfterAddLine(ViewModel viewModel, Object addLine, String collectionId, String collectionPath, boolean isValidLine)
          For context addition, adds the item to the persisted contextValidTerms collection on the data object.
 void processAfterCopy(MaintenanceDocument document, Map<String,String[]> requestParameters)
          Hook for performing any custom processing after the maintenance object has been setup for a copy action
 void processAfterEdit(MaintenanceDocument document, Map<String,String[]> requestParameters)
          Hook for performing any custom processing after the maintenance object has been setup for a edit action
 void processAfterNew(MaintenanceDocument document, Map<String,String[]> requestParameters)
          Hook for performing any custom processing after the maintenance object has been setup for a new action
 void processAfterRetrieve()
          Recreate the contexts from the contextIDs (needed due to serialization)
 void processCollectionDeleteLine(ViewModel viewModel, String collectionId, String collectionPath, int lineIndex)
          For context removal, removes the given item from the persisted contextValidTerms collection on the data object.
 Object retrieveObjectForEditOrCopy(MaintenanceDocument document, Map<String,String> dataObjectKeys)
          Called during setupMaintenanceObject to retrieve the original dataObject that is being edited or copied.
 
Methods inherited from class org.kuali.rice.krad.maintenance.MaintainableImpl
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectAuthorizationService, getDataObjectService, getDocumentDictionaryService, getDocumentNumber, getDocumentTitle, getDocumentTypeName, getEncryptionService, getKualiRuleService, getLegacyDataAdapter, getLockingDocumentId, getMaintenanceAction, getMaintenanceDocumentService, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isLockable, isNotesEnabled, isOldDataObjectInDocument, performAddLineValidation, performCustomApplyModel, performCustomFinalize, performCustomViewFinalize, prepareExternalBusinessObject, processAfterDeleteLine, processAfterPost, saveDataObject, setDataObject, setDataObjectAuthorizationService, setDataObjectClass, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setKualiRuleService, setLegacyDataAdapter, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptors
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addCustomContainerComponents, addLine, applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, getConfigurationService, getDataDictionaryService, getDefaultValueForField, getExpressionEvaluatorFactory, getViewDictionaryService, linkAddedLine, logAndThrowRuntime, performCustomInitialization, performCustomViewInitialization, performDeleteLineValidation, populateDefaultValueForField, populateViewFromRequestParameters, processAfterSaveLine, processAndAddLineObject, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setConfigurationService, setDataDictionaryService, setDataObjectService, setExpressionEvaluatorFactory, setViewContext, setViewDictionaryService
 
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
addCustomContainerComponents, applyDefaultValues, applyDefaultValuesForCollectionLine, buildGrowlScript, buildInquiryLink, getDefaultValueForField, getExpressionEvaluatorFactory, performCustomInitialization, performCustomViewInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterSaveLine, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReference, refreshReferences, retrieveEditModesAndActionFlags, setViewContext
 

Constructor Detail

TermSpecificationMaintainable

public TermSpecificationMaintainable()
Method Detail

retrieveObjectForEditOrCopy

public Object retrieveObjectForEditOrCopy(MaintenanceDocument document,
                                          Map<String,String> dataObjectKeys)
Description copied from interface: Maintainable
Called during setupMaintenanceObject to retrieve the original dataObject that is being edited or copied. Override this method for non BusinessObject external persistence, Maintainable objects that extend BO should override isExternalBusinessObject and prepareExternalBusinessObject instead. Do not override this method and isExternalBusinessObject.

Specified by:
retrieveObjectForEditOrCopy in interface Maintainable
Overrides:
retrieveObjectForEditOrCopy in class MaintainableImpl
Parameters:
document - document instance for the maintenance object
dataObjectKeys - Map of keys for the requested object
Returns:
the object identified by the dataObjectKeys
See Also:
Maintainable.retrieveObjectForEditOrCopy(MaintenanceDocument, java.util.Map)

processAfterNew

public void processAfterNew(MaintenanceDocument document,
                            Map<String,String[]> requestParameters)
Hook for performing any custom processing after the maintenance object has been setup for a new action

Specified by:
processAfterNew in interface Maintainable
Overrides:
processAfterNew in class MaintainableImpl
Parameters:
document - - maintenance document instance this maintainable belong to
requestParameters - - map of request parameters sent for the copy request
See Also:
Maintainable.processAfterNew(org.kuali.rice.krad.maintenance.MaintenanceDocument, java.util.Map)

processAfterEdit

public void processAfterEdit(MaintenanceDocument document,
                             Map<String,String[]> requestParameters)
Hook for performing any custom processing after the maintenance object has been setup for a edit action

Specified by:
processAfterEdit in interface Maintainable
Overrides:
processAfterEdit in class MaintainableImpl
Parameters:
document - - maintenance document instance this maintainable belong to
requestParameters - - map of request parameters sent for the copy request
See Also:
Maintainable.processAfterEdit(org.kuali.rice.krad.maintenance.MaintenanceDocument, java.util.Map)

processAfterCopy

public void processAfterCopy(MaintenanceDocument document,
                             Map<String,String[]> requestParameters)
Description copied from interface: Maintainable
Hook for performing any custom processing after the maintenance object has been setup for a copy action

Specified by:
processAfterCopy in interface Maintainable
Overrides:
processAfterCopy in class MaintainableImpl
Parameters:
document - - maintenance document instance this maintainable belong to
requestParameters - - map of request parameters sent for the copy request
See Also:
Maintainable.processAfterCopy(org.kuali.rice.krad.maintenance.MaintenanceDocument, java.util.Map)

prepareForSave

public void prepareForSave()
Overrides the parent method to additionaly clear the contexts list, which is needed for serialization performance & space.

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

processAfterAddLine

public void processAfterAddLine(ViewModel viewModel,
                                Object addLine,
                                String collectionId,
                                String collectionPath,
                                boolean isValidLine)
For context addition, adds the item to the persisted contextValidTerms collection on the data object.

Without this step, the context is only added to a transient collection and the relationship will never be persisted.

Specified by:
processAfterAddLine in interface ViewHelperService
Overrides:
processAfterAddLine in class MaintainableImpl
Parameters:
viewModel - object instance that contain's the views data
addLine - the new line that was added
collectionId - the id of the collection being added to
collectionPath - the path to the collection being modified
isValidLine - indicates if the line is valid

processCollectionDeleteLine

public void processCollectionDeleteLine(ViewModel viewModel,
                                        String collectionId,
                                        String collectionPath,
                                        int lineIndex)
For context removal, removes the given item from the persisted contextValidTerms collection on the data object.

Without this step, the context is only removed from a transient collection and the severed relationship will never be persisted.

Specified by:
processCollectionDeleteLine in interface ViewHelperService
Overrides:
processCollectionDeleteLine in class ViewHelperServiceImpl
Parameters:
viewModel - Top level object containing the view data including the collection
collectionId - the id of the collection being added to
collectionPath - the path to the collection being modified
lineIndex - index of the collection line that was selected for removal

getDataObjectClass

public Class getDataObjectClass()
Description copied from interface: Maintainable
Returns the class for the data object being maintained

Specified by:
getDataObjectClass in interface Maintainable
Overrides:
getDataObjectClass in class MaintainableImpl
Returns:
Class data object class
See Also:
Maintainable.getDataObjectClass()

processAfterRetrieve

public void processAfterRetrieve()
Recreate the contexts from the contextIDs (needed due to serialization)

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


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.