public interface ContentFolder extends IDProvider, StoreElementFolder
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
Content2 |
addContent(TableTemplate table,
String name) |
Content2 |
createContent(TableTemplate tableTemplate,
String uidSuggestion,
Map<Language,String> language2displayNameMapping,
boolean unifyUidOnServer)
Creates a new content node in this folder.
|
ContentFolder |
createContentFolder(String uidSuggestion)
|
ContentFolder |
createContentFolder(String uidSuggestion,
boolean unifyUid)
Create a new ContentFolder as child of this folder.
|
ContentFolder |
createContentFolder(String uidSuggestion,
Map<Language,String> lang2DisplayName,
boolean unifyUid)
Create a new ContentFolder as child of this folder.
|
String |
getName()
Get the name of the ContentStore-folder
|
void |
setName(String name)
Set the name of the ContentStore-folder
|
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, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, 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, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
@NotNull String getName()
getName
in interface StoreElement
void setName(String name)
name
- name of the ContentStore-folderContent2 addContent(TableTemplate table, String name) throws LockException, ElementDeletedException
LockException
ElementDeletedException
Content2 createContent(TableTemplate tableTemplate, String uidSuggestion, @Nullable Map<Language,String> language2displayNameMapping, boolean unifyUidOnServer) throws LockException, ElementDeletedException, DuplicateReferenceNameException
unifyNameOnServer == true
and will be unified on the server if it is necessary.uidSuggestion
- of the new content nodetableTemplate
- the tabletemplate
the new content node will be based onunifyUidOnServer
- if true
the given uid will be unified on server if necessary,
otherwise a DuplicateReferenceNameException
will be thrown, if an element with the given uid in the same namescope
already exists on the serverlanguage2displayNameMapping
- mapping of language to language specific displayname; used to create LanguageInfo
nodes, optional -> can be null
DuplicateReferenceNameException
- if unifyNameOnServer is false
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
ContentFolder createContentFolder(String uidSuggestion) throws LockException, ElementDeletedException
LockException
ElementDeletedException
ContentFolder createContentFolder(String uidSuggestion, boolean unifyUid) throws LockException, ElementDeletedException
uidSuggestion
- uidSuggestion of the new ContentFolderunifyUid
- if false
a DuplicateReferenceNameException
may be thrown, if
true
the name will be unified on the server if necessaryLockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- if unifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
ContentFolder createContentFolder(String uidSuggestion, @Nullable Map<Language,String> lang2DisplayName, boolean unifyUid) throws LockException, ElementDeletedException
uidSuggestion
- uidSuggestion of the new ContentFolderlang2DisplayName
- lang2DisplayName mapping of language to language specific displayname; used to create LanguageInfo
nodesunifyUid
- if false
a DuplicateReferenceNameException
may be thrown, if
true
the name will be unified on the server if necessaryLockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- if unifyUid==false
and the given uidSuggestion is not unique on the serverElementDeletedException
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500