Class ReadOnlyAttachment
- All Implemented Interfaces:
Searchable,Content,Addressable,ContentTypeAware,HasLinkWikiMarkup,Versioned,RelatableEntity,EditableLabelable,Labelable,Contained<ContentEntityObject>,ContentConvertible,SearchableAttachment,Spaced,Serializable,Cloneable,Comparable<ContentEntityObject>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.confluence.pages.Attachment
Attachment.Type -
Field Summary
Fields inherited from class com.atlassian.confluence.pages.Attachment
API_REVISION, API_REVISION_V2, CONTENT_TYPE, DOWNLOAD_PATH_BASE, PROFILE_PICTURE_COMMENT, PROP_FILE_STORE_ID, PROP_FILESIZE, PROP_HIDDEN, PROP_MEDIA_TYPE, PROP_MINOR_EDITFields inherited from class com.atlassian.confluence.core.ContentEntityObject
COLLABORATIVE_EDITING_UUID, CONFLUENCE_RECOVERY, CONFLUENCE_RECOVERY_WITH_EXTERNAL_CHANGE, CONTENT_RESTORED_SYNC_REV_SOURCE, CREATED, CURRENT, DELETED, DELETED_BY, DELETED_BY_ANON_VALUE, DRAFT, DUMMY_SYNC_REV, LIMITED_MODE_SYNC_REV_SOURCE, MODIFIED, SHARE_ID, SYNC_REV, SYNC_REV_SOURCE, SYNCHRONY_ACK_SYNC_REV_SOURCE, SYNCHRONY_RECOVERY, SYNCHRONY_RECOVERY_WITH_EXTERNAL_CHANGE, SYNCHRONY_SYNC_REV_SOURCEFields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
INITIAL_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyAttachment(Attachment delegate) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(Attachment attachment) Deprecated, for removal: This API element is subject to removal in a future version.voidaddComment(Comment comment) Deprecated, for removal: This API element is subject to removal in a future version.voidaddCustomContent(CustomContentEntityObject customContentEntityObject) Deprecated, for removal: This API element is subject to removal in a future version.voidaddLabelling(Labelling content) Deprecated, for removal: This API element is subject to removal in a future version.voidaddOutgoingLink(OutgoingLink link) Deprecated, for removal: This API element is subject to removal in a future version.voidaddPermission(ContentPermission permission) Deprecated, for removal: This API element is subject to removal in a future version.Adds a ContentPermission.voidapplyChildVersioningPolicy(@Nullable Versioned versionToPromote, Consumer<? super Versioned> dao) Deprecated, for removal: This API element is subject to removal in a future version.IfVersioned.getVersionChildPolicy(com.atlassian.confluence.api.model.content.ContentType)specifies so, moves content from versionToPromote to this Versioned instance or makes no change.clone()Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Remove all data from the object that does not need to be saved by historical versions.copy()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Will copy all detail information of an attachment including : - Content Properties - File Name - File Size - Content Type - And set version is 1booleanDeprecated, for removal: This API element is subject to removal in a future version.getAttachmentNamed(String fileName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Don't use it directly, use AttachmentManager.getAttachments(page) instead.Deprecated, for removal: This API element is subject to removal in a future version.getAttachmentUrlPath(Attachment attachment) Deprecated, for removal: This API element is subject to removal in a future version.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).Deprecated, for removal: This API element is subject to removal in a future version.Convenience method that returns the String representation of the content.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets theBodyContentobject for this ContentEntityObject.getBodyContent(BodyType expectedBodyType) Deprecated, for removal: This API element is subject to removal in a future version.Gets theBodyContentobject for this ContentEntityObject or throws an UnsupportedOperationException if its body type is not the same as the suppliedexpectedBodyType.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Return any comment associated with this attachmentDeprecated, for removal: This API element is subject to removal in a future version.@Nullable ContentEntityObjectDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns theContentIdfor this entity object, if it implementsContentConvertible.getContentPermission(String permissionType) Deprecated, for removal: This API element is subject to removal in a future version.Gives back the first content permission of a specific type.Deprecated, for removal: This API element is subject to removal in a future version.Note, this method does not return ContentPermissions inherited from the Content's ancestry.Deprecated, for removal: This API element is subject to removal in a future version.Return the contents of the attachment as an InputStreamDeprecated, for removal: This API element is subject to removal in a future version.Get the hibernate field for content status, distinguishing only draft/deleted/current status.Deprecated, for removal: This API element is subject to removal in a future version.Get the api layer enum for content status, distinguishing CURRENT/HISTORICAL/DRAFT/TRASHED.@NonNull StringDeprecated, for removal: This API element is subject to removal in a future version.Gets the MIME content-type of this attachment.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the display title.Deprecated, for removal: This API element is subject to removal in a future version.getDownloadPath(String attachmentPath, boolean addVersionInfo) Deprecated, for removal: This API element is subject to removal in a future version.Returns the download path of the attachment for a given attachmentPath prefix.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the download path without any version info.Deprecated, for removal: This API element is subject to removal in a future version.Returns the download path without any version info or API revision.Deprecated, for removal: This API element is subject to removal in a future version.Gets the ContentEntityObject that backs this piece of content.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the file extension of the attachment.@NonNull StringDeprecated, for removal: This API element is subject to removal in a future version.Gets the filename of this attachment.longDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getGlobalLabels(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.List the labels on this content that are global labelslonggetId()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Get the number of labels that are associated with this object.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the labels that are associated with this object.getLabelsForDisplay(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.List the labels on this content that are visible to a particular user, and should be shown in a list of labels.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the latest, current version of this versioned object.longDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@NonNull StringDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Subclasses should implement this method, giving a String back so that the content can be alphabetically sorted in a mixed-type list of content-entities.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.An outgoing link is a link on this page to another confluence page.
It could also link to a website URL
These links are contained in the page content
They are refreshed each time the page is updated (LinkManager.updateOutgoingLinks())Deprecated, for removal: This API element is subject to removal in a future version.Get all the permissions that apply to this content.getPersonalLabels(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.List the labels on this content that are personal labels for a particular userDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.When we un-index something (say, a page), we also need to un-index everything contained within that page (comments, attachments), because presumably they're all about to go away.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getSpace()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getTeamLabels(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.List the labels on this content that are team labels for a particular usergetTitle()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get trash date if this CEO has been added to the trash since Confluence 7.14.getType()Deprecated, for removal: This API element is subject to removal in a future version.An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Return the version number of this version of the object.getVersionChildPolicy(ContentType contentType) Deprecated, for removal: This API element is subject to removal in a future version.Returns the rightVersionChildOwnerPolicydepending on the passed contentType.Deprecated, for removal: This API element is subject to removal in a future version.getVisibleLabels(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.List the labels on this content that are visible to a particular userbooleanDeprecated, for removal: This API element is subject to removal in a future version.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasPermissions(String type) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Does this content have "current" status? (non-trashed and non-draft)booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisDraft()Deprecated, for removal: This API element is subject to removal in a future version.booleanisFavourite(ConfluenceUser user) Deprecated, for removal: This API element is subject to removal in a future version.Is this object marked as somebody's favourite?booleanisHidden()Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether this attachment is supposed to be strictly hidden from displaying and searching Hidden attachment is not indexable Hidden attachment manipulation will not trigger external notification eventsbooleanDeprecated, for removal: This API element is subject to removal in a future version.Only the current version of a non-hidden attachment is indexable (until we can deal with old objects in search results) We also don't want to index attachments associated with drafts or global descriptions or hidden attachmentsbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether this attachment is supposed to be hidden under normal circumstances.booleanisNew()Deprecated, for removal: This API element is subject to removal in a future version.Is this the first version of this object?booleanDeprecated, for removal: This API element is subject to removal in a future version.This object is persistent if the id is not 0.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Determines whether the Attachment is a user's profile picturebooleanDeprecated, for removal: This API element is subject to removal in a future version.voidremoveAttachment(Attachment attachment) Deprecated, for removal: This API element is subject to removal in a future version.voidremoveComment(Comment comment) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.This method removes the given ContentPermissionSet from this CEO and disconnects the set from its owner.voidremoveCustomContent(CustomContentEntityObject customContentEntityObject) Deprecated, for removal: This API element is subject to removal in a future version.voidremoveLabelling(Labelling labelling) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidrestore()Deprecated, for removal: This API element is subject to removal in a future version.restores content from the trashvoidsetAttachments(List<Attachment> attachments) Deprecated, for removal: This API element is subject to removal in a future version.voidsetBodyAsString(String content) Deprecated, for removal: This API element is subject to removal in a future version.Convenience method that sets the content of this ContentEntityObject.voidsetBodyContent(BodyContent bodyContent) Deprecated, for removal: This API element is subject to removal in a future version.Sets theBodyContentobject for this ContentEntityObject.voidsetBodyContents(List<BodyContent> bodyContents) Deprecated, for removal: This API element is subject to removal in a future version.voidsetClock(com.atlassian.core.util.Clock clock) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetComments(List<Comment> comments) Deprecated, for removal: This API element is subject to removal in a future version.voidsetContainer(ContentEntityObject content) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Initialises theContentPropertiesof this ContentEntityObject by performing a deep clone of theContentEntityObjectobject's properties.voidsetContentStatus(String contentStatus) Deprecated, for removal: This API element is subject to removal in a future version.Set the hibernate field for content status, distinguishing only draft/deleted/current status.voidsetContentType(@NonNull String contentType) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCreationDate(Date creationDate) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCreator(ConfluenceUser creator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCreatorName(String creatorName) Deprecated, for removal: This API element is subject to removal in a future version.Set the username of the creatorvoidsetFileName(@NonNull String fileName) Deprecated, for removal: This API element is subject to removal in a future version.voidsetFileSize(long fileSize) Deprecated, for removal: This API element is subject to removal in a future version.voidsetFileStoreId(String fileStoreId) Deprecated, for removal: This API element is subject to removal in a future version.voidsetHidden(boolean hidden) Deprecated, for removal: This API element is subject to removal in a future version.voidsetId(long id) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLastModificationDate(Date lastModificationDate) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLastModifier(ConfluenceUser lastModifier) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLastModifierName(String lastModifierName) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMediaType(@NonNull String mediaType) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMinorEdit(boolean minorEdit) Deprecated, for removal: This API element is subject to removal in a future version.voidsetOriginalVersion(Versioned originalVersion) Deprecated, for removal: This API element is subject to removal in a future version.Set the current version of this object.voidsetOutgoingLinks(List<OutgoingLink> outgoingLinks) Deprecated, for removal: This API element is subject to removal in a future version.voidsetShareId(String shareId) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetSynchronyRevision(String synchronyRevision) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSynchronyRevisionSource(String synchronyRevisionSource) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetVersion(int version) Deprecated, for removal: This API element is subject to removal in a future version.Set the version number of this version of the object.voidsetVersionComment(String versionComment) Deprecated, for removal: This API element is subject to removal in a future version.booleansharedAccessAllowed(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.Checks if this draft can be accessed by users other than the creator (shared access)booleansharedAccessAllowed(String shareId) Deprecated, for removal: This API element is subject to removal in a future version.Checks if this draft can be accessed by users other than the creator (shared access)booleanDeprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.voidtrash()Deprecated, for removal: This API element is subject to removal in a future version.places content in trash canbooleanwasCreatedBy(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.atlassian.confluence.pages.Attachment
getDescriptionForMimeType, getImageDetailsDTO, setImageDetailsDTOMethods inherited from class com.atlassian.confluence.core.ContentEntityObject
compareTo, ensureAttachmentBelongsToContent, getAttachmentManager, getContainerContent, replaceContentProperties, restoreDependents, setContainerContent, setOriginalVersionId, toPageContext, trash, trashMethods inherited from class com.atlassian.confluence.core.AbstractLabelableEntityObject
setLabellingsMethods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
getConfluenceRevisionMethods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getRealClass
-
Constructor Details
-
ReadOnlyAttachment
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getLabels
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LabelableRetrieve the labels that are associated with this object.- Specified by:
getLabelsin interfaceLabelable- Overrides:
getLabelsin classAbstractLabelableEntityObject- Returns:
- a list of label instances.
-
getLabelCount
public int getLabelCount()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LabelableGet the number of labels that are associated with this object.- Specified by:
getLabelCountin interfaceLabelable- Overrides:
getLabelCountin classAbstractLabelableEntityObject- Returns:
- the number of labels associated with this object.
-
isFavourite
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LabelableIs this object marked as somebody's favourite?- Specified by:
isFavouritein interfaceLabelable- Overrides:
isFavouritein classAbstractLabelableEntityObject- Parameters:
user- the user who is being checked against. If user is null this method must always return false (anonymous users can not mark anything as a favourite, obviously)- Returns:
- true if the labelable object is a 'favourite' of a given user, false otherwise
-
getVisibleLabels
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLabelableEntityObjectList the labels on this content that are visible to a particular user- Overrides:
getVisibleLabelsin classAbstractLabelableEntityObject- Parameters:
user- the user- Returns:
- the labels on this content visible to that user
-
getPersonalLabels
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLabelableEntityObjectList the labels on this content that are personal labels for a particular user- Overrides:
getPersonalLabelsin classAbstractLabelableEntityObject- Parameters:
user- the user- Returns:
- the personal labels on this content visible to the user
-
getGlobalLabels
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLabelableEntityObjectList the labels on this content that are global labels- Overrides:
getGlobalLabelsin classAbstractLabelableEntityObject- Parameters:
user- the user- Returns:
- the global labels on this content visible to the user
-
getTeamLabels
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLabelableEntityObjectList the labels on this content that are team labels for a particular user- Overrides:
getTeamLabelsin classAbstractLabelableEntityObject- Parameters:
user- the user- Returns:
- the team labels on this content visible to the user
-
getLabelsForDisplay
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractLabelableEntityObjectList the labels on this content that are visible to a particular user, and should be shown in a list of labels. This is like {code}getVisibleLabels{code} except that it also filters out special labels like favourites- Overrides:
getLabelsForDisplayin classAbstractLabelableEntityObject- Parameters:
user- the user- Returns:
- the labels on this content visible to that user
-
getLabellings
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLabellingsin interfaceEditableLabelable- Overrides:
getLabellingsin classAbstractLabelableEntityObject
-
addLabelling
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addLabellingin interfaceEditableLabelable- Overrides:
addLabellingin classAbstractLabelableEntityObject
-
removeLabelling
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeLabellingin interfaceEditableLabelable- Overrides:
removeLabellingin classAbstractLabelableEntityObject
-
getVersion
public int getVersion()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedReturn the version number of this version of the object. Version numbers are integers in ascending chronological order from 1 (the first version). Clients must not assume if two versions x and y exist, that any integer versions between x and y also exist.- Specified by:
getVersionin interfaceVersioned- Overrides:
getVersionin classAbstractVersionedEntityObject- Returns:
- the version number of this version of the object
-
setVersion
public void setVersion(int version) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedSet the version number of this version of the object. Only call this method if you are creating a new version.- Specified by:
setVersionin interfaceVersioned- Overrides:
setVersionin classAbstractVersionedEntityObject- Parameters:
version- the new version number for this version of the object.
-
isNew
public boolean isNew()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedIs this the first version of this object?- Specified by:
isNewin interfaceVersioned- Overrides:
isNewin classAbstractVersionedEntityObject- Returns:
- true if this is the first version of this versioned object, false if it is a later version.
-
getLatestVersion
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedGet the latest, current version of this versioned object. If this object is the current version, return this object.Note that drafts are a special version of a
ContentEntityObjectso for drafts this method should return theContentEntityObjectthe drafts points to if it exists and the draft itself otherwise.- Specified by:
getLatestVersionin interfaceVersioned- Overrides:
getLatestVersionin classAbstractVersionedEntityObject- Returns:
- the current version of this object.
- See Also:
-
isLatestVersion
public boolean isLatestVersion()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isLatestVersionin interfaceVersioned- Overrides:
isLatestVersionin classAbstractVersionedEntityObject- Returns:
- true if this is the latest (current) version of the object, false if it is an historical version.
-
getCreatorName
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCreatorNamein classConfluenceEntityObject- Returns:
- username of the creator, or null if created anonymously
-
getCreator
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCreatorin classConfluenceEntityObject
-
setCreatorName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ConfluenceEntityObjectSet the username of the creator- Overrides:
setCreatorNamein classConfluenceEntityObject
-
getLastModifierName
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getLastModifierNamein classConfluenceEntityObject- Returns:
- username of the last modifier, or null if none.
-
getLastModifier
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getLastModifierin classConfluenceEntityObject
-
setLastModifierName
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setLastModifierNamein classConfluenceEntityObject
-
setCreator
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setCreatorin classConfluenceEntityObject
-
setLastModifier
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setLastModifierin classConfluenceEntityObject
-
isPersistent
public boolean isPersistent()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ConfluenceEntityObjectThis object is persistent if the id is not 0.- Specified by:
isPersistentin interfaceEditableLabelable- Overrides:
isPersistentin classConfluenceEntityObject- Returns:
- true if this instance is a persisted label.
-
getTypeEnum
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getTypeEnumin classContentEntityObject
-
getIdAsString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getIdAsStringin classContentEntityObject
-
getAttachmentUrlPath
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGets 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 callAttachment.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:
getAttachmentUrlPathin classContentEntityObject- 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.
-
getTitle
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getTitlein interfaceEditableLabelable- Overrides:
getTitlein classContentEntityObject
-
setTitle
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setTitlein classContentEntityObject
-
getLowerTitle
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getLowerTitlein classContentEntityObject
-
getDefaultBodyType
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getDefaultBodyTypein classContentEntityObject
-
getBodyContent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGets theBodyContentobject for this ContentEntityObject. Although it appears that there may be a number of BodyContent objects attached to a ContentEntityObject, only one is ever used. If there are none currently attached, a new BodyContent object is created and returned. Any values set on the returned BodyContent will not be saved unless a call is made toContentEntityObject.setBodyContent(com.atlassian.confluence.core.BodyContent). Null is never returned.This method should not normally be called directly unless, you need to be able to handle different body types. Use
ContentEntityObject.getBodyAsString()as you should normally be expecting only one type.- Overrides:
getBodyContentin classContentEntityObject- Returns:
- the BodyContent.
- See Also:
-
getBodyContent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGets theBodyContentobject for this ContentEntityObject or throws an UnsupportedOperationException if its body type is not the same as the suppliedexpectedBodyType.This method should not normally be called directly unless, you need to be able to handle different body types. Use
ContentEntityObject.getBodyAsString()andContentEntityObject.getBodyAsString()as you should normally be expecting only one type.- Overrides:
getBodyContentin classContentEntityObject- Parameters:
expectedBodyType- that can be handled by the caller.- Returns:
- the BodyContent.
- See Also:
-
setBodyContent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectSets theBodyContentobject for this ContentEntityObject.This method should not normally be called directly unless, you need to be able to handle different body types. Use
ContentEntityObject.setBodyAsString(java.lang.String)as you should normally be expecting only one type.- Overrides:
setBodyContentin classContentEntityObject- Parameters:
bodyContent- to be set. If the supplied bodyContent or its body arenull, the list of body contents are cleared.
-
getBodyAsString
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectConvenience method that returns the String representation of the content.- Overrides:
getBodyAsStringin classContentEntityObject- Returns:
- the content.
-
setBodyAsString
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectConvenience method that sets the content of this ContentEntityObject.- Overrides:
setBodyAsStringin classContentEntityObject- Parameters:
content- the String representation of the content.
-
getBodyContents
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getBodyContentsin classContentEntityObject
-
setBodyContents
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setBodyContentsin classContentEntityObject
-
getOutgoingLinks
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectAn outgoing link is a link on this page to another confluence page.
It could also link to a website URL
These links are contained in the page content
They are refreshed each time the page is updated (LinkManager.updateOutgoingLinks())- Overrides:
getOutgoingLinksin classContentEntityObject- Returns:
- List of OutgoingLinks
-
setOutgoingLinks
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setOutgoingLinksin classContentEntityObject
-
addOutgoingLink
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addOutgoingLinkin classContentEntityObject
-
removeOutgoingLink
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
removeOutgoingLinkin classContentEntityObject
-
setOriginalVersion
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedSet the current version of this object. After this method is called, this object will become an historical version of the object passed in.- Specified by:
setOriginalVersionin interfaceVersioned- Overrides:
setOriginalVersionin classContentEntityObject- Parameters:
originalVersion- the current version of this object.
-
applyChildVersioningPolicy
public void applyChildVersioningPolicy(@Nullable Versioned versionToPromote, Consumer<? super Versioned> dao) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedIfVersioned.getVersionChildPolicy(com.atlassian.confluence.api.model.content.ContentType)specifies so, moves content from versionToPromote to this Versioned instance or makes no change.- Specified by:
applyChildVersioningPolicyin interfaceVersioned- Overrides:
applyChildVersioningPolicyin classContentEntityObject- Parameters:
versionToPromote- the new version of the current instance that we're getting the children fromdao- onRemove used to delete dangling contained content
-
getPermissions
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGet all the permissions that apply to this content. Please do not modify the contents of this list!
- Overrides:
getPermissionsin classContentEntityObject- Returns:
- a list of all the permissions that apply to this content.
-
getContentPermission
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGives back the first content permission of a specific type. Returns only the permission if it is set on this object and not inherited. Returns null if no permission can't be found.Synchronized, as otherwise it was creating timing issues during the multi-threaded re-indexing.
- Overrides:
getContentPermissionin classContentEntityObject- Returns:
- ContentPermission
-
getContentStatusObject
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGet the api layer enum for content status, distinguishing CURRENT/HISTORICAL/DRAFT/TRASHED.Important: this has different semantics from the hibernate field
ContentEntityObject.getContentStatus(), because it takes into account historical status, and uses different strings for some values.- Overrides:
getContentStatusObjectin classContentEntityObject- Returns:
- the API ContentStatus for this content, distinguishing CURRENT/HISTORICAL/DRAFT/TRASHED
- See Also:
-
getContentStatus
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGet the hibernate field for content status, distinguishing only draft/deleted/current status.Important: this is not the same as the string value of the api
ContentEntityObject.getContentStatusObject(), because that one takes into account historical status, and uses different strings for some values.This method does NOT distinguish current and historical versions. Both will return "current". See
AbstractVersionedEntityObject.isLatestVersion()to distinguish them.- Overrides:
getContentStatusin classContentEntityObject- Returns:
- the hibernate field value, distinguishing only
ContentEntityObject.CURRENT,ContentEntityObject.DRAFT,ContentEntityObject.DELETED. - See Also:
-
setContentStatus
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectSet the hibernate field for content status, distinguishing only draft/deleted/current status.Important: this is not the same as the string value of the api
ContentEntityObject.getContentStatusObject(), because that one takes into account historical status, and uses different strings for some values.This method does NOT distinguish current and historical versions. Both use "current". See
AbstractVersionedEntityObject.isLatestVersion()to distinguish them.- Overrides:
setContentStatusin classContentEntityObject- Parameters:
contentStatus- the hibernate field value,ContentEntityObject.CURRENT,ContentEntityObject.DRAFT,ContentEntityObject.DELETED.- See Also:
-
isCurrent
public boolean isCurrent()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectDoes this content have "current" status? (non-trashed and non-draft)This method does NOT distinguish current and historical versions. Both will return true. See
AbstractVersionedEntityObject.isLatestVersion()to distinguish them.- Overrides:
isCurrentin classContentEntityObject- Returns:
- true if the content is live, i.e. not trashed and not a draft
- See Also:
-
isDeleted
public boolean isDeleted()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isDeletedin classContentEntityObject
-
isDraft
public boolean isDraft()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isDraftin classContentEntityObject
-
getSynchronyRevision
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSynchronyRevisionin classContentEntityObject- See Also:
-
setSynchronyRevision
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSynchronyRevisionin classContentEntityObject- See Also:
-
getSynchronyRevisionSource
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSynchronyRevisionSourcein classContentEntityObject- See Also:
-
getTrashDate
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectGet trash date if this CEO has been added to the trash since Confluence 7.14. For generic cases, useTrashManagerInternal#findTrashDate- Overrides:
getTrashDatein classContentEntityObject- Returns:
- when this content entity was added to the trash or
Optional.empty()if it was trashed before 7.14
-
setSynchronyRevisionSource
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSynchronyRevisionSourcein classContentEntityObject- See Also:
-
getCollaborativeEditingUuid
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCollaborativeEditingUuidin classContentEntityObject- See Also:
-
setCollaborativeEditingUuid
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setCollaborativeEditingUuidin classContentEntityObject- See Also:
-
isUnpublished
public boolean isUnpublished()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isUnpublishedin classContentEntityObject
-
wasCreatedBy
public boolean wasCreatedBy(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
wasCreatedByin classContentEntityObject
-
trash
public void trash()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectplaces content in trash can- Overrides:
trashin classContentEntityObject
-
restore
public void restore()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectrestores content from the trash- Overrides:
restorein classContentEntityObject
-
getAttachments
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectDon't use it directly, use AttachmentManager.getAttachments(page) instead.
This also includes trashed items.
- Overrides:
getAttachmentsin classContentEntityObject
-
getLatestVersionsOfAttachments
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getLatestVersionsOfAttachmentsin classContentEntityObject
-
setAttachments
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setAttachmentsin classContentEntityObject
-
addAttachment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addAttachmentin classContentEntityObject
-
removeAttachment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
removeAttachmentin classContentEntityObject
-
getBodyAsStringWithoutMarkup
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getBodyAsStringWithoutMarkupin classContentEntityObject
-
getExcerpt
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getExcerptin classContentEntityObject
-
getAttachmentsUrlPath
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getAttachmentsUrlPathin classContentEntityObject
-
getAttachmentNamed
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getAttachmentNamedin classContentEntityObject
-
getVersionComment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getVersionCommentin classContentEntityObject
-
setVersionComment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setVersionCommentin classContentEntityObject
-
isVersionCommentAvailable
public boolean isVersionCommentAvailable()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isVersionCommentAvailablein classContentEntityObject
-
getRenderedVersionComment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getRenderedVersionCommentin classContentEntityObject
-
getContentPermissionSet
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectNote, this method does not return ContentPermissions inherited from the Content's ancestry.- Overrides:
getContentPermissionSetin classContentEntityObject- Returns:
- a set containing
ContentPermissions of this type, or null if there are no content permissions explicitly set on this ContentEntityObject for the type.
-
hasPermissions
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
hasPermissionsin classContentEntityObject- Returns:
- true if this content entity object contains any
ContentPermissions of the type specified
-
hasContentPermissions
public boolean hasContentPermissions()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
hasContentPermissionsin classContentEntityObject
-
addPermission
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectAdds a ContentPermission. Do not add them manually viaContentPermissionSet.addContentPermission(ContentPermission). If possible useContentPermissionManager.addContentPermission(com.atlassian.confluence.security.ContentPermission, ContentEntityObject)instead. Also note that as of Confluence 2.4 although methods have been added to facilitate having multiple ContentPermissions per page, Confluence does not yet properly support them (eg users permitted by them will not see the data in their searches)- Overrides:
addPermissionin classContentEntityObject
-
removeContentPermissionSet
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectThis method removes the given ContentPermissionSet from this CEO and disconnects the set from its owner. This method should only be called by the DefaultContentPermissionManager. Note that as of Confluence 2.4 although methods have been added to facilitate having multiple ContentPermissions per page, Confluence does not yet properly support them (eg users permitted by them will not see the data in their searches) -
getComments
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCommentsin classContentEntityObject
-
setComments
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setCommentsin classContentEntityObject
-
addComment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addCommentin classContentEntityObject
-
removeComment
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
removeCommentin classContentEntityObject
-
getCustomContent
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCustomContentin classContentEntityObject- Returns:
- all custom content that is a child of this CEO.
-
addCustomContent
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
addCustomContentin classContentEntityObject
-
removeCustomContent
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
removeCustomContentin classContentEntityObject
-
getEntity
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ContentGets the ContentEntityObject that backs this piece of content.- Specified by:
getEntityin interfaceContent- Overrides:
getEntityin classContentEntityObject- Returns:
- the persistent object behind this content
-
getSelector
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSelectorin interfaceContentConvertible- Overrides:
getSelectorin classContentEntityObject- Returns:
- the ContentSelector for this entity, which will always include the id of the latest version, and the version number for this version of the entity.
-
getProperties
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getPropertiesin classContentEntityObject- Returns:
- the content properties associated with this entity
-
setContentPropertiesFrom
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectInitialises theContentPropertiesof this ContentEntityObject by performing a deep clone of theContentEntityObjectobject's properties.- Overrides:
setContentPropertiesFromin classContentEntityObject
-
getOriginalVersionId
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getOriginalVersionIdin classContentEntityObject
-
getLatestVersionId
public long getLatestVersionId()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getLatestVersionIdin classContentEntityObject
-
setSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setSpacein classSpaceContentEntityObject
-
convertToHistoricalVersion
public void convertToHistoricalVersion()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedRemove all data from the object that does not need to be saved by historical versions. For versioned objects that are persisted, this includes removing associations with other persisted objects that may otherwise cause us to break the expected arity of the database relations.When using Hibernate to persist versioned objects, take special care to null any field that might contain a Hibernate-persisted collection, as Hibernate does not allow two different persistent objects to refer to the same persisted collection at the same time.
- Specified by:
convertToHistoricalVersionin interfaceVersioned- Overrides:
convertToHistoricalVersionin classSpaceContentEntityObject
-
getSpaceKey
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSpaceKeyin classSpaceContentEntityObject
-
isInSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isInSpacein classSpaceContentEntityObject
-
getFileName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchableAttachmentGets the filename of this attachment. If there is no filename, return the empty string. This method should never return null.- Specified by:
getFileNamein interfaceSearchableAttachment- Overrides:
getFileNamein classAttachment- Returns:
- the filename of this attachment, or the empty string if there is no filename
-
setFileName
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setFileNamein classAttachment
-
getMediaType
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getMediaTypein classAttachment
-
setMediaType
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setMediaTypein classAttachment
-
getContentType
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchableAttachmentGets the MIME content-type of this attachment. If there is no content-type, return "application/x-unknown". Should never return null.- Specified by:
getContentTypein interfaceSearchableAttachment- Overrides:
getContentTypein classAttachment- Returns:
- the MIME content-type of the attachment, or "application/x-unknown" if the MIME type is unknown
-
setContentType
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setContentTypein classAttachment
-
getContainer
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContainerin interfaceContained<ContentEntityObject>- Overrides:
getContainerin classAttachment- Returns:
- the owner of this content object. Can be null.
-
setContainer
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setContainerin classAttachment
-
getComment
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchableAttachmentReturn any comment associated with this attachment- Specified by:
getCommentin interfaceSearchableAttachment- Overrides:
getCommentin classAttachment
-
isMinorEdit
public boolean isMinorEdit()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentIndicates whether this attachment is supposed to be hidden under normal circumstances. At the moment this is only used to avoid sending notifications and to hide them in the activity stream. Future usages should be hiding them by default in the attachment macro output- Overrides:
isMinorEditin classAttachment- Returns:
- true, if the attachment is hidden
-
setMinorEdit
public void setMinorEdit(boolean minorEdit) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setMinorEditin classAttachment
-
getFileStoreId
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getFileStoreIdin classAttachment- Returns:
- FileStore ID of the binary data of this attachment
-
setFileStoreId
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setFileStoreIdin classAttachment
-
isHidden
public boolean isHidden()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentIndicates whether this attachment is supposed to be strictly hidden from displaying and searching Hidden attachment is not indexable Hidden attachment manipulation will not trigger external notification events- Overrides:
isHiddenin classAttachment- Returns:
- true, if the attachment is hidden
-
setHidden
public void setHidden(boolean hidden) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setHiddenin classAttachment
-
getFileSize
public long getFileSize()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getFileSizein classAttachment- Returns:
- The size (in bytes) of the attachment's raw binary data
-
setFileSize
public void setFileSize(long fileSize) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setFileSizein classAttachment
-
getNiceFileSize
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNiceFileSizein interfaceSearchableAttachment- Overrides:
getNiceFileSizein classAttachment
-
getNiceType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNiceTypein interfaceSearchableAttachment- Overrides:
getNiceTypein classAttachment- Returns:
- A nice type for this file if possible (eg "PDF" or "Word") - or null if no nice type can be recognised
-
getType
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectAn 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:
getTypein interfaceContentTypeAware- Overrides:
getTypein classAttachment- Returns:
- the content type
-
getDisplayTitle
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectReturns 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:
getDisplayTitlein interfaceAddressable- Overrides:
getDisplayTitlein classAttachment- Returns:
- the display title
-
getUrlPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getUrlPathin interfaceAddressable- Overrides:
getUrlPathin classAttachment
-
getSearchableDependants
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchableWhen we un-index something (say, a page), we also need to un-index everything contained within that page (comments, attachments), because presumably they're all about to go away.- Specified by:
getSearchableDependantsin interfaceSearchable- Overrides:
getSearchableDependantsin classAttachment
-
isUserProfilePicture
public boolean isUserProfilePicture()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentDetermines whether the Attachment is a user's profile picture- Overrides:
isUserProfilePicturein classAttachment- Returns:
- true if it is attached to a PersonalInformation object and has the correct comment
-
isIndexable
public boolean isIndexable()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentOnly the current version of a non-hidden attachment is indexable (until we can deal with old objects in search results) We also don't want to index attachments associated with drafts or global descriptions or hidden attachments- Specified by:
isIndexablein interfaceSearchable- Overrides:
isIndexablein classAttachment
-
getDownloadPath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDownloadPathin interfaceSearchableAttachment- Overrides:
getDownloadPathin classAttachment
-
getDownloadPathWithoutVersion
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentReturns the download path without any version info.- Overrides:
getDownloadPathWithoutVersionin classAttachment
-
getDownloadPathWithoutVersionOrApiRevision
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentReturns the download path without any version info or API revision.- Overrides:
getDownloadPathWithoutVersionOrApiRevisionin classAttachment
-
getDownloadPath
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentReturns the download path of the attachment for a given attachmentPath prefix. It basically appends the filename and some meta info to form the path.- Overrides:
getDownloadPathin classAttachment
-
getDownloadPathWithoutEncoding
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getDownloadPathWithoutEncodingin classAttachment
-
getExportPath
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getExportPathin classAttachment
-
getExportPathForThumbnail
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getExportPathForThumbnailin classAttachment
-
getContentsAsStream
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SearchableAttachmentReturn the contents of the attachment as an InputStream- Specified by:
getContentsAsStreamin interfaceSearchableAttachment- Overrides:
getContentsAsStreamin classAttachment- Returns:
- an InputStream set at the start of the attachment's contents.
- Throws:
IOException
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classAttachment
-
getNameForComparison
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectSubclasses should implement this method, giving a String back so that the content can be alphabetically sorted in a mixed-type list of content-entities.- Overrides:
getNameForComparisonin classAttachment
-
equals
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
equalsin classAttachment
-
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
hashCodein classAttachment
-
getFileExtension
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentReturns the file extension of the attachment. If there is no extension, an empty string is returned.- Overrides:
getFileExtensionin classAttachment- Returns:
- the file extension of the attachment in lower case
-
getSpace
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSpacein interfaceSpaced- Overrides:
getSpacein classAttachment- Returns:
- the space of the owning content if it can be associated with a space (i.e. of type
Spaced), or null otherwise.
-
getLinkWikiMarkup
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLinkWikiMarkupin interfaceHasLinkWikiMarkup- Overrides:
getLinkWikiMarkupin classAttachment- Returns:
- the wiki markup used to link to this content
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clonein classAttachment
-
copy
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
copyin classAttachment
-
getVersionChildPolicy
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:VersionedReturns the rightVersionChildOwnerPolicydepending on the passed contentType. By default,VersionChildOwnerPolicy.currentVersionis returnedRight now, this is only enforced for children with content type Attachment or Comment
- Specified by:
getVersionChildPolicyin interfaceVersioned- Overrides:
getVersionChildPolicyin classAttachment
-
getContentTypeObject
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getContentTypeObjectin interfaceContentConvertible- Overrides:
getContentTypeObjectin classAttachment- Returns:
- the api ContentType that this ContentConvertible converts to
-
getContentId
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ContentEntityObjectReturns theContentIdfor this entity object, if it implementsContentConvertible.Subclasses implementing ContentConvertible must override this method.
- Specified by:
getContentIdin interfaceContentConvertible- Overrides:
getContentIdin classAttachment- Returns:
- the ContentId representation of this object's id
-
shouldConvertToContent
public boolean shouldConvertToContent()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
shouldConvertToContentin interfaceContentConvertible- Overrides:
shouldConvertToContentin classAttachment- Returns:
- true if the implementer wants to be part of the core API (default value), false otherwise
-
copyLatestVersion
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AttachmentWill copy all detail information of an attachment including : - Content Properties - File Name - File Size - Content Type - And set version is 1NOTE: it won't copy content history
- Overrides:
copyLatestVersionin classAttachment- Returns:
- a copy instance
-
getId
public long getId()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIdin interfaceAddressable- Specified by:
getIdin interfaceEditableLabelable- Specified by:
getIdin interfaceSearchable- Overrides:
getIdin classcom.atlassian.core.bean.EntityObject
-
setId
public void setId(long id) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setIdin classcom.atlassian.core.bean.EntityObject
-
getCreationDate
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCreationDatein classAnnotatedEntityObject
-
setCreationDate
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setCreationDatein classcom.atlassian.core.bean.EntityObject
-
getLastModificationDate
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getLastModificationDatein classAnnotatedEntityObject
-
setLastModificationDate
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setLastModificationDatein classcom.atlassian.core.bean.EntityObject
-
setClock
public void setClock(com.atlassian.core.util.Clock clock) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setClockin classcom.atlassian.core.bean.EntityObject
-
getCurrentDate
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getCurrentDatein classcom.atlassian.core.bean.EntityObject
-
Attachmentdirectly.