public interface SiteStoreFolder extends StartNode, DataProvider
| Example how to modify variables of SiteStoreFolder |
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidTypeHistoryProvider.RevisionProvider| Modifier and Type | Field and Description |
|---|---|
static IDProvider.UidType |
UID_TYPE
Uid type as returned by
IDProvider.getUidType(). |
CHANGED, NEVER_RELEASED, RELEASEDALL_REVISIONS, EVER_SINCE, UNTIL_NOW| Modifier and Type | Method and Description |
|---|---|
DocumentGroup |
createDocumentGroup(String uid,
boolean unifyNameOnServer)
Creates a new document group in this folder.
|
PageGroup |
createPageGroup(String name)
Create a new page-group for the current PageReference.
|
PageRef |
createPageRef(String uid,
Page page)
Create a new page reference entry.
|
PageRef |
createPageRef(String uid,
Page page,
boolean unifyNameOnServer)
Creates a new page reference in this folder.
|
PageRef |
createPageRef(String uid,
Page page,
Map<Language,String> lang2DisplayName,
boolean unifyNameOnServer)
Creates a new page reference in this folder.
|
PageRefFolder |
createPageRefFolder(String uid)
Create a new SiteStore-folder in this folder.
|
PageRefFolder |
createPageRefFolder(String uid,
boolean unifyNameOnServer)
Create a new PageRefFolder as child of this folder.
|
PageRefFolder |
createPageRefFolder(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyNameOnServer)
Create a new PageRefFolder as child of this folder.
|
PageRefFolder |
createPageRefFolder(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyNameOnServer,
IDProvider nextSibling)
Create a new PageRefFolder as child of this folder and place it before the given next sibling.
|
void |
deletePageGroup(PageGroup pageGroup)
Delete the given page-group for the current PageReference
|
StartNode |
findStartNode()
Finds recursive the start node in this sub tree.
|
SiteStoreVariableFormData |
getFormData()
Gets a form data container containing containig all defined sitestore variables.
|
PageGroup[] |
getPageGroups()
Get the list of the page-groups for the current PageReference
|
SiteStoreFolder |
getParentFolder()
Get the parent folder.
|
StartNode |
getStartNode()
Returns the startnode of this folder which is a direct child of this folder or
null if no start node is
defined. |
String |
getStoredUrl(Language language,
TemplateSet templateSet)
Get the stored URL for this node and the provided combination of language and template set.
|
boolean |
isFolder()
All implementing classes must return
true. |
void |
setStartNode(StartNode startNode)
Sets the given StartNode as startnode of this sitestore folder.
|
isStartNodeclearCachedData, getData, setData, setFormDatacontrastWith, 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, setUidappendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getProject, getReferenceName, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, 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, updategetColor, getTask, hasTask, removeTask, setColor, setTaskcompareToasRevisionProvider, getHistory, getHistorystatic final IDProvider.UidType UID_TYPE
IDProvider.getUidType().@Nullable SiteStoreFolder getParentFolder()
SiteStoreRoot or PageRefFolder, or null if the folder is not
part of the tree or the root nodeboolean isFolder()
true.isFolder in interface StoreElementtrueStartNode getStartNode()
null if no start node is
defined.null if no start node is defined.setStartNode(StartNode),
findStartNode()void setStartNode(StartNode startNode)
startNode - The node to set as start node.getStartNode()StartNode findStartNode()
null, e.g. in case this is an empty
folder.null) is instance of PageRef or DocumentGroup and may not be a
direct child of this folder.PageRef or a DocumentGroup or null.getStartNode()PageRefFolder createPageRefFolder(String uid) throws LockException, ElementDeletedException
createPageRefFolder(name, false).uid - uid of the new SiteStore-folderDuplicateReferenceNameException - if an element with the given uid in the same namescope already exists on the serverLockException - If the folder is locked by another session.ElementDeletedException - If the current node has been deleted.PageRefFolder createPageRefFolder(String uid, boolean unifyNameOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
uid - uid of the new PageRefFolderunifyNameOnServer - 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 an element with the given uid in the same namescope already exits on the serverElementDeletedException - if this folder is already deleted on the serverPageRefFolder createPageRefFolder(String uid, Map<Language,String> lang2DisplayName, boolean unifyNameOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
uid - uid of the new PageRefFolderlang2DisplayName - mapping of language to language specific displayname; used to create LanguageInfo nodesunifyNameOnServer - 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 unifyNameOnServer is false and an element with the given uid in the same namescope already exits on the serverElementDeletedException - if this folder is already deleted on the server@NotNull PageRefFolder createPageRefFolder(String uid, Map<Language,String> lang2DisplayName, boolean unifyNameOnServer, IDProvider nextSibling) throws LockException, DuplicateReferenceNameException, ElementDeletedException
uid - The uid of the new PageRefFolderlang2DisplayName - The mapping of language to language specific displayname; used to create
LanguageInfo nodesunifyNameOnServer - if false a DuplicateReferenceNameException may be thrown,
if true the name will be unified on the server if necessarynextSibling - A sibling to add the new child before in order or null to append the new child.LockException - if this folder is locked in another sessionDuplicateReferenceNameException - if unifyNameOnServer is false and an element with the
given uid in the same namescope already exits on the serverElementDeletedException - if this folder is already deleted on the serverPageRef createPageRef(String uid, Page page) throws DuplicateReferenceNameException, LockException, ElementDeletedException
uid - uid of the new pagerefpage - page to which the new reference will be linkedLockException - if this folder is locked in another sessionDuplicateReferenceNameException - if there is already an element with the specified uid in the same namescope on the serverElementDeletedException - if this folder is already deleted on the serverPageRef createPageRef(String uid, Page page, boolean unifyNameOnServer) throws LockException, ElementDeletedException
unifyNameOnServer == true and will be unified on the server if it is necessary.uid - of the new page refpage - page to which the new reference will be linkedunifyNameOnServer - if true the given uid will be unified on server if necessary,
otherwise a DuplicateReferenceNameException will be thrown, if a pageref with the given uid already exists on the serverLockException - if this folder is locked in another sessionDuplicateReferenceNameException - if a pageref with the given uid already exists on the serverElementDeletedException - if this folder is already deleted on the serverPageRef createPageRef(String uid, Page page, Map<Language,String> lang2DisplayName, boolean unifyNameOnServer) throws LockException, ElementDeletedException
unifyNameOnServer == true the given uid
will be unified on server if necessary, otherwise a DuplicateReferenceNameException will be thrown,
if a pageref with the given uid already exists on the server.uid - of the new page refpage - page to which the new reference will be linkedlang2DisplayName - mapping of language to language specific displayname; used to create LanguageInfo nodesunifyNameOnServer - if true the given uid will be unified on server if necessary,
otherwise a DuplicateReferenceNameException will be thrown, if a pageref with the given uid already exists on the serverLockException - if this folder is locked in another sessionDuplicateReferenceNameException - if unifyNameOnServer is false and a pageref with the given uid exists on the serverElementDeletedException - if this folder is already deleted on the serverDocumentGroup createDocumentGroup(String uid, boolean unifyNameOnServer) throws LockException, DuplicateReferenceNameException, LicenseException, ElementDeletedException
unifyNameOnServer == true
and will be unified on the server if it is necessary.uid - of the new document groupunifyNameOnServer - 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 serverLockException - if this folder is locked in another sessionDuplicateReferenceNameException - if unifyNameOnServer == false and an element with the given uid already exists on the serverLicenseException - if the installed FIRSTspirit license has no feature 'DOCUMENTGROUP'ElementDeletedException@NotNull SiteStoreVariableFormData getFormData()
getFormData in interface DataProvider| Example how to modify variables of SiteStoreFolder |
PageGroup[] getPageGroups()
PageGroup createPageGroup(String name)
StoreElement.save(String, boolean) on this folder afterwardsname - name of the new page-groupvoid deletePageGroup(PageGroup pageGroup)
pageGroup - page-group to be deleted@Nullable String getStoredUrl(@NotNull Language language, @NotNull TemplateSet templateSet)
language - Language to get the URL for.templateSet - TemplateSet to get the URL for.null if no URL has been stored (yet).NullPointerException - if either parameter language or templateSet is null.URLProperties.getStoredUrl(SiteStoreFolder, Language, TemplateSet)Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500