public interface Body extends IDProvider
Page.getChildren(Body.class)
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
Section |
createSection(String name,
Template template)
Create a new section with the given name and template.
|
SectionReference |
createSectionReference(String name,
Section sourceSection)
Creates a section reference based on the given source section as new child of this body.
|
String |
getName()
Get the name of a body for a Page
|
boolean |
isHidden()
State if the body is hidden for the user
|
void |
setHidden(boolean hidden)
Set the state of the body: hide/show
|
void |
setName(String name)
Set the name of a body
|
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) throws LockException
name
- new name of a bodyLockException
- occurs if this node already locked by another userboolean isHidden()
true
for hidden; false
for visiblevoid setHidden(boolean hidden) throws LockException
hidden
- true
show the body; false
hide the bodyLockException
- occurs if this node already locked by another userSection createSection(String name, Template template) throws IllegalArgumentException, LockException, ElementDeletedException
name
- name of the section to be createdtemplate
- template instance for the section to be created (either a section or table template instance).Section
or Content2Section
)IOException
- when some error during server communication occursNullPointerException
- when parameter template
is null
IllegalArgumentException
- when the provided template is an instance of TableTemplate
and the
page already contains a content section or the type
of the template is
Template.PAGE_TEMPLATE
.LockException
ElementDeletedException
SectionReference createSectionReference(String name, Section sourceSection) throws LockException, ElementDeletedException
sourceSection
- the source section for the new section referenceLockException
ElementDeletedException
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500