|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aurel.track.fieldType.runtime.base.AbstractFieldTypeRT
public abstract class AbstractFieldTypeRT
The base class for runtime field types with typical default implementations
| Constructor Summary | |
|---|---|
AbstractFieldTypeRT()
|
|
| Method Summary | |
|---|---|
java.util.Map |
getInternalDependences(java.lang.Integer fieldID)
Get the map of internal dependences - key: a String of fieldID and parameterCode combination (parameterCode is null for system-, or custom single fields) - value: List of parameterCodes as Integers which defines the internal dependencies for this key i.e. the indexes inside the composite this part depends on Important: This makes sense only for parts of a custom composite field and for the custom composite itself Do not override for system or custom single fields |
java.lang.String |
getLuceneValue(java.lang.Object value)
Typically the value itself converted to string But there are some exceptions where the toString() doesn't work as expected. |
MatcherConverter |
getMatcherConverter()
Gets the Matcher converter corresponding to the type |
java.util.List |
getMatcherDataSource(java.lang.Integer fieldID,
java.lang.Integer personID,
java.util.Locale locale)
Loads the datasource for the matcher |
IMatcherDT |
getMatcherDT(java.lang.Integer fieldID)
Creates the matcher object for configuring the matcher |
IMatcherRT |
getMatcherRT(java.lang.Integer fieldID,
int relation,
java.lang.Object matchValue,
MatcherContext replacementContext)
Creates the matcher object for executing the matcher |
java.lang.String |
getShowISOValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Object value,
DropDownContainer dropDownContainer)
Get the ISO value to be shown typically the show ISO value is the show value This map is typically used for date and number values formatted by iso format for locale independent exporting to xml |
java.lang.String |
getShowValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Object value,
DropDownContainer dropDownContainer)
Get the value to be shown For text fields typically the field value itself For selects the (eventaully localized) label corresponding to the value |
java.lang.String |
getShowValue(java.lang.Object value,
java.util.Locale locale)
Get the value to be shown For text fields typically the field value itself For selects the (eventually localized) label corresponding to the value |
java.lang.Object |
getSortOrderValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Object value,
DropDownContainer dropDownContainer)
Get the sort order related to the value Not defined for every field, only a few select fields has extra sortOrder columns |
java.util.Map |
getSystemDependences(java.lang.Integer fieldID)
Get the map of system dependences - key: a String of fieldID and parameterCode combination (parameterCode is null for system-, or custom single fields) - value: List of system fieldsIDs as Integers which defines the system dependencies for this part Important: The dependences on project and issueType are hardcoded so only the other system dependences should be specified |
java.util.Map |
getValidators(java.lang.Integer fieldID,
TFieldConfigBean fieldConfigBean,
java.lang.Integer parameterCode,
java.lang.Object settingsObject,
TWorkItemBean workItemBean)
It would be enough to introduce getValidators() only at InputFieldType level (and return a null from procesLoadValidators() of this class) but than the composite fields (implementing CustomCompositeFieldTypeRT) would not call the getValidators() defined in them because CustomCompositeFieldTypeRT does not implement InputFieldType just AbstractFieldTypeRT and the procesLoadValidators() from this class would return always null |
boolean |
isCalculated(java.lang.Integer fieldID,
java.lang.Integer parameterCode)
Whether this field is a calculated field If calculated and dependent from other fields then changing the dependee should trigger the recalculation of this field |
boolean |
isGroupable()
Whether the field should appear in the groupable fields list Typically fields which are typically unique should not be groupable |
boolean |
isLong()
Whether this field is a long text because then the read only rendering (on the report overview, printItem, etc.) |
boolean |
isoDiffersFromLocaleSpecific()
Returns whether the iso show value differs from the locale specific show value for this field type. |
boolean |
isUserPicker()
Whether this field is a UserPicker Special care should be taken by user pickers because of the notification (automail) A person may receive an automail just because he/she is selected in a userPicker |
java.util.Map |
procesLoadValidators(java.lang.Integer fieldID,
TFieldConfigBean fieldConfigBean,
java.lang.Integer parameterCode,
java.lang.Object settingsObject,
TWorkItemBean workItemBean)
Validates an attribute for a field and returns the resource key(s) in case of validation error |
void |
processDefaultValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Integer validConfig,
java.util.Map fieldSettings,
TWorkItemBean workItemBean)
Loads a default attribute for a new issue |
void |
processLoadDataSource(SelectContext selectContext,
DropDownContainer dropDownContainer)
Actualizes the dropDownContainer with the datasource for a select type field by editing an existing issue or creating a new issue. |
IMatcherDT |
processLoadMatcherDT(java.lang.Integer fieldID)
Loads the matcher object for configuring the matcher |
IMatcherRT |
processLoadMatcherRT(java.lang.Integer fieldID,
int relation,
java.lang.Object matchValue,
MatcherContext matcherContext)
Loads the matcher object for executing the matcher fieldID would suffice as parameter for loading the specific Matcher, while the other parameters could be set after the matcher is loaded. |
void |
processSave(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
TWorkItemBean workItemBean,
TWorkItemBean workItemBeanOriginal)
Saves a custom attribute to the database |
boolean |
valueModified(java.lang.Object newValue,
java.lang.Object oldValue)
Whether the value have been modified Considered by assembling the history and mail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.aurel.track.fieldType.runtime.base.IFieldTypeRT |
|---|
processLoad |
| Methods inherited from interface com.aurel.track.fieldType.runtime.callbackInterfaces.ILucene |
|---|
getLookupEntityType, getLuceneStored, getLuceneTokenized |
| Constructor Detail |
|---|
public AbstractFieldTypeRT()
| Method Detail |
|---|
public void processSave(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
TWorkItemBean workItemBean,
TWorkItemBean workItemBeanOriginal)
processSave in interface IFieldTypeRTfieldID - parameterCode - workItemBean - workItemBeanOriginal -
public boolean isCalculated(java.lang.Integer fieldID,
java.lang.Integer parameterCode)
isCalculated in interface IFieldTypeRTfieldID - parameterCode -
public boolean valueModified(java.lang.Object newValue,
java.lang.Object oldValue)
valueModified in interface IFieldTypeRTnewValue - oldValue -
public void processDefaultValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Integer validConfig,
java.util.Map fieldSettings,
TWorkItemBean workItemBean)
processDefaultValue in interface IFieldTypeRTfieldID - parameterCode - validConfig - fieldSettings - workItemBean -
public void processLoadDataSource(SelectContext selectContext,
DropDownContainer dropDownContainer)
processLoadDataSource in interface IFieldTypeRTselectContext - dropDownContainer -
public java.util.Map procesLoadValidators(java.lang.Integer fieldID,
TFieldConfigBean fieldConfigBean,
java.lang.Integer parameterCode,
java.lang.Object settingsObject,
TWorkItemBean workItemBean)
procesLoadValidators in interface IFieldTypeRTfieldConfigBean - settingsObject - should be either TTextBoxSettingsBean,
TOptionSettingsBean or TGeneralSettingsBeanattribute - the value to validate
public java.util.Map getValidators(java.lang.Integer fieldID,
TFieldConfigBean fieldConfigBean,
java.lang.Integer parameterCode,
java.lang.Object settingsObject,
TWorkItemBean workItemBean)
fieldID - fieldConfigBean - parameterCode - settingsObject - workItemBean -
public IMatcherDT processLoadMatcherDT(java.lang.Integer fieldID)
processLoadMatcherDT in interface IFieldTypeRTfieldID - public IMatcherDT getMatcherDT(java.lang.Integer fieldID)
fieldID -
public IMatcherRT processLoadMatcherRT(java.lang.Integer fieldID,
int relation,
java.lang.Object matchValue,
MatcherContext matcherContext)
processLoadMatcherRT in interface IFieldTypeRTfieldID - relation - matchValue - matcherContext -
public IMatcherRT getMatcherRT(java.lang.Integer fieldID,
int relation,
java.lang.Object matchValue,
MatcherContext replacementContext)
fieldID -
public java.util.List getMatcherDataSource(java.lang.Integer fieldID,
java.lang.Integer personID,
java.util.Locale locale)
getMatcherDataSource in interface IFieldTypeRTfieldID - personID - locale -
public java.lang.String getShowValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Object value,
DropDownContainer dropDownContainer)
getShowValue in interface IFieldTypeRTfieldID - parameterCode - value - dropDownContainer -
public java.lang.String getShowValue(java.lang.Object value,
java.util.Locale locale)
getShowValue in interface IFieldTypeRTvalue - locale -
public java.lang.String getShowISOValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Object value,
DropDownContainer dropDownContainer)
getShowISOValue in interface IFieldTypeRTfieldID - parameterCode - value - dropDownContainer -
public boolean isoDiffersFromLocaleSpecific()
isoDiffersFromLocaleSpecific in interface IFieldTypeRT
public java.lang.Object getSortOrderValue(java.lang.Integer fieldID,
java.lang.Integer parameterCode,
java.lang.Object value,
DropDownContainer dropDownContainer)
getSortOrderValue in interface IFieldTypeRTfieldID - parameterCode - value - the value the sortorder is looked fordropDownContainer -
public java.util.Map getSystemDependences(java.lang.Integer fieldID)
getSystemDependences in interface IFieldTypeRTpublic java.util.Map getInternalDependences(java.lang.Integer fieldID)
getInternalDependences in interface IFieldTypeRTpublic MatcherConverter getMatcherConverter()
getMatcherConverter in interface IFieldTypeRTpublic java.lang.String getLuceneValue(java.lang.Object value)
getLuceneValue in interface ILucenevalue -
public boolean isUserPicker()
isUserPicker in interface IFieldTypeRTpublic boolean isLong()
isLong in interface IFieldTypeRTpublic boolean isGroupable()
isGroupable in interface IFieldTypeRT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||