org.kuali.rice.krad.datadictionary
Class DataObjectEntry

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.DictionaryBeanBase
      extended by org.kuali.rice.krad.datadictionary.DataDictionaryEntryBase
          extended by org.kuali.rice.krad.datadictionary.DataObjectEntry
All Implemented Interfaces:
Serializable, DataDictionaryEntry, DictionaryBean, Constrainable, MustOccurConstrainable, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
BusinessObjectEntry

public class DataObjectEntry
extends DataDictionaryEntryBase
implements MustOccurConstrainable

Generic dictionary entry for an object that does not have to implement BusinessObject. It provides support for general objects

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

Field Summary
protected  boolean boNotesEnabled
           
protected  Class<?> dataObjectClass
           
protected  Class<? extends Exporter> exporterClass
           
protected  List<String> groupByAttributesForEffectiveDating
           
protected  HelpDefinition helpDefinition
           
protected  List<InactivationBlockingDefinition> inactivationBlockingDefinitions
           
protected  List<MustOccurConstraint> mustOccurConstraints
           
protected  String name
           
protected  String objectDescription
           
protected  String objectLabel
           
protected  List<String> primaryKeys
           
protected  String titleAttribute
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryEntryBase
attributeMap, attributes, collectionMap, collections, complexAttributeMap, complexAttributes, relationshipMap, relationships, stateMapping
 
Constructor Summary
DataObjectEntry()
           
 
Method Summary
 void completeValidation()
          Directly validate simple fields, call completeValidation on Definition fields.
 void completeValidation(ValidationTrace tracer)
          Directly validate simple fields
 Class<?> getDataObjectClass()
           
 Class<?> getEntryClass()
           
 Class<? extends Exporter> getExporterClass()
           
 String getFullClassName()
          Returns the full class name of the underlying object.
 List<String> getGroupByAttributesForEffectiveDating()
          Provides list of attributes that should be used for grouping when performing effective dating logic in the framework
 HelpDefinition getHelpDefinition()
          Gets the helpDefinition attribute.
 List<InactivationBlockingDefinition> getInactivationBlockingDefinitions()
          Gets the inactivationBlockingDefinitions for the Data object
 String getJstlKey()
           
 List<MustOccurConstraint> getMustOccurConstraints()
           
 String getName()
           
 String getObjectDescription()
           
 String getObjectLabel()
           
 List<String> getPrimaryKeys()
           
 String getTitleAttribute()
           
 boolean isBoNotesEnabled()
          Gets the boNotesEnabled flag for the Data object
 void setBoNotesEnabled(boolean boNotesEnabled)
          Setter for the boNotesEnabled flag
 void setDataObjectClass(Class<?> dataObjectClass)
           
 void setExporterClass(Class<? extends Exporter> exporterClass)
           
 void setGroupByAttributesForEffectiveDating(List<String> groupByAttributesForEffectiveDating)
          Setter for the list of attributes to group by
 void setHelpDefinition(HelpDefinition helpDefinition)
          Sets the helpDefinition attribute value.
 void setInactivationBlockingDefinitions(List<InactivationBlockingDefinition> inactivationBlockingDefinitions)
          Setter for the inactivationBlockingDefinitions
 void setMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints)
           
 void setName(String name)
           
 void setObjectDescription(String objectDescription)
          The objectDescription provides a brief description of the business object for use on help screens.
 void setObjectLabel(String objectLabel)
          The objectLabel provides a short name of the business object for use on help screens.
 void setPrimaryKeys(List<String> primaryKeys)
           
 void setTitleAttribute(String titleAttribute)
          The titleAttribute element is the name of the attribute that will be used as an inquiry field when the lookup search results fields are displayed.
 String toString()
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryEntryBase
afterPropertiesSet, getAttributeDefinition, getAttributeNames, getAttributes, getCollectionDefinition, getCollectionNames, getCollections, getComplexAttributes, getRelationshipDefinition, getRelationshipNames, getRelationships, getStateMapping, setAttributes, setCollections, setComplexAttributes, setRelationships, setStateMapping
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
getComponentCode, getNamespaceCode
 

Field Detail

name

protected String name

dataObjectClass

protected Class<?> dataObjectClass

titleAttribute

protected String titleAttribute

objectLabel

protected String objectLabel

objectDescription

protected String objectDescription

primaryKeys

protected List<String> primaryKeys

exporterClass

protected Class<? extends Exporter> exporterClass

mustOccurConstraints

protected List<MustOccurConstraint> mustOccurConstraints

groupByAttributesForEffectiveDating

protected List<String> groupByAttributesForEffectiveDating

helpDefinition

protected HelpDefinition helpDefinition

boNotesEnabled

protected boolean boNotesEnabled

inactivationBlockingDefinitions

protected List<InactivationBlockingDefinition> inactivationBlockingDefinitions
Constructor Detail

DataObjectEntry

public DataObjectEntry()
Method Detail

completeValidation

public void completeValidation()
Description copied from class: DataDictionaryEntryBase
Directly validate simple fields, call completeValidation on Definition fields.

Specified by:
completeValidation in interface DataDictionaryEntry
Overrides:
completeValidation in class DataDictionaryEntryBase

completeValidation

public void completeValidation(ValidationTrace tracer)
Directly validate simple fields

Specified by:
completeValidation in interface DataDictionaryEntry
Overrides:
completeValidation in class DataDictionaryEntryBase
Parameters:
tracer - - Record of object's location
See Also:
DataDictionaryEntry.completeValidation(org.kuali.rice.krad.datadictionary.validator.ValidationTrace)

getJstlKey

public String getJstlKey()
Specified by:
getJstlKey in interface DataDictionaryEntry
Returns:
String used as a globally-unique key for this entry's jstl-exported version
See Also:
DataDictionaryEntry.getJstlKey()

getFullClassName

public String getFullClassName()
Description copied from interface: DataDictionaryEntry
Returns the full class name of the underlying object.

Specified by:
getFullClassName in interface DataDictionaryEntry
See Also:
DataDictionaryEntry.getFullClassName()

getEntryClass

public Class<?> getEntryClass()
Specified by:
getEntryClass in class DataDictionaryEntryBase
See Also:
DataDictionaryEntryBase.getEntryClass()

getDataObjectClass

public Class<?> getDataObjectClass()
Returns:
the dataObjectClass

setDataObjectClass

public void setDataObjectClass(Class<?> dataObjectClass)
Parameters:
dataObjectClass - the dataObjectClass to set

getName

public String getName()
Specified by:
getName in interface Constrainable
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getObjectLabel

public String getObjectLabel()
Returns:
Returns the objectLabel.

setObjectLabel

public void setObjectLabel(String objectLabel)
The objectLabel provides a short name of the business object for use on help screens.

Parameters:
objectLabel - The objectLabel to set.

getObjectDescription

public String getObjectDescription()
Returns:
Returns the description.

setObjectDescription

public void setObjectDescription(String objectDescription)
The objectDescription provides a brief description of the business object for use on help screens.

Parameters:
objectDescription - The description to set

getHelpDefinition

public HelpDefinition getHelpDefinition()
Gets the helpDefinition attribute.

Returns:
Returns the helpDefinition.

setHelpDefinition

public void setHelpDefinition(HelpDefinition helpDefinition)
Sets the helpDefinition attribute value. The objectHelp element provides the keys to obtain a help description from the system parameters table. parameterNamespace the namespace of the parameter containing help information parameterName the name of the parameter containing help information parameterDetailType the detail type of the parameter containing help information

Parameters:
helpDefinition - The helpDefinition to set.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getMustOccurConstraints

public List<MustOccurConstraint> getMustOccurConstraints()
Specified by:
getMustOccurConstraints in interface MustOccurConstrainable
Returns:
the mustOccurConstraints

setMustOccurConstraints

public void setMustOccurConstraints(List<MustOccurConstraint> mustOccurConstraints)
Parameters:
mustOccurConstraints - the mustOccurConstraints to set

getTitleAttribute

public String getTitleAttribute()
Returns:
the titleAttribute

setTitleAttribute

public void setTitleAttribute(String titleAttribute)
The titleAttribute element is the name of the attribute that will be used as an inquiry field when the lookup search results fields are displayed. For some business objects, there is no obvious field to serve as the inquiry field. in that case a special field may be required for inquiry purposes.


getPrimaryKeys

public List<String> getPrimaryKeys()
Returns:
the primaryKeys

setPrimaryKeys

public void setPrimaryKeys(List<String> primaryKeys)
Parameters:
primaryKeys - the primaryKeys to set

getExporterClass

public Class<? extends Exporter> getExporterClass()

setExporterClass

public void setExporterClass(Class<? extends Exporter> exporterClass)

getGroupByAttributesForEffectiveDating

public List<String> getGroupByAttributesForEffectiveDating()
Provides list of attributes that should be used for grouping when performing effective dating logic in the framework

Returns:
List list of attributes to group by

setGroupByAttributesForEffectiveDating

public void setGroupByAttributesForEffectiveDating(List<String> groupByAttributesForEffectiveDating)
Setter for the list of attributes to group by

Parameters:
groupByAttributesForEffectiveDating -

isBoNotesEnabled

public boolean isBoNotesEnabled()
Gets the boNotesEnabled flag for the Data object

true indicates that notes and attachments will be permanently associated with the business object false indicates that notes and attachments are associated with the document used to create or edit the business object.

Returns:
the boNotesEnabled flag

setBoNotesEnabled

public void setBoNotesEnabled(boolean boNotesEnabled)
Setter for the boNotesEnabled flag


getInactivationBlockingDefinitions

public List<InactivationBlockingDefinition> getInactivationBlockingDefinitions()
Gets the inactivationBlockingDefinitions for the Data object

Returns:
the list of InactivationBlockingDefinition

setInactivationBlockingDefinitions

public void setInactivationBlockingDefinitions(List<InactivationBlockingDefinition> inactivationBlockingDefinitions)
Setter for the inactivationBlockingDefinitions



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