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 class
Legacy 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 TypeMethodDescriptionboolean
Convenience API forgetAllowChoose()
returning a boolean value.boolean
Convenience API forgetAllowDelete()
returning a boolean value.boolean
Convenience API forgetAllowEdit()
returning a boolean value.boolean
Convenience API forgetAllowNew()
returning a boolean value.boolean
Indicates 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 String
Return 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 DatasetMode
getMode()
The dataset representation mode (SiteArchitect only setting)The dataset selector mode.Content nodes to choose from.Returns aTransferConstraint
object for this element, which describes the store element based transfer restrictions.int
height()
Convenience API forgetHeight()
returning an integer value.@NotNull DatasetMode
mode()
Convenience API returning a non-null value forgetMode()
Convenience API returning a non-null value forgetSelectorMode()
void
setAllowChoose
(YesNo allowChoose) Sets if it is allowed to choose existing data entries.void
setAllowDelete
(YesNo delete) Sets if it is allowed to delete entries.void
setAllowEdit
(YesNo value) Sets if it is allowed to edit entries.void
setAllowNew
(YesNo value) Sets if it is allowed to add new entries.void
setAllowsDelete
(YesNo delete) Deprecated.since 4.2 - usesetAllowDelete(YesNo)
insteadvoid
setHeight
(PositiveInteger height) Sets the component height in pixels.void
setIndexTreatment
(@Nullable Treatment treatment) Sets the treatment option for following associations.void
Legacy - set the reference to table template for conversion from CMS_INPUT_OBJECTCHOOSERvoid
setMode
(DatasetMode mode) Define the dataset representation mode (SiteArchitect only setting)void
setSelectorMode
(DatasetSelectorMode selectorMode) Define the dataset selector mode.sources()
Convenience API forgetSources()
returning a list of strings.void
validate
(GomCheckable.Context context) Validates the form element's state with respect to the given context.void
verify()
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, usesLanguages
Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in 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:AbstractGomFormElement
Provides language dependent information on this form element, like a label and description for multiple languages.- Specified by:
getLangInfos
in interfaceGomLangInfoProvider
- Overrides:
getLangInfos
in classAbstractGomFormElement
- Returns:
- A language information container.
-
getLabelFactory
Description copied from interface:LabelFactoryProvider
Get a label factory.- Specified by:
getLabelFactory
in 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:
getIndexTreatment
in interfaceGomIndexTreatment
- Returns:
- The desired indexing treatment.
- Since:
- 5.2.12
-
setIndexTreatment
Sets the treatment option for following associations.- Specified by:
setIndexTreatment
in interfaceGomIndexTreatment
- Parameters:
treatment
- The treatment to be used.- Since:
- 5.2.12
-
verify
Description copied from class:AbstractGomFormElement
Verifies the form element's state. In this generic part, checks for the required name and language information.- Specified by:
verify
in interfaceGomCheckable
- Overrides:
verify
in classAbstractGomFormElement
- Throws:
IllegalStateException
- if any requirement is violated.
-
validate
Description copied from class:AbstractGomFormElement
Validates the form element's state with respect to the given context. This generic stub does not check anything.- Specified by:
validate
in interfaceGomCheckable
- Overrides:
validate
in classAbstractGomFormElement
- Parameters:
context
- The context to validate for, must not benull
.- Throws:
GomValidationError
- if any requirement is violated.
-
getTransferConstraints
Description copied from interface:GomTransferReceiver
Returns aTransferConstraint
object for this element, which describes the store element based transfer restrictions.- Specified by:
getTransferConstraints
in interfaceGomTransferReceiver
- Parameters:
broker
- Broker for requesting services or providers.- Returns:
- transfer constraint
-
allowsNew
public boolean allowsNew()Convenience API forgetAllowNew()
returning a boolean value.- Returns:
true
if it is allowed to add new entries,false
otherwise- Since:
- 4.2
-
allowsEdit
public boolean allowsEdit()Convenience API forgetAllowEdit()
returning a boolean value.- Returns:
true
if it is allowed to edit entries,false
otherwise- Since:
- 4.2
-
allowsDelete
public boolean allowsDelete()Convenience API forgetAllowDelete()
returning a boolean value.- Returns:
true
if it is allowed to delete entries,false
otherwise- Since:
- 4.2
-
allowsChoosing
public boolean allowsChoosing()Convenience API forgetAllowChoose()
returning a boolean value.- Returns:
true
if it is allowed to choose existing data entries,false
otherwise- 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:RelationEnabling
Indicates whether foreign key relationships are supported as value source.- Specified by:
allowsRelations
in 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.DIALOG
if unset. - Since:
- 4.2
-
selectorMode
Convenience API returning a non-null value forgetSelectorMode()
- Returns:
- The mode or
DatasetSelectorMode.DIALOG
if unset. - Since:
- 5.1.504
-
getAllowDelete()
instead