Interface GomSourceProvider
- All Superinterfaces:
Comparable<StoreElement>
,HistoryProvider
,IDProvider
,StoreElement
,Workflowable
- All Known Subinterfaces:
LinkTemplate
,MasterTemplate
,PageTemplate
,Script
,SectionTemplate
,StyleTemplate
,TableFormatTemplate
,TableTemplate
,Template
,Workflow
The GOM (gui object model) describes the input form presented to the end user (editor).
You can read and set the xml (getGomSource()
, setGomSource(String)
), the object model
(getGomProvider()
, setGomProvider(GomEditorProvider)
), and default values (getDefaults()
,
setDefaults(Data)
)
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProvider
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
-
Field Summary
Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Fields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the form data containing the form's default values.Get this template's GOM provider containing the hierarchical definition of the templates GUI including structure and input elements.Get the source for a GOM based interface description.void
setDefaults
(Data data) Deprecated.since 5.0.100 UsesetFormDefaults(FormData)
instead.void
setFormDefaults
(FormData formData) Set the default values via a form data object.void
setGomProvider
(GomEditorProvider gomProvider) Set the GOM provider to be used by this template.void
setGomSource
(String xml) Set the xml describing the template form.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistory
Methods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml
Methods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getGomSource
String getGomSource()Get the source for a GOM based interface description.- Returns:
- The GOM source.
- Since:
- 4.0
-
setGomSource
Set the xml describing the template form.- Parameters:
xml
- The form defining xml.- Throws:
ParsingError
- if the xml is not valid.- Since:
- 4.2
-
getFormDefaults
FormData getFormDefaults()Get the form data containing the form's default values.- Returns:
- The defaults containing form data.
- Since:
- 5.0.100
-
setFormDefaults
Set the default values via a form data object. Use thefallback language
to define fallback values in given defaults form data.- Parameters:
formData
- The defaults containing form data.- Since:
- 5.0.100
- See Also:
-
getDefaults
Deprecated.since 5.0.100 UsegetFormDefaults()
instead.Get the defaults data object.- Returns:
- The data containing defaults.
- Throws:
ParsingError
- If the current template's XML failed to be parsed.- Since:
- 4.0
-
setDefaults
Deprecated.since 5.0.100 UsesetFormDefaults(FormData)
instead.Set the defaults data object.- Parameters:
data
- the default data- Since:
- 4.0
-
getGomProvider
Get this template's GOM provider containing the hierarchical definition of the templates GUI including structure and input elements.- Returns:
- The GuiXML provider.
- Throws:
ParsingError
- If the current template's XML failed to be parsed.- Since:
- 4.0
-
setGomProvider
Set the GOM provider to be used by this template.- Parameters:
gomProvider
- The GOM provider.- Throws:
ParsingError
- If an error occurred while processing the provider.GomValidationError
- If the current template is valid.- Since:
- 4.0
-
getFormDefaults()
instead.