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.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 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 StringgetName()Get the name of the ContentStore-foldervoidSet the name of the ContentStore-folderMethods 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
-
Method Details
-
getName
Get the name of the ContentStore-folder- Specified by:
getNamein 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 == trueand will be unified on the server if it is necessary.- Parameters:
uidSuggestion- of the new content nodetableTemplate- thetabletemplatethe new content node will be based onunifyUidOnServer- iftruethe given uid will be unified on server if necessary, otherwise aDuplicateReferenceNameExceptionwill be thrown, if an element with the given uid in the samenamescopealready exists on the serverlanguage2displayNameMapping- mapping of language to language specific displayname; used to createLanguageInfonodes, optional -> can benull- Returns:
- the new created content2 instance
- Throws:
DuplicateReferenceNameException- if unifyNameOnServer isfalseand 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:
LockExceptionElementDeletedException- 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- iffalseaDuplicateReferenceNameExceptionmay be thrown, iftruethe 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==falseand 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 createLanguageInfonodesunifyUid- iffalseaDuplicateReferenceNameExceptionmay be thrown, iftruethe 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==falseand the given uidSuggestion is not unique on the serverElementDeletedException- Since:
- 4.0.14
-