org.kuali.rice.kns.maintenance
Class KualiMaintainableImpl

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.kns.maintenance.KualiMaintainableImpl
All Implemented Interfaces:
Serializable, SelectiveReferenceRefresher, Maintainable, ViewHelperService
Direct Known Subclasses:
AuthorMaintainable, BookMaintainable, CampusMaintainableImpl, CampusTypeMaintainableImpl, CountryMaintainableImpl, CountyMaintainableImpl, DocumentTypeMaintainable, GenericPermissionMaintainable, KualiGlobalMaintainableImpl, NamespaceMaintainableImpl, ParameterMaintainableImpl, PostalCodeMaintainableImpl, ReviewResponsibilityMaintainable, RoutingRuleDelegationMaintainable, RoutingRuleMaintainable, StateMaintainableImpl

Deprecated.

@Deprecated
public class KualiMaintainableImpl
extends MaintainableImpl
implements Maintainable

Base Maintainable class to hold things common to all maintainables.

See Also:
Serialized Form

Field Summary
protected  PersistableBusinessObject businessObject
          Deprecated.  
protected  BusinessObjectAuthorizationService businessObjectAuthorizationService
          Deprecated.  
protected  BusinessObjectDictionaryService businessObjectDictionaryService
          Deprecated.  
protected  BusinessObjectMetaDataService businessObjectMetaDataService
          Deprecated.  
protected  DocumentHelperService documentHelperService
          Deprecated.  
protected  Map<String,Boolean> inactiveRecordDisplay
          Deprecated.  
protected  MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
          Deprecated.  
protected  Set<String> newCollectionLineNames
          Deprecated.  
protected  Map<String,PersistableBusinessObject> newCollectionLines
          Deprecated.  
protected  PersistenceStructureService persistenceStructureService
          Deprecated.  
protected  PersonService personService
          Deprecated.  
 
Constructor Summary
KualiMaintainableImpl()
          Deprecated. Default empty constructor
KualiMaintainableImpl(PersistableBusinessObject businessObject)
          Deprecated. Constructor which initializes the business object to be maintained.
 
Method Summary
 void addMultipleValueLookupResults(MaintenanceDocument document, String collectionName, Collection<PersistableBusinessObject> rawValues, boolean needsBlank, PersistableBusinessObject bo)
          Deprecated.  
 void addNewLineToCollection(String collectionName)
          Deprecated. Adds the new line for the given collection to the business object's collection.
 void clearBusinessObjectOfRestrictedValues(MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
          Deprecated. Blanks out or sets the default of any value specified as restricted within the MaintenanceDocumentRestrictions instance.
protected  void clearCollectionRestrictedValues(String fieldNamePrefix, BusinessObject businessObject, MaintainableCollectionDefinition collectionDefinition, MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
          Deprecated.  
protected  void clearFieldRestrictedValues(String fieldNamePrefix, BusinessObject businessObject, MaintainableFieldDefinition fieldDefinition, MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
          Deprecated.  
protected  Map<String,String> decryptEncryptedData(Map<String,String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall)
          Deprecated. Special hidden parameters are set on the maintenance jsp starting with a prefix that tells us which fields have been encrypted.
 void deleteBusinessObject()
          Deprecated.  
protected  Collection<String> generateAllAffectedReferences(Class boClass, Map<String,String> fkToPkMappings, String nestedBOPrefix, String collectionPrefix)
          Deprecated.  
 Collection<String> getAffectedReferencesFromLookup(BusinessObject baseBO, String attributeName, String collectionPrefix)
          Deprecated. Returns a list of references that must be refreshed after a lookup performed on an attribute is performed.
protected  Collection<String> getAllRefreshableReferences(Class boClass)
          Deprecated.  
 Class getBoClass()
          Deprecated.  
 PersistableBusinessObject getBusinessObject()
          Deprecated. Returns instance of the business object that is being maintained.
protected  BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
          Deprecated.  
protected  BusinessObjectDictionaryService getBusinessObjectDictionaryService()
          Deprecated.  
protected  BusinessObjectMetaDataService getBusinessObjectMetaDataService()
          Deprecated.  
 List<Section> getCoreSections(MaintenanceDocument document, Maintainable oldMaintainable)
          Deprecated. Gets list of maintenance sections built from the data dictionary.
protected  DocumentHelperService getDocumentHelperService()
          Deprecated.  
 String getDocumentTitle(MaintenanceDocument document)
          Deprecated.  
 List<String> getDuplicateIdentifierFieldsFromDataDictionary(String docTypeName, String collectionName)
          Deprecated. This method is to retrieve a List of fields which are specified in the maintenance document data dictionary as the duplicateIdentificationFields.
 Map<String,Boolean> getInactiveRecordDisplay()
          Deprecated. Returns the Map used to control the state of inactive record collection display.
 String getMaintainableTitle()
          Deprecated. Retrieves title for maintenance document from data dictionary
 MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
          Deprecated.  
 List<String> getMultiValueIdentifierList(Collection maintCollection, List<String> duplicateIdentifierFields)
          Deprecated.  
 PersistableBusinessObject getNewCollectionLine(String collectionName)
          Deprecated. Gets the holder for the "add line" for a collection on the business object
protected  PersistenceStructureService getPersistenceStructureService()
          Deprecated.  
protected  PersonService getPersonService()
          Deprecated.  
 List getSections(MaintenanceDocument document, Maintainable oldMaintainable)
          Deprecated. Calls method to get all the core sections for the business object defined in the data dictionary.
 boolean getShowInactiveRecords(String collectionName)
          Deprecated. Indicates whether inactive records for the given collection should be display.
 boolean hasBusinessObjectExisted(BusinessObject bo, List<String> existingIdentifierList, List<String> duplicateIdentifierFields)
          Deprecated.  
 PersistableBusinessObject initNewCollectionLine(String collectionName)
          Deprecated.  
 boolean isBoNotesEnabled()
          Deprecated.  
 boolean isExternalBusinessObject()
          Deprecated. By default a maintainable is not external
 boolean isNotesEnabled()
          Deprecated. Overriding to call old (KNS) name of the method
 boolean isOldBusinessObjectInDocument()
          Deprecated.  
protected  boolean isRelationshipRefreshable(Class boClass, String relationshipName)
          Deprecated.  
protected  void performCollectionForceUpperCase(String fieldNamePrefix, BusinessObject bo, MaintainableCollectionDefinition collectionDefinition, Map fieldValues)
          Deprecated.  
protected  void performFieldForceUpperCase(BusinessObject bo, Map fieldValues)
          Deprecated.  
protected  void performFieldForceUpperCase(String fieldNamePrefix, BusinessObject bo, MaintainableFieldDefinition fieldDefinition, Map fieldValues)
          Deprecated.  
protected  void performForceUpperCase(Map fieldValues)
          Deprecated.  
 Map populateBusinessObject(Map<String,String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall)
          Deprecated. This method populates the business object based on key/value pairs.
 Map<String,String> populateNewCollectionLines(Map<String,String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall)
          Deprecated. Populates the new collection lines based on key/value pairs.
protected  Map populateNewSubCollectionLines(MaintainableCollectionDefinition parentCollection, Map fieldValues)
          Deprecated.  
 void prepareBusinessObject(BusinessObject businessObject)
          Deprecated. Gives chance to a maintainable object to prepare and return a maintainable object which might be external to the system
 void prepareBusinessObjectForAdditionFromMultipleValueLookup(String collectionName, BusinessObject bo)
          Deprecated.  
 void processAfterAddLine(String colName, Class colClass)
          Deprecated. 
 void processAfterCopy(MaintenanceDocument document, Map<String,String[]> parameters)
          Deprecated. Set the new collection records back to true so they can be deleted (copy should act like new)
 void processAfterEdit(MaintenanceDocument document, Map<String,String[]> requestParameters)
          Deprecated.  
 void processAfterNew(MaintenanceDocument document, Map<String,String[]> requestParameters)
          Deprecated.  
 void processAfterPost(MaintenanceDocument document, Map<String,String[]> requestParameters)
          Deprecated.  
 void processBeforeAddLine(String colName, Class colClass, BusinessObject addBO)
          Deprecated. KULRICE-4264 - a hook to change the state of the business object, which is the "new line" of a collection, before it is validated
 void refresh(String refreshCaller, Map fieldValues, MaintenanceDocument document)
          Deprecated. Called from a lookup return by the maintenance action.
protected  void refreshReferences(String referencesToRefresh)
          Deprecated.  
 void saveBusinessObject()
          Deprecated. This method will cause the Maintainable implementation to save/store the relevant business object(s).
 void saveDataObject()
          Deprecated. delegate this call to KNS' Maintainable.saveBusinessObject() in order to support KNS maintainables.
 void setBoClass(Class boClass)
          Deprecated.  
 void setBusinessObject(PersistableBusinessObject businessObject)
          Deprecated. Sets an instance of a business object to be maintained.
 void setBusinessObjectAuthorizationService(BusinessObjectAuthorizationService businessObjectAuthorizationService)
          Deprecated.  
 void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
          Deprecated.  
 void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
          Deprecated.  
 void setDataObject(Object object)
          Deprecated. Sets an instance of a data object that should be maintained
 void setDocumentHelperService(DocumentHelperService documentHelperService)
          Deprecated.  
 void setGenerateBlankRequiredValues(String docTypeName)
          Deprecated. Set default values for blank required fields.
 void setGenerateDefaultValues(String docTypeName)
          Deprecated. Set default values.
 void setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
          Deprecated.  
protected  void setNewCollectionLineDefaultValues(String collectionName, PersistableBusinessObject addLine)
          Deprecated.  
 void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
          Deprecated.  
 void setPersonService(PersonService personService)
          Deprecated.  
 void setShowInactiveRecords(String collectionName, boolean showInactive)
          Deprecated. Indicates to maintainble whether or not inactive records should be displayed for the given collection name.
 void setupNewFromExisting(MaintenanceDocument document, Map<String,String[]> parameters)
          Deprecated.  
protected  boolean shouldFieldBeEncrypted(MaintenanceDocument maintenanceDocument, String fieldName, MaintenanceDocumentRestrictions auths, String methodToCall)
          Deprecated. Determines whether the field in a request should be encrypted.
 
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, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isLockable, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterAddLine, processAfterCopy, processAfterDeleteLine, processAfterEdit, processAfterNew, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setBusinessObjectService, setDataObjectAuthorizationService, setDataObjectClass, setDataObjectMetaDataService, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setLookupService, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptors
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addCustomContainerComponents, addLine, adjustIdIfNecessary, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getCommonContext, getConfigurationService, getDataDictionaryService, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, retrieveEditModesAndActionFlags, runComponentModifiers, setConfigurationService, 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.maintenance.Maintainable
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectClass, getDocumentTitle, getLockingDocumentId, getMaintenanceAction, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isLockable, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterCopy, processAfterEdit, processAfterNew, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setDataObjectClass, setDocumentNumber, setMaintenanceAction, setupNewFromExisting, useCustomLockDescriptors
 
Methods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
applyDefaultValuesForCollectionLine, buildInquiryLink, cleanViewAfterRender, getCommonContext, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults
 

Field Detail

businessObject

protected PersistableBusinessObject businessObject
Deprecated. 

newCollectionLines

protected Map<String,PersistableBusinessObject> newCollectionLines
Deprecated. 

inactiveRecordDisplay

protected Map<String,Boolean> inactiveRecordDisplay
Deprecated. 

newCollectionLineNames

protected Set<String> newCollectionLineNames
Deprecated. 

persistenceStructureService

protected transient PersistenceStructureService persistenceStructureService
Deprecated. 

businessObjectDictionaryService

protected transient BusinessObjectDictionaryService businessObjectDictionaryService
Deprecated. 

personService

protected transient PersonService personService
Deprecated. 

businessObjectMetaDataService

protected transient BusinessObjectMetaDataService businessObjectMetaDataService
Deprecated. 

businessObjectAuthorizationService

protected transient BusinessObjectAuthorizationService businessObjectAuthorizationService
Deprecated. 

documentHelperService

protected transient DocumentHelperService documentHelperService
Deprecated. 

maintenanceDocumentDictionaryService

protected transient MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
Deprecated. 
Constructor Detail

KualiMaintainableImpl

public KualiMaintainableImpl()
Deprecated. 
Default empty constructor


KualiMaintainableImpl

public KualiMaintainableImpl(PersistableBusinessObject businessObject)
Deprecated. 
Constructor which initializes the business object to be maintained.

Parameters:
businessObject -
Method Detail

populateBusinessObject

public Map populateBusinessObject(Map<String,String> fieldValues,
                                  MaintenanceDocument maintenanceDocument,
                                  String methodToCall)
Deprecated. 
Description copied from interface: Maintainable
This method populates the business object based on key/value pairs.

Returns:
See Also:
Maintainable#populateBusinessObject(java.util.Map, org.kuali.rice.krad.maintenance.MaintenanceDocument, String)

decryptEncryptedData

protected Map<String,String> decryptEncryptedData(Map<String,String> fieldValues,
                                                  MaintenanceDocument maintenanceDocument,
                                                  String methodToCall)
Deprecated. 
Special hidden parameters are set on the maintenance jsp starting with a prefix that tells us which fields have been encrypted. This field finds the those parameters in the map, whose value gives us the property name that has an encrypted value. We then need to decrypt the value in the Map before the business object is populated.

Parameters:
fieldValues - - possibly with encrypted values
Returns:
Map fieldValues - with no encrypted values

shouldFieldBeEncrypted

protected boolean shouldFieldBeEncrypted(MaintenanceDocument maintenanceDocument,
                                         String fieldName,
                                         MaintenanceDocumentRestrictions auths,
                                         String methodToCall)
Deprecated. 
Determines whether the field in a request should be encrypted. This base implementation does not work for properties of collection elements. This base implementation will only return true if the maintenance document is being refreshed after a lookup (i.e. methodToCall is "refresh") and the data dictionary-based attribute security definition has any restriction defined, whether the user would be authorized to view the field. This assumes that only fields returned from a lookup should be encrypted in a request. If the user otherwise has no permissions to view/edit the field, then a request parameter will not be sent back to the server for population.

Parameters:
maintenanceDocument -
fieldName -
auths -
methodToCall -
Returns:

getSections

public List getSections(MaintenanceDocument document,
                        Maintainable oldMaintainable)
Deprecated. 
Calls method to get all the core sections for the business object defined in the data dictionary. Then determines if the bo has custom attributes, if so builds a custom attribute section and adds to the section list.

oldMaintainable - - If this is the new maintainable, the old is passed in for reference. If it is the old maintainable, then null will be passed in
Returns:
List of org.kuali.ui.Section objects

getCoreSections

public List<Section> getCoreSections(MaintenanceDocument document,
                                     Maintainable oldMaintainable)
Deprecated. 
Gets list of maintenance sections built from the data dictionary. If the section contains maintenance fields, construct Row/Field UI objects and place under Section UI. If section contains a maintenance collection, call method to build a Section UI which contains rows of Container Fields.

Returns:
List of org.kuali.ui.Section objects

saveBusinessObject

public void saveBusinessObject()
Deprecated. 
Description copied from interface: Maintainable
This method will cause the Maintainable implementation to save/store the relevant business object(s). This typically is called only after the maint document has gone through state to final.

See Also:
Maintainable.saveBusinessObject()

saveDataObject

public void saveDataObject()
Deprecated. 
delegate this call to KNS' Maintainable.saveBusinessObject() in order to support KNS maintainables.

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

getMaintainableTitle

public String getMaintainableTitle()
Deprecated. 
Retrieves title for maintenance document from data dictionary


setupNewFromExisting

public void setupNewFromExisting(MaintenanceDocument document,
                                 Map<String,String[]> parameters)
Deprecated. 

isBoNotesEnabled

public boolean isBoNotesEnabled()
Deprecated. 

isNotesEnabled

public boolean isNotesEnabled()
Deprecated. 
Overriding to call old (KNS) name of the method

Specified by:
isNotesEnabled in interface Maintainable
Overrides:
isNotesEnabled in class MaintainableImpl
Returns:
boolean true if notes are supported, false if they are not supported
See Also:
Maintainable.isNotesEnabled()

refresh

public void refresh(String refreshCaller,
                    Map fieldValues,
                    MaintenanceDocument document)
Deprecated. 
Description copied from interface: Maintainable
Called from a lookup return by the maintenance action.

See Also:
Impls will be needed if custom action is needed on refresh.

refreshReferences

protected void refreshReferences(String referencesToRefresh)
Deprecated. 

addMultipleValueLookupResults

public void addMultipleValueLookupResults(MaintenanceDocument document,
                                          String collectionName,
                                          Collection<PersistableBusinessObject> rawValues,
                                          boolean needsBlank,
                                          PersistableBusinessObject bo)
Deprecated. 

getDuplicateIdentifierFieldsFromDataDictionary

public List<String> getDuplicateIdentifierFieldsFromDataDictionary(String docTypeName,
                                                                   String collectionName)
Deprecated. 
This method is to retrieve a List of fields which are specified in the maintenance document data dictionary as the duplicateIdentificationFields. This List is used to determine whether the new entry being added to the collection is a duplicate entry and if so, we should not add the new entry to the existing collection

Parameters:
docTypeName -
collectionName -

getMultiValueIdentifierList

public List<String> getMultiValueIdentifierList(Collection maintCollection,
                                                List<String> duplicateIdentifierFields)
Deprecated. 

hasBusinessObjectExisted

public boolean hasBusinessObjectExisted(BusinessObject bo,
                                        List<String> existingIdentifierList,
                                        List<String> duplicateIdentifierFields)
Deprecated. 

prepareBusinessObjectForAdditionFromMultipleValueLookup

public void prepareBusinessObjectForAdditionFromMultipleValueLookup(String collectionName,
                                                                    BusinessObject bo)
Deprecated. 

processAfterCopy

public void processAfterCopy(MaintenanceDocument document,
                             Map<String,String[]> parameters)
Deprecated. 
Set the new collection records back to true so they can be deleted (copy should act like new)

See Also:
KualiMaintainableImpl#processAfterCopy()

processAfterEdit

public void processAfterEdit(MaintenanceDocument document,
                             Map<String,String[]> requestParameters)
Deprecated. 

processAfterNew

public void processAfterNew(MaintenanceDocument document,
                            Map<String,String[]> requestParameters)
Deprecated. 

processAfterPost

public void processAfterPost(MaintenanceDocument document,
                             Map<String,String[]> requestParameters)
Deprecated. 

setDataObject

public void setDataObject(Object object)
Deprecated. 
Description copied from interface: Maintainable
Sets an instance of a data object that should be maintained

Specified by:
setDataObject in interface Maintainable
Overrides:
setDataObject in class MaintainableImpl
Parameters:
object - - data object instance
See Also:
Maintainable.setDataObject(java.lang.Object)

getDocumentTitle

public String getDocumentTitle(MaintenanceDocument document)
Deprecated. 

getBusinessObject

public PersistableBusinessObject getBusinessObject()
Deprecated. 
Description copied from interface: Maintainable
Returns instance of the business object that is being maintained.

Returns:
Returns the instance of the business object being maintained.

setBusinessObject

public void setBusinessObject(PersistableBusinessObject businessObject)
Deprecated. 
Description copied from interface: Maintainable
Sets an instance of a business object to be maintained.

Parameters:
businessObject - Sets the instance of a business object that will be maintained.

getBoClass

public Class getBoClass()
Deprecated. 
Returns:
Returns the boClass.

setBoClass

public void setBoClass(Class boClass)
Deprecated. 
Parameters:
boClass - The boClass to set.

setGenerateDefaultValues

public void setGenerateDefaultValues(String docTypeName)
Deprecated. 
Description copied from interface: Maintainable
Set default values.

See Also:
Maintainable#setGenerateDefaultValues()

setGenerateBlankRequiredValues

public void setGenerateBlankRequiredValues(String docTypeName)
Deprecated. 
Description copied from interface: Maintainable
Set default values for blank required fields.

See Also:
Maintainable#setGenerateBlankRequiredValues()

processAfterAddLine

@Deprecated
public void processAfterAddLine(String colName,
                                           Class colClass)
Deprecated. 


processBeforeAddLine

public void processBeforeAddLine(String colName,
                                 Class colClass,
                                 BusinessObject addBO)
Deprecated. 
Description copied from interface: Maintainable
KULRICE-4264 - a hook to change the state of the business object, which is the "new line" of a collection, before it is validated

See Also:
Maintainable.processBeforeAddLine(java.lang.String, java.lang.Class, org.kuali.rice.krad.bo.BusinessObject)

getShowInactiveRecords

public boolean getShowInactiveRecords(String collectionName)
Deprecated. 
Description copied from interface: Maintainable
Indicates whether inactive records for the given collection should be display.

Parameters:
collectionName - - name of the collection (or sub-collection) to check inactive record display setting
Returns:
true if inactive records should be displayed, false otherwise
See Also:
Maintainable.getShowInactiveRecords(java.lang.String)

setShowInactiveRecords

public void setShowInactiveRecords(String collectionName,
                                   boolean showInactive)
Deprecated. 
Description copied from interface: Maintainable
Indicates to maintainble whether or not inactive records should be displayed for the given collection name.

Parameters:
collectionName - - name of the collection (or sub-collection) to set inactive record display setting
showInactive - - true to display inactive, false to not display inactive records
See Also:
Maintainable.setShowInactiveRecords(java.lang.String, boolean)

getInactiveRecordDisplay

public Map<String,Boolean> getInactiveRecordDisplay()
Deprecated. 
Description copied from interface: Maintainable
Returns the Map used to control the state of inactive record collection display. Exposed for setting from the maintenance jsp.

Returns:
the inactiveRecordDisplay

addNewLineToCollection

public void addNewLineToCollection(String collectionName)
Deprecated. 
Description copied from interface: Maintainable
Adds the new line for the given collection to the business object's collection.


getNewCollectionLine

public PersistableBusinessObject getNewCollectionLine(String collectionName)
Deprecated. 
Description copied from interface: Maintainable
Gets the holder for the "add line" for a collection on the business object

Returns:

initNewCollectionLine

public PersistableBusinessObject initNewCollectionLine(String collectionName)
Deprecated. 

populateNewCollectionLines

public Map<String,String> populateNewCollectionLines(Map<String,String> fieldValues,
                                                     MaintenanceDocument maintenanceDocument,
                                                     String methodToCall)
Deprecated. 
Description copied from interface: Maintainable
Populates the new collection lines based on key/value pairs.

Returns:
See Also:
Maintainable#populateNewCollectionLines(java.util.Map)

populateNewSubCollectionLines

protected Map populateNewSubCollectionLines(MaintainableCollectionDefinition parentCollection,
                                            Map fieldValues)
Deprecated. 

getAffectedReferencesFromLookup

public Collection<String> getAffectedReferencesFromLookup(BusinessObject baseBO,
                                                          String attributeName,
                                                          String collectionPrefix)
Deprecated. 
Description copied from interface: SelectiveReferenceRefresher
Returns a list of references that must be refreshed after a lookup performed on an attribute is performed. A lookup on an attribute may cause many attribute values to be updated upon return from lookup. Generally, the returned attributes are the PK of the BO being looked up. For example, a lookup on an account number attribute will cause the chart of accounts code and account code to be returned. These returned attributes may cause other references on the page to be returned. For example, an account number lookup may cause the chart code to change, and if there is also an ObjectCode reference in the BO, then any change in the chart code will cause the referenced ObjectCode BO to be changed.

Specified by:
getAffectedReferencesFromLookup in interface SelectiveReferenceRefresher
attributeName - the name of the attribute with a quickfinder of the maintained BO.
Returns:
a list of reference names that could be affected by lookup return values

isRelationshipRefreshable

protected boolean isRelationshipRefreshable(Class boClass,
                                            String relationshipName)
Deprecated. 

generateAllAffectedReferences

protected Collection<String> generateAllAffectedReferences(Class boClass,
                                                           Map<String,String> fkToPkMappings,
                                                           String nestedBOPrefix,
                                                           String collectionPrefix)
Deprecated. 

getAllRefreshableReferences

protected Collection<String> getAllRefreshableReferences(Class boClass)
Deprecated. 

setNewCollectionLineDefaultValues

protected void setNewCollectionLineDefaultValues(String collectionName,
                                                 PersistableBusinessObject addLine)
Deprecated. 

clearBusinessObjectOfRestrictedValues

public void clearBusinessObjectOfRestrictedValues(MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
Deprecated. 
Description copied from interface: Maintainable
Blanks out or sets the default of any value specified as restricted within the MaintenanceDocumentRestrictions instance. This method should only be called if this maintainable represents the new maintainable of the maintenance document.

See Also:
Maintainable.clearBusinessObjectOfRestrictedValues(org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions)

clearCollectionRestrictedValues

protected void clearCollectionRestrictedValues(String fieldNamePrefix,
                                               BusinessObject businessObject,
                                               MaintainableCollectionDefinition collectionDefinition,
                                               MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
Deprecated. 

clearFieldRestrictedValues

protected void clearFieldRestrictedValues(String fieldNamePrefix,
                                          BusinessObject businessObject,
                                          MaintainableFieldDefinition fieldDefinition,
                                          MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
Deprecated. 

performForceUpperCase

protected void performForceUpperCase(Map fieldValues)
Deprecated. 

performFieldForceUpperCase

protected void performFieldForceUpperCase(String fieldNamePrefix,
                                          BusinessObject bo,
                                          MaintainableFieldDefinition fieldDefinition,
                                          Map fieldValues)
Deprecated. 

performCollectionForceUpperCase

protected void performCollectionForceUpperCase(String fieldNamePrefix,
                                               BusinessObject bo,
                                               MaintainableCollectionDefinition collectionDefinition,
                                               Map fieldValues)
Deprecated. 

performFieldForceUpperCase

protected void performFieldForceUpperCase(BusinessObject bo,
                                          Map fieldValues)
Deprecated. 

isExternalBusinessObject

public boolean isExternalBusinessObject()
Deprecated. 
By default a maintainable is not external

Specified by:
isExternalBusinessObject in interface Maintainable
Overrides:
isExternalBusinessObject in class MaintainableImpl
Returns:
boolean true if the data object is an external business object, false if not
See Also:
Maintainable.isExternalBusinessObject()

prepareBusinessObject

public void prepareBusinessObject(BusinessObject businessObject)
Deprecated. 
Description copied from interface: Maintainable
Gives chance to a maintainable object to prepare and return a maintainable object which might be external to the system

See Also:
Maintainable#getExternalBusinessObject()

deleteBusinessObject

public void deleteBusinessObject()
Deprecated. 

isOldBusinessObjectInDocument

public boolean isOldBusinessObjectInDocument()
Deprecated. 

getPersistenceStructureService

protected PersistenceStructureService getPersistenceStructureService()
Deprecated. 

getBusinessObjectDictionaryService

protected BusinessObjectDictionaryService getBusinessObjectDictionaryService()
Deprecated. 

getPersonService

protected PersonService getPersonService()
Deprecated. 

getBusinessObjectMetaDataService

protected BusinessObjectMetaDataService getBusinessObjectMetaDataService()
Deprecated. 

getBusinessObjectAuthorizationService

protected BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
Deprecated. 

getDocumentHelperService

protected DocumentHelperService getDocumentHelperService()
Deprecated. 

setPersistenceStructureService

public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated. 

setBusinessObjectDictionaryService

public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
Deprecated. 

setPersonService

public void setPersonService(PersonService personService)
Deprecated. 

setBusinessObjectMetaDataService

public void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
Deprecated. 

setBusinessObjectAuthorizationService

public void setBusinessObjectAuthorizationService(BusinessObjectAuthorizationService businessObjectAuthorizationService)
Deprecated. 

setDocumentHelperService

public void setDocumentHelperService(DocumentHelperService documentHelperService)
Deprecated. 

getMaintenanceDocumentDictionaryService

public MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
Deprecated. 

setMaintenanceDocumentDictionaryService

public void setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
Deprecated. 


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