Interface ProjectProperties
- All Superinterfaces:
Comparable<StoreElement>,DataProvider,HistoryProvider,IDProvider,StoreElement,TemplateProvider<PageTemplate>,Workflowable
Interface providing means to operate on project properties.
Project properties can be retrieved by calling GlobalStoreRoot.getProjectProperties().
- Since:
- 3.0
-
Nested Class Summary
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
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, RELEASED -
Method Summary
Modifier and TypeMethodDescription@NotNull PageTemplateReturns the template for this project properties or throws aReferenceNotFoundExceptionif no template is defined or defined template couldn't be found.booleanIndicates whether a project properties template is defined or not.voidsetTemplate(@Nullable PageTemplate template) Sets the template for this project properties.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.pagestore.DataProvider
clearCachedData, getData, getFormData, setData, setFormDataMethods 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, getUidType, 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.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, 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.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getTemplate
Returns the template for this project properties or throws aReferenceNotFoundExceptionif no template is defined or defined template couldn't be found.- Specified by:
getTemplatein interfaceTemplateProvider<PageTemplate>- Returns:
- the template of type <T>
- Throws:
ReferenceNotFoundException- if the template is missing- Since:
- 3.0
- See Also:
-
setTemplate
Sets the template for this project properties.- Parameters:
template- new template ornull- Since:
- 4.1.25
- See Also:
-
isTemplateDefined
boolean isTemplateDefined()Indicates whether a project properties template is defined or not. If this method returnsfalsea call ofgetTemplate()will throw aReferenceNotFoundException- Returns:
trueif a template is defined for this project properties,falseotherwise- Since:
- 4.2.33
- See Also:
-