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.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDProvider.UidTypeUid type as returned byIDProvider.getUidType().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 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 StringgetName()Deprecated.Methods inherited from interface java.lang.Comparable
compareToMethods 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, 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
-
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:
ElementDeletedExceptionLockException- 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- iffalseaDuplicateReferenceNameExceptionmay be thrown, iftruea 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 isfalseand 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 createLanguageInfonodesensureUnique- iffalseaDuplicateReferenceNameExceptionmay be thrown, iftruea 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 isfalseand 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 uniqueElementDeletedExceptionLockException- 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- iffalseaDuplicateReferenceNameExceptionmay be thrown, iftruea 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 == falseElementDeletedException- 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- iffalseaDuplicateReferenceNameExceptionmay be thrown, iftruea unique name will be created on the server if necessarylang2DisplayName- mapping of language to language specific displayname; used to createLanguageInfonodes- Returns:
- new page
- Throws:
LockException- if this pagefolder is locked in a different sessionDuplicateReferenceNameException- if the given uid isn't unqique andunifyUid == falseElementDeletedException- Since:
- 4.1.11
-
getName
Deprecated.since 4.1.10 - useIDProvider.getUid()Get the unique name of the PageStore-folder- Specified by:
getNamein interfaceStoreElement- Returns:
- unique name of the PageStore-folder
- Since:
- 3.0
-
IDProvider.getUid()