|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a SiteArea object.
SiteArea objects are grouped by Site
objects to form the Site Framework.
Like Site objects, SiteArea objects
can specify a relationship between AuthoringTemplate
and PresentationTemplate objects. However, any relationship
specified in a SiteArea will override the relationship
specified in a Site.
An important feature of SiteArea objects to note is the
ability to add Content objects. Adding a Content
to a SiteArea groups the Content and will determine
where the Content lies in the Site Framework.
A SiteArea may be the child of a Site or another
SiteArea. A SiteArea may also be the parent of
another SiteArea.
Passing a null argument to a method of this interface will result in a
NullPointerException, unless stated otherwise.
Site| Method Summary | |
void |
addContent(com.ibm.workplace.wcm.api.DocumentId contentId)
Deprecated. use Workspace.createContent(authoringTemplateId, parentSiteId,
siblingId, position) instead |
com.ibm.workplace.wcm.api.DocumentIdIterator |
getLinkedChildren()
Returns an iterator of DocumentId objects of the linked children
of this container. |
com.ibm.workplace.wcm.api.DocumentId |
getParent()
Returns the DocumentId of the parent of this SiteArea. |
boolean |
hasContent(com.ibm.workplace.wcm.api.DocumentId contentId)
Returns true if this SiteArea object has a
direct child or link to Content with the given DocumentId. |
boolean |
hasDirectContent(com.ibm.workplace.wcm.api.DocumentId contentId)
Returns true if this SiteArea object has a
direct child Content with the given DocumentId. |
boolean |
hasLinkedContent(com.ibm.workplace.wcm.api.DocumentId contentId)
Returns true if this SiteArea object has a
content link to the Content with the given DocumentId. |
void |
insertContent(com.ibm.workplace.wcm.api.DocumentId priorChildId,
com.ibm.workplace.wcm.api.DocumentId contentId)
Deprecated. use Workspace.createContent(authoringTemplateId,
parentSiteId, siblingId, position) instead |
void |
removeContent(com.ibm.workplace.wcm.api.DocumentId contentId)
Deprecated. use Workspace.delete(DocumentId) instead. |
| Methods inherited from interface com.ibm.workplace.wcm.api.SiteFrameworkContainer |
addSiteArea, addTemplateMapping, getAllChildren, getAllDirectChildren, getAuthoringTemplateIds, getChildren, getDefaultContent, getDirectChildren, getTemplateMapping, hasSiteArea, hasTemplateMapping, insertSiteArea, removeSiteArea, removeTemplateMapping, setDefaultContent |
| Methods inherited from interface com.ibm.workplace.wcm.api.ContentComponentContainer |
addComponent, componentIterator, createComponent, getComponent, getComponentByReference, getComponentNames, hasComponent, removeComponent, setComponent |
| Methods inherited from interface com.ibm.workplace.wcm.api.Editable |
addAuthors, addDeleteAccessMembers, addEditAccessMembers, addHistoryLogEntry, addLiveAccessMembers, addOwners, addReadAccessMembers, isChanged, removeAuthors, removeDeleteAccessMembers, removeEditAccessMembers, removeLiveAccessMembers, removeOwners, removeReadAccessMembers, setDescription, setName, setTitle |
| Methods inherited from interface com.ibm.workplace.wcm.api.Document |
getAuthors, getDeleteAccessMembers, getDescription, getEditAccessMembers, getHistoryLog, getId, getLiveAccessMembers, getModifiedDate, getName, getOwnerLibrary, getOwners, getReadAccessMembers, getTitle, hasDeleteAccess, hasDeleteAccess, hasEditAccess, hasEditAccess, hasLiveAccess, hasLiveAccess, hasReadAccess, hasReadAccess |
| Method Detail |
public boolean hasContent(com.ibm.workplace.wcm.api.DocumentId contentId)
SiteArea object has a
direct child or link to Content with the given DocumentId.
contentId - the ID of the content
SiteArea object has a child with
the given DocumentId; false otherwise.public boolean hasDirectContent(com.ibm.workplace.wcm.api.DocumentId contentId)
SiteArea object has a
direct child Content with the given DocumentId.
contentId - the ID of the content
SiteArea object has a child with
the given DocumentId; false otherwise.public boolean hasLinkedContent(com.ibm.workplace.wcm.api.DocumentId contentId)
SiteArea object has a
content link to the Content with the given DocumentId.
contentId - the ID of the content
SiteArea object has a content link to
the given DocumentId; false otherwise.
public void addContent(com.ibm.workplace.wcm.api.DocumentId contentId)
throws DuplicateChildException
Workspace.createContent(authoringTemplateId, parentSiteId,
siblingId, position) instead
Content with the specified DocumentId as
the last child of this SiteArea. If the specified Content already has a
parent, a ContentLink will be created instead.
contentId - the DocumentId of the Content to add
DuplicateChildException - if a Content with the given
DocumentId already exists as a child of this SiteArea
WCMIllegalStateException - if there's a problem retrieving the
content document or creating a content link.
public void insertContent(com.ibm.workplace.wcm.api.DocumentId priorChildId,
com.ibm.workplace.wcm.api.DocumentId contentId)
throws DuplicateChildException
Workspace.createContent(authoringTemplateId,
parentSiteId, siblingId, position) instead
Content with a DocumentId specified by contentId
as a child of this SiteArea after the Content with a
DocumentId of priorChildId. If the specified Content already has a
parent, a ContentLink will be created instead.
priorChildId - the DocumentId of the child Content to
insert aftercontentId - the DocumentId of the Content to add
DuplicateChildException - if a Content with the given
DocumentId already exists as a child of this SiteArea
WCMIllegalStateException - if there's a problem retrieving the
content document or creating a content link.
public void removeContent(com.ibm.workplace.wcm.api.DocumentId contentId)
throws DuplicateChildException
Workspace.delete(DocumentId) instead.
Content with the given DocumentId
from the this SiteArea.
If the Content is linked to other SiteAreas, the
first ContentLink is removed, and the Content is
moved to the link's SiteArea. Otherwise the given Content
or ContentLink is removed.
contentId - the DocumentId of the Content to remove
WCMIllegalStateException - if there a problem retrieving the Content
retrieving the Content's links, removing the Content, or removing a ContentLink.
DuplicateChildException - if the Content is moved to a SiteArea
that already has a child with the same name.public com.ibm.workplace.wcm.api.DocumentId getParent()
DocumentId of the parent of this SiteArea.
The parent of this SiteArea may be a Site or another
SiteArea.
This method will return null if the user does not have access to the
parent of this SiteArea.
DocumentId of the parent of this SiteArea.
public com.ibm.workplace.wcm.api.DocumentIdIterator getLinkedChildren()
throws DocumentRetrievalException
DocumentId objects of the linked children
of this container. The children are ContentLinks.
The user must have Read access to the ContentLink
for it to be included in the returned iterator.
DocumentId objects of the immediate
children of this SiteArea; or an empty iterator if
no immediate children are found.
DocumentRetrievalException - if there was a problem retrieving the linked children.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||