public interface PageRef extends StartNode, Referenceable, Previewable, ContentProducer, PackagePoolItem
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
Modifier and Type | Field and Description |
---|---|
static IDProvider.UidType |
UID_TYPE
Uid type as returned by
getUidType() . |
PARAM_REVISION, PREVIEWMODE_DEFAULT, PREVIEWMODE_DEFAULT_REFRESH, PREVIEWMODE_FORCE_REFRESH, PREVIEWMODE_FULL_QUALIFIED, PREVIEWMODE_NONE, PREVIEWMODE_SSO, PREVIEWMODE_WEBEDIT, PREVIEWMODE_WEBEDIT_FULL_QUALIFIED, PREVIEWMODE_WITHOUT_CONTEXTNAME
BLOCKED, MODIFIED, UNMODIFIED
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
Content2Params |
getContent2Params() |
String |
getFilename()
Returns a filename suggestions which may be used for creating urls.
|
String |
getName()
Deprecated.
since 4.1.10 - use
getUid() |
Page |
getPage()
Get the page from Page-Store of the current pagereference as object
|
PageGroup |
getPageGroup()
Get the page-group of the current pagereference as object
|
int |
getPageGroupPosition()
Get the position-number of the current pagereference in the pagegroup
|
long |
getPageId() |
PageLangSpec |
getPageLangSpec(Language language)
Get the pagereference specification for the given language
|
SiteStoreFolder |
getParentFolder() |
String |
getUid()
Get the unique referenec name of the pagereference.
|
IDProvider.UidType |
getUidType()
Return
UID_TYPE . |
void |
save()
Saves the node and all childs, shortcut for
save(null, true) . |
void |
setFilename(String filename)
Set a filename suggestions which may be used for creating urls.
|
void |
setPage(Page page)
Set the page of the pagereference
|
void |
setPageGroup(PageGroup group)
Set the page-group of the pagereference
|
isStartNode
getReferenceName
getPreviewUrl, getPreviewUrlObject
createContent, getExtension, getMultiPageParams, getStoredUrl, getUrl
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setDisplayName, 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, 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, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
static final IDProvider.UidType UID_TYPE
getUidType()
.@NotNull @Deprecated String getName()
getUid()
getName
in interface StoreElement
long getPageId()
getPage()
@Nullable Page getPage()
void setPage(Page page)
page
- new page of the pagereferenceint getPageGroupPosition()
@Nullable PageGroup getPageGroup()
void setPageGroup(PageGroup group)
group
- new page-group of the pagereferenceLockException
- occurs if this node already locked by another userPageLangSpec getPageLangSpec(Language language)
@Nullable Content2Params getContent2Params()
null
if the corresponding page
has
a new content section
.@NotNull IDProvider.UidType getUidType()
UID_TYPE
.getUidType
in interface IDProvider
IDProvider.hasUid()
@NotNull String getUid()
To use in a CMS_REF statement, the identifier must be prefixed with "pageref:".
getUid
in interface IDProvider
IDProvider.setUid(String)
@ApiDoc(comment="A filename suggestions which may be used for creating urls", since="3.0") @NotNull String getFilename()
getFilename
in interface ContentProducer
setFilename(String)
void setFilename(String filename)
getFilename()
SiteStoreFolder getParentFolder()
void save()
StoreElement
save(null, true)
.
Use StoreElement.isLockSupported()
to check if save operation is supported.
save
in interface StoreElement
DuplicateReferenceNameException
- if a page ref with this getUid()
already exists on
the serverStoreElement.save(String)
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408