Interface GCAFolder
- All Superinterfaces:
Comparable<StoreElement>
,HistoryProvider
,IDProvider
,StoreElement
,StoreElementFolder
,Workflowable
- All Known Subinterfaces:
GlobalContentArea
This interface represents folders in
globalstore
- 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
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 TypeMethodDescriptioncreateGCAFolder
(String uidSuggestion) Create a new GCA-folder as a subfolder of this folder.createGCAFolder
(String uidSuggestion, boolean unifyUid) Create a new GCA-folder as a subfolder of this folder.createGCAFolder
(String uid, Map<Language, String> lang2DisplayName, boolean unifyUid) Create a new GCAFolder as a subfolder of this folder.createGCAPage
(String uidSuggestion, Template pageTemplate) Create a new Page in the current GCA-folder based on the givenPageTemplate
createGCAPage
(String uidSuggestion, Template pageTemplate, boolean unifyUid) Create a new Page in the current GCA-Folder based on the givenPageTemplate
createGCAPage
(String uidSuggestion, Template pageTemplate, boolean unifyUid, Map<Language, String> lang2DisplayName) Create a new Page in the current GCA-Folder based on the givenPageTemplate
@NotNull String
getName()
Get the name of the GCA-foldervoid
Set the name of the GCA-folderMethods 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, getReleaseRevision, getReleaseStatus, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, 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, 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
-
createGCAFolder
Create a new GCA-folder as a subfolder of this folder. The given uidSuggestion will be unified on the server if necessary. CallscreateGCAFolder(uidSuggestion, true)
- Parameters:
uidSuggestion
- the suggestion for theuid
of the created folder- Returns:
- the created GCAFolder
- Throws:
LockException
- if this GCAFolder is locked in a different session on the serverElementDeletedException
- Since:
- 3.0
- See Also:
-
createGCAFolder
GCAFolder createGCAFolder(String uidSuggestion, boolean unifyUid) throws LockException, DuplicateReferenceNameException, ElementDeletedException Create a new GCA-folder as a subfolder of this folder.- Parameters:
uidSuggestion
- the suggestion for theuid
of the created folderunifyUid
- usetrue
if the given uidSuggestion should be unified on the server,false
otherwise- Returns:
- the created GCAFolder
- Throws:
LockException
- if this GCAFolder is locked in a different session on the serverDuplicateReferenceNameException
- ifunifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
- Since:
- 4.0
-
createGCAFolder
GCAFolder createGCAFolder(String uid, Map<Language, String> lang2DisplayName, boolean unifyUid) throws ElementDeletedException, LockException, DuplicateReferenceNameExceptionCreate a new GCAFolder as a subfolder of this folder.- Parameters:
uid
- uid of the new PageFolderlang2DisplayName
- mapping of language to language specific displayname; used to createLanguageInfo
nodesunifyUid
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
the uid will be unified on the server if necessary- Returns:
- GCAFolder 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 exits on the serverElementDeletedException
- Since:
- 4.0.90
-
createGCAPage
GCAPage createGCAPage(String uidSuggestion, Template pageTemplate) throws IOException, LockException, DuplicateReferenceNameException, ElementDeletedException Create a new Page in the current GCA-folder based on the givenPageTemplate
- Parameters:
uidSuggestion
- the suggestion for theuid
of the created pagepageTemplate
-PageTemplate
on which the new GCAPage will be based- Returns:
- the created GCAPage
- Throws:
LockException
- if this GCAFolder is locked in a different session on the serverDuplicateReferenceNameException
- if the given uidSuggestion is not unique on the serverIOException
ElementDeletedException
- Since:
- 3.0
-
createGCAPage
GCAPage createGCAPage(String uidSuggestion, Template pageTemplate, boolean unifyUid) throws LockException, DuplicateReferenceNameException, ElementDeletedException Create a new Page in the current GCA-Folder based on the givenPageTemplate
- Parameters:
uidSuggestion
- the suggestion for theuid
of the created pagepageTemplate
-PageTemplate
on which the new GCAPage will be basedunifyUid
- usetrue
if the given uidSuggestion should be unified on the server,false
otherwise- Returns:
- the created GCAPage
- Throws:
LockException
- if this GCAFolder is locked in a different session on the serverDuplicateReferenceNameException
- ifunifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
- Since:
- 4.0
-
createGCAPage
GCAPage createGCAPage(String uidSuggestion, Template pageTemplate, boolean unifyUid, Map<Language, String> lang2DisplayName) throws LockException, DuplicateReferenceNameException, ElementDeletedExceptionCreate a new Page in the current GCA-Folder based on the givenPageTemplate
- Parameters:
uidSuggestion
- the suggestion for theuid
of the created pagepageTemplate
-PageTemplate
on which the new GCAPage will be basedunifyUid
- usetrue
if the given uidSuggestion should be unified on the server,false
otherwiselang2DisplayName
- mapping of language to language specific displayname; used to createLanguageInfo
nodes- Returns:
- the created GCAPage
- Throws:
LockException
- if this GCAFolder is locked in a different session on the serverDuplicateReferenceNameException
- ifunifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
- Since:
- 4.1.10
-
getName
Get the name of the GCA-folder- Specified by:
getName
in interfaceStoreElement
- Returns:
- name of the GCA-folder
- Since:
- 3.0
-
setName
Set the name of the GCA-folder- Parameters:
name
- name of the GCA-folder- Throws:
LockException
- Since:
- 3.0
-