Interface PageFolder
- All Superinterfaces:
Comparable<StoreElement>
,HistoryProvider
,IDProvider
,StoreElement
,StoreElementFolder
,Workflowable
- All Known Subinterfaces:
PageStoreRoot
This interface provides methods to handle the PageStore-folder
- Since:
- 3.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
Modifier and TypeFieldDescriptionstatic final IDProvider.UidType
Uid type as returned byIDProvider.getUidType()
.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 TypeMethodDescriptioncreatePage
(String name, Template pageTemplate) Create a new Page in the current PageStore-folder based on the given PageTemplate.createPage
(String uid, Template pageTemplate, boolean ensureUnique) Create a new page in this folder with the given uid and template.createPage
(String uid, Template pageTemplate, boolean ensureUnique, Map<Language, String> lang2DisplayName) Create a new page in this folder with the given uid and template.createPageFolder
(String name) Create a new PageStore-folder as a subfolder of the current.createPageFolder
(String uid, boolean ensureUnique) Create a new PageFolder as child of this folder.createPageFolder
(String uid, Map<Language, String> lang2DisplayName, boolean ensureUnique) Create a new PageFolder as child of this folder.@NotNull String
getName()
Deprecated.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, 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
-
Field Details
-
UID_TYPE
Uid type as returned byIDProvider.getUidType()
.- Since:
- 4.0.29
-
-
Method Details
-
createPageFolder
Create a new PageStore-folder as a subfolder of the current. CallscreatePageFolder(name, true)
- Parameters:
name
- name of the new PageStore-folder- Returns:
- PageStore-folder as an object
- Throws:
ElementDeletedException
LockException
- Since:
- 3.0
-
createPageFolder
PageFolder createPageFolder(String uid, boolean ensureUnique) throws ElementDeletedException, LockException, DuplicateReferenceNameException Create a new PageFolder as child of this folder.- Parameters:
uid
- uid of the new PageFolderensureUnique
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
a unique name will be created on the server if necessary- Returns:
- PageFolder as an object
- Throws:
LockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- if unifyNameOnServer isfalse
and an element with the given uid in the same namescope already exists on the serverElementDeletedException
- Since:
- 4.0.34
-
createPageFolder
PageFolder createPageFolder(String uid, Map<Language, String> lang2DisplayName, boolean ensureUnique) throws ElementDeletedException, LockException, DuplicateReferenceNameExceptionCreate a new PageFolder as child of this folder.- Parameters:
uid
- uid of the new PageFolderlang2DisplayName
- mapping of language to language specific displayname; used to createLanguageInfo
nodesensureUnique
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
a unique name will be created on the server if necessary- Returns:
- PageFolder as an object
- Throws:
LockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- if unifyNameOnServer isfalse
and an element with the given uid in the same namescope already exists on the serverElementDeletedException
- Since:
- 4.0.34
-
createPage
Create a new Page in the current PageStore-folder based on the given PageTemplate. Same ascreatePage(uid, pageTemplate, false)
- Parameters:
name
- name of the new PagepageTemplate
- PageTemplate on which the new Page will be based- Returns:
- Page as an object
- Throws:
DuplicateReferenceNameException
- if the given uid isn't uniqueElementDeletedException
LockException
- Since:
- 3.0
-
createPage
Page createPage(String uid, Template pageTemplate, boolean ensureUnique) throws ElementDeletedException, LockException Create a new page in this folder with the given uid and template.- Parameters:
uid
- uid of the page to be createdpageTemplate
- template instance of the page to be createdensureUnique
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
a unique name will be created on the server if necessary- Returns:
- new page
- Throws:
LockException
- if this pagefolder is locked in a different sessionDuplicateReferenceNameException
- if the given uid isn't unqique andunifyUid == false
ElementDeletedException
- Since:
- 4.0.15
-
createPage
Page createPage(String uid, Template pageTemplate, boolean ensureUnique, Map<Language, String> lang2DisplayName) throws ElementDeletedException, LockExceptionCreate a new page in this folder with the given uid and template.- Parameters:
uid
- uid of the page to be createdpageTemplate
- template instance of the page to be createdensureUnique
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
a unique name will be created on the server if necessarylang2DisplayName
- mapping of language to language specific displayname; used to createLanguageInfo
nodes- Returns:
- new page
- Throws:
LockException
- if this pagefolder is locked in a different sessionDuplicateReferenceNameException
- if the given uid isn't unqique andunifyUid == false
ElementDeletedException
- Since:
- 4.1.11
-
getName
Deprecated.since 4.1.10 - useIDProvider.getUid()
Get the unique name of the PageStore-folder- Specified by:
getName
in interfaceStoreElement
- Returns:
- unique name of the PageStore-folder
- Since:
- 3.0
-
IDProvider.getUid()