Class AbstractInfoboxType
java.lang.Object
ch.tocco.nice2.infobox.impl.infoboxconfiguration.infoboxtypes.AbstractInfoboxType
- All Implemented Interfaces:
InfoboxType
- Direct Known Subclasses:
FreemarkerInfoboxType
,LastUsedInfoboxType
,SearchfilterInfoboxType
,SearchfiltersInfoboxType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Context
protected final DefaultDisplayService
protected final EntityDefaultValueService
protected final L10N
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractInfoboxType
(Context context, DefaultDisplayService defaultDisplayService, EntityDefaultValueService entityDefaultValueService, L10N l10N) -
Method Summary
Modifier and TypeMethodDescriptionprotected Entity
getOrCreateContent
(Entity infobox) loadFormValues
(InitialFormValueResponseBean formBean, Entity infobox) protected List
<InitialFormValueResponseBean.SelectOption> loadRelationOptions
(Entity infobox, String sourceRelation) protected abstract InitialFormValueResponseBean
loadSettingsFormValues
(InitialFormValueResponseBean formBean, Entity infobox) protected void
setRelationValues
(Entity source, Entity target, String relation) protected void
setRelationValues
(Entity source, String sourceRelation, Entity target, String targetRelation) protected abstract void
updateContent
(Entity infobox, Entity sourceContent) void
updateInfobox
(Entity infobox, Entity content) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.infobox.api.InfoboxType
getConfigurationEntityName, getConfigurationRelation, getSettingsEntityName, getType, handleLogicCopy
-
Field Details
-
context
-
defaultDisplayService
-
entityDefaultValueService
-
l10N
-
-
Constructor Details
-
AbstractInfoboxType
protected AbstractInfoboxType(Context context, DefaultDisplayService defaultDisplayService, EntityDefaultValueService entityDefaultValueService, L10N l10N)
-
-
Method Details
-
loadFormValues
public InitialFormValueResponseBean loadFormValues(InitialFormValueResponseBean formBean, Entity infobox) - Specified by:
loadFormValues
in interfaceInfoboxType
-
loadSettingsFormValues
protected abstract InitialFormValueResponseBean loadSettingsFormValues(InitialFormValueResponseBean formBean, Entity infobox) -
updateInfobox
- Specified by:
updateInfobox
in interfaceInfoboxType
-
updateContent
-
loadRelationOptions
protected List<InitialFormValueResponseBean.SelectOption> loadRelationOptions(Entity infobox, String sourceRelation) -
getOrCreateContent
-
setRelationValues
-
setRelationValues
-