|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl org.kuali.rice.krad.maintenance.MaintainableImpl org.kuali.rice.kns.maintenance.KualiMaintainableImpl
@Deprecated public class KualiMaintainableImpl
Base Maintainable class to hold things common to all maintainables.
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 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, cleanViewAfterRender, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults |
Field Detail |
---|
protected PersistableBusinessObject businessObject
protected Map<String,PersistableBusinessObject> newCollectionLines
protected Map<String,Boolean> inactiveRecordDisplay
protected Set<String> newCollectionLineNames
protected transient PersistenceStructureService persistenceStructureService
protected transient BusinessObjectDictionaryService businessObjectDictionaryService
protected transient PersonService personService
protected transient BusinessObjectMetaDataService businessObjectMetaDataService
protected transient BusinessObjectAuthorizationService businessObjectAuthorizationService
protected transient DocumentHelperService documentHelperService
protected transient MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
Constructor Detail |
---|
public KualiMaintainableImpl()
public KualiMaintainableImpl(PersistableBusinessObject businessObject)
businessObject
- Method Detail |
---|
public Map populateBusinessObject(Map<String,String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall)
Maintainable
Maintainable#populateBusinessObject(java.util.Map,
org.kuali.rice.krad.maintenance.MaintenanceDocument, String)
protected Map<String,String> decryptEncryptedData(Map<String,String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall)
fieldValues
- - possibly with encrypted values
protected boolean shouldFieldBeEncrypted(MaintenanceDocument maintenanceDocument, String fieldName, MaintenanceDocumentRestrictions auths, String methodToCall)
maintenanceDocument
- fieldName
- auths
- methodToCall
-
public List getSections(MaintenanceDocument document, Maintainable oldMaintainable)
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
public List<Section> getCoreSections(MaintenanceDocument document, Maintainable oldMaintainable)
public void saveBusinessObject()
Maintainable
Maintainable.saveBusinessObject()
public void saveDataObject()
Maintainable.saveBusinessObject()
in order
to support KNS maintainables.
saveDataObject
in interface Maintainable
saveDataObject
in class MaintainableImpl
Maintainable.saveDataObject()
public String getMaintainableTitle()
public void setupNewFromExisting(MaintenanceDocument document, Map<String,String[]> parameters)
public boolean isBoNotesEnabled()
public boolean isNotesEnabled()
isNotesEnabled
in interface Maintainable
isNotesEnabled
in class MaintainableImpl
Maintainable.isNotesEnabled()
public void refresh(String refreshCaller, Map fieldValues, MaintenanceDocument document)
Maintainable
Impls will be needed if custom action is needed on
refresh.
protected void refreshReferences(String referencesToRefresh)
public void addMultipleValueLookupResults(MaintenanceDocument document, String collectionName, Collection<PersistableBusinessObject> rawValues, boolean needsBlank, PersistableBusinessObject bo)
public List<String> getDuplicateIdentifierFieldsFromDataDictionary(String docTypeName, String collectionName)
docTypeName
- collectionName
- public List<String> getMultiValueIdentifierList(Collection maintCollection, List<String> duplicateIdentifierFields)
public boolean hasBusinessObjectExisted(BusinessObject bo, List<String> existingIdentifierList, List<String> duplicateIdentifierFields)
public void prepareBusinessObjectForAdditionFromMultipleValueLookup(String collectionName, BusinessObject bo)
public void processAfterCopy(MaintenanceDocument document, Map<String,String[]> parameters)
KualiMaintainableImpl#processAfterCopy()
public void processAfterEdit(MaintenanceDocument document, Map<String,String[]> requestParameters)
public void processAfterNew(MaintenanceDocument document, Map<String,String[]> requestParameters)
public void processAfterPost(MaintenanceDocument document, Map<String,String[]> requestParameters)
public void setDataObject(Object object)
Maintainable
setDataObject
in interface Maintainable
setDataObject
in class MaintainableImpl
object
- - data object instanceMaintainable.setDataObject(java.lang.Object)
public String getDocumentTitle(MaintenanceDocument document)
public PersistableBusinessObject getBusinessObject()
Maintainable
public void setBusinessObject(PersistableBusinessObject businessObject)
Maintainable
businessObject
- Sets the instance of a business object that will be
maintained.public Class getBoClass()
public void setBoClass(Class boClass)
boClass
- The boClass to set.public void setGenerateDefaultValues(String docTypeName)
Maintainable
Maintainable#setGenerateDefaultValues()
public void setGenerateBlankRequiredValues(String docTypeName)
Maintainable
Maintainable#setGenerateBlankRequiredValues()
@Deprecated public void processAfterAddLine(String colName, Class colClass)
public void processBeforeAddLine(String colName, Class colClass, BusinessObject addBO)
Maintainable
Maintainable.processBeforeAddLine(java.lang.String,
java.lang.Class, org.kuali.rice.krad.bo.BusinessObject)
public boolean getShowInactiveRecords(String collectionName)
Maintainable
collectionName
- - name of the collection (or sub-collection) to check inactive
record display setting
Maintainable.getShowInactiveRecords(java.lang.String)
public void setShowInactiveRecords(String collectionName, boolean showInactive)
Maintainable
collectionName
- - name of the collection (or sub-collection) to set inactive
record display settingshowInactive
- - true to display inactive, false to not display inactive
recordsMaintainable.setShowInactiveRecords(java.lang.String,
boolean)
public Map<String,Boolean> getInactiveRecordDisplay()
Maintainable
public void addNewLineToCollection(String collectionName)
Maintainable
public PersistableBusinessObject getNewCollectionLine(String collectionName)
Maintainable
public PersistableBusinessObject initNewCollectionLine(String collectionName)
public Map<String,String> populateNewCollectionLines(Map<String,String> fieldValues, MaintenanceDocument maintenanceDocument, String methodToCall)
Maintainable
Maintainable#populateNewCollectionLines(java.util.Map)
protected Map populateNewSubCollectionLines(MaintainableCollectionDefinition parentCollection, Map fieldValues)
public Collection<String> getAffectedReferencesFromLookup(BusinessObject baseBO, String attributeName, String collectionPrefix)
SelectiveReferenceRefresher
getAffectedReferencesFromLookup
in interface SelectiveReferenceRefresher
attributeName
- the name of the attribute with a quickfinder of the maintained BO.
protected boolean isRelationshipRefreshable(Class boClass, String relationshipName)
protected Collection<String> generateAllAffectedReferences(Class boClass, Map<String,String> fkToPkMappings, String nestedBOPrefix, String collectionPrefix)
protected Collection<String> getAllRefreshableReferences(Class boClass)
protected void setNewCollectionLineDefaultValues(String collectionName, PersistableBusinessObject addLine)
public void clearBusinessObjectOfRestrictedValues(MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
Maintainable
MaintenanceDocumentRestrictions
instance.
This method should only be called if this maintainable represents the new
maintainable of the maintenance document.
Maintainable.clearBusinessObjectOfRestrictedValues(org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictions)
protected void clearCollectionRestrictedValues(String fieldNamePrefix, BusinessObject businessObject, MaintainableCollectionDefinition collectionDefinition, MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
protected void clearFieldRestrictedValues(String fieldNamePrefix, BusinessObject businessObject, MaintainableFieldDefinition fieldDefinition, MaintenanceDocumentRestrictions maintenanceDocumentRestrictions)
protected void performForceUpperCase(Map fieldValues)
protected void performFieldForceUpperCase(String fieldNamePrefix, BusinessObject bo, MaintainableFieldDefinition fieldDefinition, Map fieldValues)
protected void performCollectionForceUpperCase(String fieldNamePrefix, BusinessObject bo, MaintainableCollectionDefinition collectionDefinition, Map fieldValues)
protected void performFieldForceUpperCase(BusinessObject bo, Map fieldValues)
public boolean isExternalBusinessObject()
isExternalBusinessObject
in interface Maintainable
isExternalBusinessObject
in class MaintainableImpl
Maintainable.isExternalBusinessObject()
public void prepareBusinessObject(BusinessObject businessObject)
Maintainable
Maintainable#getExternalBusinessObject()
public void deleteBusinessObject()
public boolean isOldBusinessObjectInDocument()
protected PersistenceStructureService getPersistenceStructureService()
protected BusinessObjectDictionaryService getBusinessObjectDictionaryService()
protected PersonService getPersonService()
protected BusinessObjectMetaDataService getBusinessObjectMetaDataService()
protected BusinessObjectAuthorizationService getBusinessObjectAuthorizationService()
protected DocumentHelperService getDocumentHelperService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
public void setPersonService(PersonService personService)
public void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
public void setBusinessObjectAuthorizationService(BusinessObjectAuthorizationService businessObjectAuthorizationService)
public void setDocumentHelperService(DocumentHelperService documentHelperService)
public MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
public void setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |