com.atlassian.confluence.spaces
Class SpaceDescription
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.core.AbstractVersionedEntityObject
com.atlassian.confluence.core.AbstractLabelableEntityObject
com.atlassian.confluence.core.ContentEntityObject
com.atlassian.confluence.core.SpaceContentEntityObject
com.atlassian.confluence.spaces.SpaceDescription
- All Implemented Interfaces:
- com.atlassian.bonnie.Searchable, Content, Addressable, ContentTypeAware, Versioned, EditableLabelable, Labelable, Spaced, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class SpaceDescription
- extends SpaceContentEntityObject
- See Also:
- Serialized Form
Methods inherited from class com.atlassian.confluence.core.ContentEntityObject |
addAttachment, addComment, addOutgoingLink, addPermission, addReferralLink, clone, compareTo, ensureAttachmentBelongsToContent, equals, getAttachmentNamed, getAttachments, getAttachmentsUrlPath, getBodyAsString, getBodyAsStringWithoutMarkup, getBodyContent, getBodyContent, getBodyContents, getComments, getContentPermission, getContentPermissionSet, getContentStatus, getEntity, getExcerpt, getIdAsString, getLatestVersionsOfAttachments, getOutgoingLinks, getPermissions, getReferralLinks, getRenderedVersionComment, getSearchableDependants, getTitle, getTrackbackLinks, getTypeEnum, getUserAccessor, getVersionComment, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeComment, removeContentPermissionSet, removeOutgoingLink, removeReferralLink, removeTrackbackLink, setAttachments, setBodyAsString, setBodyContent, setBodyContents, setComments, setContent, setContentStatus, setOutgoingLinks, setReferralLinks, setTitle, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, toString, trash |
Methods inherited from class com.atlassian.confluence.core.AbstractLabelableEntityObject |
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings |
Methods inherited from class com.atlassian.core.bean.EntityObject |
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.bonnie.Searchable |
getId |
Methods inherited from interface com.atlassian.confluence.core.Addressable |
getId |
log
@Deprecated
public static final org.apache.log4j.Logger log
- Deprecated.
CONTENT_TYPE_SPACEDESC
public static final java.lang.String CONTENT_TYPE_SPACEDESC
- See Also:
- Constant Field Values
CONTENT_TYPE_PERSONAL_SPACEDESC
public static final java.lang.String CONTENT_TYPE_PERSONAL_SPACEDESC
- See Also:
- Constant Field Values
SpaceDescription
public SpaceDescription()
SpaceDescription
public SpaceDescription(Space space)
getContentEntityObject
public ContentEntityObject getContentEntityObject()
getDisplayTitle
public java.lang.String getDisplayTitle()
- Description copied from class:
ContentEntityObject
- Returns the display title. Some entities don't have titles for identification. For example, personal information objects use the user's fullname.
Override this method to provide a custom title.
- Specified by:
getDisplayTitle
in interface Addressable
- Overrides:
getDisplayTitle
in class ContentEntityObject
- Returns:
- the display title
getUrlPath
public java.lang.String getUrlPath()
- Specified by:
getUrlPath
in interface Addressable
- Specified by:
getUrlPath
in class ContentEntityObject
- Returns:
- a link to the home page of the associated space
getType
public java.lang.String getType()
- Description copied from class:
ContentEntityObject
- An easy name for the type of this content: makes it easy for
things like the #contentLink macro to work out what to draw.
This is a bit of a hack, but it saves heaps of code elsewhere,
especially since we tend to get back these objects wrapped in
all sorts of Hibernate CGLIB stuff.
- Specified by:
getType
in interface ContentTypeAware
- Specified by:
getType
in class ContentEntityObject
- Returns:
- the content type
getSpaceKey
public java.lang.String getSpaceKey()
- Overrides:
getSpaceKey
in class SpaceContentEntityObject
isPersonalSpace
public boolean isPersonalSpace()
getDefaultBodyType
public BodyType getDefaultBodyType()
- Overrides:
getDefaultBodyType
in class ContentEntityObject
getAttachmentUrlPath
public java.lang.String getAttachmentUrlPath(Attachment attachment)
- Description copied from class:
ContentEntityObject
- Gets the path relative to Confluence's base URL to view the given attachment in the context of this content
(for example, highlighted in the content's list of attachments). Generally you will want to call
Attachment.getUrlPath()
instead of this method: if we ever implement
view pages for individual attachments, that's the method that will be changed to point to them.
The default implementation just returns the view page for this content.
- Overrides:
getAttachmentUrlPath
in class ContentEntityObject
- Parameters:
attachment
- one of this content's attachments
- Returns:
- the path relative to the base url to view the attachment in the context of this content.
Copyright © 2003-2013 Atlassian. All Rights Reserved.