|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.kns.inquiry.KualiInquirableImpl
public class KualiInquirableImpl
Kuali inquirable implementation. Implements methods necessary to retrieve the business object and render the ui. NOTE: this class is not thread safe. When using this class or any subclasses in Spring, make sure that this is not a singleton service, or serious errors may occur.
Field Summary | |
---|---|
protected Class |
businessObjectClass
|
protected BusinessObjectDictionaryService |
businessObjectDictionaryService
|
protected BusinessObjectMetaDataService |
businessObjectMetaDataService
|
protected static BusinessObjectService |
businessObjectService
|
protected DataDictionaryService |
dataDictionaryService
|
protected EncryptionService |
encryptionService
|
protected Map<String,Boolean> |
inactiveRecordDisplay
|
static String |
INQUIRY_TITLE_PREFIX
|
protected KualiConfigurationService |
kualiConfigurationService
|
private static org.apache.log4j.Logger |
LOG
|
protected LookupService |
lookupService
|
protected PersistenceStructureService |
persistenceStructureService
|
static List<Class> |
SUPER_CLASS_TRANSLATOR_LIST
A list that can be used to define classes that are superclasses or superinterfaces of kuali objects where those objects' inquiry URLs need to use the name of the superclass or superinterface as the business object class attribute (see {@link RiceConstants#BUSINESS_OBJECT_CLASS_ATTRIBUTE) |
Constructor Summary | |
---|---|
KualiInquirableImpl()
Default constructor, initializes services from spring |
Method Summary | |
---|---|
void |
addAdditionalSections(List columns,
BusinessObject bo)
|
protected String |
createTitleText(Class<? extends BusinessObject> boClass)
creates the title text for a given BO |
BusinessObject |
getBusinessObject(Map fieldValues)
Return a business object by searching with map, the map keys should be a property name of the business object, with the map value as the value to search for. |
Class |
getBusinessObjectClass()
|
BusinessObjectDictionaryService |
getBusinessObjectDictionaryService()
|
BusinessObjectMetaDataService |
getBusinessObjectMetaDataService()
|
BusinessObjectService |
getBusinessObjectService()
|
DataDictionaryService |
getDataDictionaryService()
|
EncryptionService |
getEncryptionService()
|
String |
getHtmlMenuBar()
|
protected HtmlData.AnchorHtmlData |
getHyperLink(Class inquiryClass,
Map<String,String> fieldList,
String inquiryUrl)
|
protected HtmlData.AnchorHtmlData |
getHyperLink(Class inquiryClass,
Map<String,String> fieldList,
String inquiryUrl,
String displayText)
|
Map<String,Boolean> |
getInactiveRecordDisplay()
Returns the Map used to control the state of inactive record collection display. |
HtmlData |
getInquiryUrl(BusinessObject businessObject,
String attributeName,
boolean forceInquiry)
Helper method to build an inquiry url for a result field. |
protected HtmlData.AnchorHtmlData |
getInquiryUrlForPrimaryKeys(Class clazz,
Object businessObject,
List<String> primaryKeys,
String displayText)
|
protected KualiConfigurationService |
getKualiConfigurationService()
Retrieves the KualiConfigurationService . |
LookupService |
getLookupService()
|
PersistenceStructureService |
getPersistenceStructureService()
|
List<Section> |
getSections(BusinessObject bo)
Objects extending KualiInquirableBase must specify the Section objects used to display the inquiry result. |
boolean |
getShowInactiveRecords(String collectionName)
Indicates whether inactive records for the given collection should be display. |
String |
getTitle()
|
void |
setBusinessObjectClass(Class businessObjectClass)
|
void |
setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
|
void |
setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setEncryptionService(EncryptionService encryptionService)
|
void |
setKualiConfigurationService(KualiConfigurationService kualiConfigurationService)
|
void |
setLookupService(LookupService lookupService)
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
|
void |
setShowInactiveRecords(String collectionName,
boolean showInactive)
Indicates to maintainble whether or not inactive records should be displayed for the given collection name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
protected LookupService lookupService
protected BusinessObjectDictionaryService businessObjectDictionaryService
protected BusinessObjectMetaDataService businessObjectMetaDataService
protected PersistenceStructureService persistenceStructureService
protected DataDictionaryService dataDictionaryService
protected EncryptionService encryptionService
protected KualiConfigurationService kualiConfigurationService
protected static BusinessObjectService businessObjectService
protected Class businessObjectClass
protected Map<String,Boolean> inactiveRecordDisplay
public static List<Class> SUPER_CLASS_TRANSLATOR_LIST
public static final String INQUIRY_TITLE_PREFIX
Constructor Detail |
---|
public KualiInquirableImpl()
Method Detail |
---|
public BusinessObject getBusinessObject(Map fieldValues)
getBusinessObject
in interface Inquirable
public List<Section> getSections(BusinessObject bo)
getSections
in interface Inquirable
public HtmlData getInquiryUrl(BusinessObject businessObject, String attributeName, boolean forceInquiry)
getInquiryUrl
in interface Inquirable
bo
- the business object instance to build the urls forpropertyName
- the property which links to an inquirable
protected HtmlData.AnchorHtmlData getHyperLink(Class inquiryClass, Map<String,String> fieldList, String inquiryUrl)
protected String createTitleText(Class<? extends BusinessObject> boClass)
boClass
- the BO class
public void addAdditionalSections(List columns, BusinessObject bo)
addAdditionalSections
in interface Inquirable
public String getHtmlMenuBar()
getHtmlMenuBar
in interface Inquirable
Inquirable.getHtmlMenuBar()
public String getTitle()
getTitle
in interface Inquirable
Inquirable.getTitle()
public Class getBusinessObjectClass()
public void setBusinessObjectClass(Class businessObjectClass)
setBusinessObjectClass
in interface Inquirable
businessObjectClass
- The businessObjectClass to set.public Map<String,Boolean> getInactiveRecordDisplay()
Inquirable
getInactiveRecordDisplay
in interface Inquirable
Inquirable.getInactiveRecordDisplay()
public boolean getShowInactiveRecords(String collectionName)
Inquirable
getShowInactiveRecords
in interface Inquirable
collectionName
- - name of the collection (or sub-collection) to check inactive record display setting
Inquirable.getShowInactiveRecords(java.lang.String)
public void setShowInactiveRecords(String collectionName, boolean showInactive)
Inquirable
setShowInactiveRecords
in interface Inquirable
collectionName
- - name of the collection (or sub-collection) to set inactive record display settingshowInactive
- - true to display inactive, false to not display inactive recordsInquirable.setShowInactiveRecords(java.lang.String, boolean)
public LookupService getLookupService()
public void setLookupService(LookupService lookupService)
public BusinessObjectDictionaryService getBusinessObjectDictionaryService()
public void setBusinessObjectDictionaryService(BusinessObjectDictionaryService businessObjectDictionaryService)
public PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
public DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
public EncryptionService getEncryptionService()
public void setEncryptionService(EncryptionService encryptionService)
protected KualiConfigurationService getKualiConfigurationService()
KualiConfigurationService
. In the event that instances of this class are not created as Spring beans,
override this method to return an instance from the service locator.
public void setKualiConfigurationService(KualiConfigurationService kualiConfigurationService)
public BusinessObjectMetaDataService getBusinessObjectMetaDataService()
public void setBusinessObjectMetaDataService(BusinessObjectMetaDataService businessObjectMetaDataService)
public BusinessObjectService getBusinessObjectService()
protected HtmlData.AnchorHtmlData getInquiryUrlForPrimaryKeys(Class clazz, Object businessObject, List<String> primaryKeys, String displayText)
protected HtmlData.AnchorHtmlData getHyperLink(Class inquiryClass, Map<String,String> fieldList, String inquiryUrl, String displayText)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |