Interface ContentFolder
- All Superinterfaces:
Comparable<StoreElement>
,HistoryProvider
,IDProvider
,StoreElement
,StoreElementFolder
,Workflowable
- All Known Subinterfaces:
ContentStoreRoot
This interface provides methods to handle the ContentStore-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
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 TypeMethodDescriptionaddContent
(TableTemplate table, String name) Creates and returns a content2 node based on the given template.createContent
(TableTemplate tableTemplate, String uidSuggestion, @Nullable Map<Language, String> language2displayNameMapping, boolean unifyUidOnServer) Creates a new content node in this folder.createContentFolder
(String uidSuggestion) createContentFolder
(String uidSuggestion, boolean unifyUid) Create a new ContentFolder as child of this folder.createContentFolder
(String uidSuggestion, @Nullable Map<Language, String> lang2DisplayName, boolean unifyUid) Create a new ContentFolder as child of this folder.@NotNull String
getName()
Get the name of the ContentStore-foldervoid
Set the name of the ContentStore-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, 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
-
Method Details
-
getName
Get the name of the ContentStore-folder- Specified by:
getName
in interfaceStoreElement
- Returns:
- name of the ContentStore-folder
- Since:
- 3.0
-
setName
Set the name of the ContentStore-folder- Parameters:
name
- name of the ContentStore-folder- Since:
- 3.0
-
addContent
Creates and returns a content2 node based on the given template.- Parameters:
table
- The table template.name
- The uid suggestion.- Returns:
- The created content2 element.
- Throws:
LockException
- If this content folder is locked in another session.ElementDeletedException
- Since:
- 3.0
- See Also:
-
createContent
Content2 createContent(TableTemplate tableTemplate, String uidSuggestion, @Nullable @Nullable Map<Language, String> language2displayNameMapping, boolean unifyUidOnServer) throws LockException, ElementDeletedException, DuplicateReferenceNameExceptionCreates a new content node in this folder. The given name is used as suggestion ifunifyNameOnServer == true
and will be unified on the server if it is necessary.- Parameters:
uidSuggestion
- of the new content nodetableTemplate
- thetabletemplate
the new content node will be based onunifyUidOnServer
- iftrue
the given uid will be unified on server if necessary, otherwise aDuplicateReferenceNameException
will be thrown, if an element with the given uid in the samenamescope
already exists on the serverlanguage2displayNameMapping
- mapping of language to language specific displayname; used to createLanguageInfo
nodes, optional -> can benull
- Returns:
- the new created content2 instance
- Throws:
DuplicateReferenceNameException
- if unifyNameOnServer isfalse
and an element with the given uid in the same namescope already exits on the serverLockException
- if this content folder is locked in another sessionElementDeletedException
- Since:
- 4.0.39
-
createContentFolder
ContentFolder createContentFolder(String uidSuggestion) throws LockException, ElementDeletedException - Throws:
LockException
ElementDeletedException
- Since:
- 4.1.11
-
createContentFolder
ContentFolder createContentFolder(String uidSuggestion, boolean unifyUid) throws LockException, ElementDeletedException Create a new ContentFolder as child of this folder.- Parameters:
uidSuggestion
- uidSuggestion of the new ContentFolderunifyUid
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
the name will be unified on the server if necessary- Returns:
- the new created ContentFolder
- Throws:
LockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- ifunifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
- Since:
- 4.1.11
-
createContentFolder
ContentFolder createContentFolder(String uidSuggestion, @Nullable @Nullable Map<Language, String> lang2DisplayName, boolean unifyUid) throws LockException, ElementDeletedExceptionCreate a new ContentFolder as child of this folder.- Parameters:
uidSuggestion
- uidSuggestion of the new ContentFolderlang2DisplayName
- lang2DisplayName mapping of language to language specific displayname; used to createLanguageInfo
nodesunifyUid
- iffalse
aDuplicateReferenceNameException
may be thrown, iftrue
the name will be unified on the server if necessary- Returns:
- the new created ContentFolder
- Throws:
LockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- ifunifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
- Since:
- 4.0.14
-