Interface TableTemplate
- All Superinterfaces:
ChannelSourceProvider,Comparable<StoreElement>,DatasetProvider,GomSourceProvider,HistoryProvider,IDProvider,MasterTemplate,PackagePoolItem,PreviewImageProvider,Referenceable,RulesetContainer,RulesetContainer,SectionTemplate,SnippetContainer,StoreElement,Template,TemplateContentProvider,TemplateStoreElement,Workflowable
Interface for templates defining GUI for content store.
- Since:
- 3.0.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceType providing information on a mapping of a field to a column.Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TableTemplate.Mapping[]Empty mappings.static final IDProvider.UidTypeThe template's UID type.Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOWFields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASEDFields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIEDFields inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
CONTENT_TEMPLATE, LINK_TEMPLATE, PAGE_TEMPLATE, SECTION_TEMPLATE -
Method Summary
Modifier and TypeMethodDescription@NotNull EntityTypeProvides the entity type (the db table) this template bases upon.@NotNull TableTemplate.Mapping[]Shortcut forgetMappings(false)@NotNull TableTemplate.Mapping[]getMappings(boolean release) Provides an array ofTableTemplate.Mappings, whose entries are safe to change with no feedback to this template.getMappings(TableTemplate.Mapping[] oldMappings, GomEditorProvider gomProvider) Convenience method forgetMappings(oldMappings, gomProvider, false).getMappings(TableTemplate.Mapping[] oldMappings, GomEditorProvider gomProvider, boolean release) Get theTableTemplate.Mappings for this template based on the given GOM provider.Provides a reference key of this template.intHeight of displayed rows (in line numbers).@NotNull SchemaGets the schema.longGet the project local id of this template.@NotNull IDProvider.UidTypeReturnsUID_TYPE.booleanReturnstrueif the user is allowed to copy entities.voidsetCopyAllowed(boolean value) Enable or disable the possibility to copy entities.voidsetMappings(TableTemplate.Mapping[] mappings) Set theTableTemplate.Mappings for this template.voidsetRowHeight(int value) Set the height of the displayed rows to the given value.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSourceMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.contentstore.DatasetProvider
createDataset, getDataset, getDatasetMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSourceMethods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistoryMethods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseRevision, getReleaseStatus, getReleaseStatus, getRevision, getUid, hasMeta, hasUid, isInReleaseStore, isInReleaseStore, isReachableInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUidMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.MasterTemplate
getExtensions, getPreviewPageRef, getTemplateExtension, hasMultiPageParamsProviderEditor, hasPreviewPageRef, setPreviewPageRefMethods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.PreviewImageProvider
getPreviewImage, setPreviewImageMethods inherited from interface de.espirit.firstspirit.access.store.Referenceable
getReferenceNameMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.RulesetContainer
getRulesetDefinition, setRulesetDefinitionMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.SnippetContainer
getSnippet, setSnippetMethods 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, getReferences, 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, toXmlMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.Template
getComment, getType, isHidden, setComment, setHiddenMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocumentMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStoreMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
The template's UID type.- Since:
- 4.0.20
-
EMPTY_MAPPINGS
Empty mappings.- Since:
- 3.0
-
-
Method Details
-
getEntityType
Provides the entity type (the db table) this template bases upon.- Specified by:
getEntityTypein interfaceDatasetProvider- Returns:
- The entity type.
- Throws:
EntityTypeNotFoundException- when a referenced entity type (database table) does not exist.- Since:
- 4.0.13
-
getRefKey
String getRefKey()Provides a reference key of this template.- Returns:
- The reference key.
- Since:
- 3.0
-
getSchema
Gets the schema.- Specified by:
getSchemain interfaceDatasetProvider- Returns:
- Provides the schema.
- Since:
- 3.0
-
getMappings
Shortcut forgetMappings(false)- Since:
- 3.0
-
getMappings
Provides an array ofTableTemplate.Mappings, whose entries are safe to change with no feedback to this template.- Since:
- 3.0.127
-
getMappings
TableTemplate.Mapping[] getMappings(TableTemplate.Mapping[] oldMappings, GomEditorProvider gomProvider) throws IOException Convenience method forgetMappings(oldMappings, gomProvider, false).- Throws:
IOException- Since:
- 4.0
-
getMappings
TableTemplate.Mapping[] getMappings(TableTemplate.Mapping[] oldMappings, GomEditorProvider gomProvider, boolean release) throws IOException Get theTableTemplate.Mappings for this template based on the given GOM provider. The provided entries are safe to change with no feedback to this template.- Parameters:
oldMappings- The old mappings.gomProvider- The GOM provider object.release- Iftrue, returns on release state.- Returns:
- The mappings for this template.
- Throws:
IOException- If the mappings could not be read.- Since:
- 4.0
-
setMappings
Set theTableTemplate.Mappings for this template.- Since:
- 3.0
-
getUidType
ReturnsUID_TYPE.- Specified by:
getUidTypein interfaceIDProvider- Returns:
UID_TYPE- Since:
- 4.0.20
- See Also:
-
getRowHeight
int getRowHeight()Height of displayed rows (in line numbers). Default value is 1.- Returns:
- row height in number of lines
- Since:
- 4.1.27
-
setRowHeight
void setRowHeight(int value) Set the height of the displayed rows to the given value.- Parameters:
value- The height that should be set for the displayed rows.- Throws:
IllegalArgumentException- if provided value is below 1- Since:
- 4.1.27
- See Also:
-
isCopyAllowed
boolean isCopyAllowed()Returnstrueif the user is allowed to copy entities.- Since:
- 4.1.18
-
setCopyAllowed
void setCopyAllowed(boolean value) Enable or disable the possibility to copy entities.- Parameters:
value- new state- Since:
- 4.1.18
- See Also:
-
getTemplateId
long getTemplateId()Get the project local id of this template.- Specified by:
getTemplateIdin interfaceMasterTemplate- Returns:
- Project local id of this template.
- Since:
- 3.0
-