Package com.orchestranetworks.schema
Interface TableRefFilterContext
-
- All Superinterfaces:
DependenciesDefinitionContext
,SchemaNodeContext
public interface TableRefFilterContext extends DependenciesDefinitionContext
Provides methods for setting up aTableRefFilter
in the context of its data model.- See Also:
SchemaFacetTableRef
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFilterErrorMessage(String anErrorMessage)
Adds a static non-localized error message to this filter.void
addFilterErrorMessage(String anErrorMessage, Locale aLocale)
Adds a static localized error message to this filter.void
setFilterForSearch(String anXPathPredicate)
Specifies an XPath filter that will be applied in the user interface to perform a search on the associated foreign key field.void
setFilterValidationMessage(UserMessageLocalized aUserMessage)
Sets a static validation message on this filter.-
Methods inherited from interface com.orchestranetworks.schema.DependenciesDefinitionContext
addDependencyToInsertAndDelete, addDependencyToInsertAndDelete, addDependencyToInsertAndDeleteInOtherInstance, addDependencyToInsertAndDeleteInOtherInstance, addDependencyToInsertDeleteAndModify, addDependencyToInsertDeleteAndModify, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToInsertDeleteAndModifyInOtherInstance, addDependencyToModify, addDependencyToModify
-
Methods inherited from interface com.orchestranetworks.schema.SchemaNodeContext
addError, addError, addInfo, addMessage, addWarning, getSchemaNode
-
-
-
-
Method Detail
-
addFilterErrorMessage
void addFilterErrorMessage(String anErrorMessage, Locale aLocale)
Adds a static localized error message to this filter. This localized error message will be displayed to the end user at validation time if a record is not accepted by this filter.- Throws:
IllegalStateException
- if a validation message has already been set using the methodsetFilterValidationMessage(UserMessageLocalized)
.- See Also:
addFilterErrorMessage(String)
-
addFilterErrorMessage
void addFilterErrorMessage(String anErrorMessage)
Adds a static non-localized error message to this filter. This error message will be used by default and will be displayed to the end user at validation time if no error messages are defined for a given locale.- Throws:
IllegalStateException
- if a validation message has already been set using the methodsetFilterValidationMessage(UserMessageLocalized)
.- See Also:
addFilterErrorMessage(String, Locale)
-
setFilterValidationMessage
void setFilterValidationMessage(UserMessageLocalized aUserMessage)
Sets a static validation message on this filter. This message will be displayed to the end user at validation time if a record is not accepted by this filter.This method also allows specifying the severity of the message added at validation time if a record is not accepted by this filter.
- Throws:
IllegalStateException
- if a default or localized error message has already been set using the methodaddFilterErrorMessage(String)
oraddFilterErrorMessage(String, Locale)
.- See Also:
TableRefFilter.getValidationMessage(com.onwbp.adaptation.Adaptation, com.orchestranetworks.instance.ValueContext)
-
setFilterForSearch
void setFilterForSearch(String anXPathPredicate)
Specifies an XPath filter that will be applied in the user interface to perform a search on the associated foreign key field. The result displayed in the combo-box used to perform a search in the user interface will only include the records which satisfy the specified filter.- Throws:
IllegalArgumentException
-- if the specified predicate is
null
; - if the specified predicate contains contextual criterion (such as
${../aField}
); - if the specified predicate is invalid.
- if the specified predicate is
- Since:
- 5.8.1
-
-