Class GomDataset
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomFormElement
de.espirit.firstspirit.access.store.templatestore.gom.GomDataset
- All Implemented Interfaces:
LabelFactoryProvider,GomCheckable,GomElement,GomFormElement,GomHideable,GomIndexTreatment,GomLangInfoProvider,GomSearchRelevancy,GomTransferReceiver,LineBreakable,RelationEnabling,Serializable
@NonExtendable
public class GomDataset
extends AbstractGomFormElement
implements RelationEnabling, LabelFactoryProvider, GomTransferReceiver, GomIndexTreatment
Choose objects from a content store view
- Since:
- 4.2
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLegacy table templateNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanConvenience API forgetAllowChoose()returning a boolean value.booleanConvenience API forgetAllowDelete()returning a boolean value.booleanConvenience API forgetAllowEdit()returning a boolean value.booleanConvenience API forgetAllowNew()returning a boolean value.booleanIndicates whether foreign key relationships are supported as value source.Convenience API forgetLangInfos()returning a map fromGomLangInfo#toString()toGomExpressionLangInfo.getExpression().Indicates if it is allowed to choose existing data entries.Indicates if it is allowed to delete entries.Indicates if it is allowed to edit entries.Indicates if it is allowed to add new entries.Deprecated.protected StringReturn the default tag for a gom element.Component height in pixels.Provides the treatment option for following associations.@NotNull LabelFactory<? extends Label>Get a label factory.Provides language dependent information on this form element, like a label and description for multiple languages.Legacy - reference to table template for conversion from CMS_INPUT_OBJECTCHOOSER@Nullable DatasetModegetMode()The dataset representation mode (SiteArchitect only setting)The dataset selector mode.Content nodes to choose from.Returns aTransferConstraintobject for this element, which describes the store element based transfer restrictions.intheight()Convenience API forgetHeight()returning an integer value.@NotNull DatasetModemode()Convenience API returning a non-null value forgetMode()Convenience API returning a non-null value forgetSelectorMode()voidsetAllowChoose(YesNo allowChoose) Sets if it is allowed to choose existing data entries.voidsetAllowDelete(YesNo delete) Sets if it is allowed to delete entries.voidsetAllowEdit(YesNo value) Sets if it is allowed to edit entries.voidsetAllowNew(YesNo value) Sets if it is allowed to add new entries.voidsetAllowsDelete(YesNo delete) Deprecated.since 4.2 - usesetAllowDelete(YesNo)insteadvoidsetHeight(PositiveInteger height) Sets the component height in pixels.voidsetIndexTreatment(@Nullable Treatment treatment) Sets the treatment option for following associations.voidLegacy - set the reference to table template for conversion from CMS_INPUT_OBJECTCHOOSERvoidsetMode(DatasetMode mode) Define the dataset representation mode (SiteArchitect only setting)voidsetSelectorMode(DatasetSelectorMode selectorMode) Define the dataset selector mode.sources()Convenience API forgetSources()returning a list of strings.voidvalidate(GomCheckable.Context context) Validates the form element's state with respect to the given context.voidverify()Verifies the form element's state.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomFormElement
allowsEmpty, breaks, clone, convertEntities, description, fillsHorizontally, getAllowEmpty, getConvertEntities, getDefaultValue, getHFill, getHidden, getLabel, getName, getNoBreak, getPreset, getSearchRelevancy, getUseLanguages, isHidden, label, name, preset, setAllowEmpty, setConvertEntities, setDefaultValue, setHFill, setHidden, setLabel, setLabelAndDescription, setName, setNoBreak, setPreset, setSearchRelevancy, setUseLanguages, usesLanguagesMethods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfigurationMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
TAG
The tag of this component- Since:
- 4.2
- See Also:
-
-
Constructor Details
-
GomDataset
public GomDataset()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomElementReturn the default tag for a gom element.- Specified by:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
-
getAllowNew
Indicates if it is allowed to add new entries.- Since:
- 4.2
-
setAllowNew
Sets if it is allowed to add new entries.- Since:
- 4.2
-
getAllowChoose
Indicates if it is allowed to choose existing data entries.- Since:
- 3.0
-
setAllowChoose
Sets if it is allowed to choose existing data entries.- Since:
- 3.0
-
getAllowEdit
Indicates if it is allowed to edit entries.- Since:
- 4.2
-
setAllowEdit
Sets if it is allowed to edit entries.- Since:
- 4.2
-
getAllowDelete
Indicates if it is allowed to delete entries.- Since:
- 4.2
-
setAllowDelete
Sets if it is allowed to delete entries.- Since:
- 4.2
-
setAllowsDelete
Deprecated.since 4.2 - usesetAllowDelete(YesNo)insteadSets if it is allowed to delete entries.- Since:
- 4.2
-
getAllowsDelete
Deprecated.since 4.2 - usegetAllowDelete()insteadIndicates if it is allowed to delete entries.- Since:
- 4.2
-
getSources
Content nodes to choose from.- Since:
- 4.2
-
getHeight
Component height in pixels.- Since:
- 4.2
-
setHeight
Sets the component height in pixels.- Since:
- 4.2
-
getLegacytemplate
Legacy - reference to table template for conversion from CMS_INPUT_OBJECTCHOOSER- Since:
- 4.2.402
-
setLegacytemplate
Legacy - set the reference to table template for conversion from CMS_INPUT_OBJECTCHOOSER- Since:
- 4.2.402
-
getLangInfos
Description copied from class:AbstractGomFormElementProvides language dependent information on this form element, like a label and description for multiple languages.- Specified by:
getLangInfosin interfaceGomLangInfoProvider- Overrides:
getLangInfosin classAbstractGomFormElement- Returns:
- A language information container.
-
getLabelFactory
Description copied from interface:LabelFactoryProviderGet a label factory.- Specified by:
getLabelFactoryin interfaceLabelFactoryProvider- Returns:
- The label factory.
-
getMode
The dataset representation mode (SiteArchitect only setting)- Since:
- 4.2
-
setMode
Define the dataset representation mode (SiteArchitect only setting)- Since:
- 4.2
-
getSelectorMode
The dataset selector mode. Will be ignored when operating in Combobox mode. (SiteArchitect only setting)- Since:
- 5.1.504
-
setSelectorMode
Define the dataset selector mode. Will be ignored when operating in Combobox mode. (SiteArchitect only setting)- Since:
- 5.1.504
-
getIndexTreatment
Provides the treatment option for following associations.- Specified by:
getIndexTreatmentin interfaceGomIndexTreatment- Returns:
- The desired indexing treatment.
- Since:
- 5.2.12
-
setIndexTreatment
Sets the treatment option for following associations.- Specified by:
setIndexTreatmentin interfaceGomIndexTreatment- Parameters:
treatment- The treatment to be used.- Since:
- 5.2.12
-
verify
Description copied from class:AbstractGomFormElementVerifies the form element's state. In this generic part, checks for the required name and language information.- Specified by:
verifyin interfaceGomCheckable- Overrides:
verifyin classAbstractGomFormElement- Throws:
IllegalStateException- if any requirement is violated.
-
validate
Description copied from class:AbstractGomFormElementValidates the form element's state with respect to the given context. This generic stub does not check anything.- Specified by:
validatein interfaceGomCheckable- Overrides:
validatein classAbstractGomFormElement- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- if any requirement is violated.
-
getTransferConstraints
Description copied from interface:GomTransferReceiverReturns aTransferConstraintobject for this element, which describes the store element based transfer restrictions.- Specified by:
getTransferConstraintsin interfaceGomTransferReceiver- Parameters:
broker- Broker for requesting services or providers.- Returns:
- transfer constraint
-
allowsNew
public boolean allowsNew()Convenience API forgetAllowNew()returning a boolean value.- Returns:
trueif it is allowed to add new entries,falseotherwise- Since:
- 4.2
-
allowsEdit
public boolean allowsEdit()Convenience API forgetAllowEdit()returning a boolean value.- Returns:
trueif it is allowed to edit entries,falseotherwise- Since:
- 4.2
-
allowsDelete
public boolean allowsDelete()Convenience API forgetAllowDelete()returning a boolean value.- Returns:
trueif it is allowed to delete entries,falseotherwise- Since:
- 4.2
-
allowsChoosing
public boolean allowsChoosing()Convenience API forgetAllowChoose()returning a boolean value.- Returns:
trueif it is allowed to choose existing data entries,falseotherwise- Since:
- 4.2
-
height
public int height()Convenience API forgetHeight()returning an integer value.- Returns:
- the height of the component in pixels.
- Since:
- 4.2
-
sources
Convenience API forgetSources()returning a list of strings.- Returns:
- the names of all sources in the same order as defined in
getSources(). May return an empty list but nevernull. - Since:
- 4.2
-
allowsRelations
public boolean allowsRelations()Description copied from interface:RelationEnablingIndicates whether foreign key relationships are supported as value source.- Specified by:
allowsRelationsin interfaceRelationEnabling- Returns:
true, if supported.
-
expressions
Convenience API forgetLangInfos()returning a map fromGomLangInfo#toString()toGomExpressionLangInfo.getExpression().- Returns:
- A map from the string representation to the expression. May be empty but never
null. - Since:
- 4.2
-
mode
Convenience API returning a non-null value forgetMode()- Returns:
- The mode or
DatasetMode.DIALOGif unset. - Since:
- 4.2
-
selectorMode
Convenience API returning a non-null value forgetSelectorMode()- Returns:
- The mode or
DatasetSelectorMode.DIALOGif unset. - Since:
- 5.1.504
-
getAllowDelete()instead