Uses of Class
com.atlassian.confluence.pages.Attachment

Packages that use Attachment
com.atlassian.confluence.core   
com.atlassian.confluence.event.events.content.attachment   
com.atlassian.confluence.importexport.impl   
com.atlassian.confluence.importexport.resource   
com.atlassian.confluence.links   
com.atlassian.confluence.mail.actions   
com.atlassian.confluence.pages   
com.atlassian.confluence.pages.actions   
com.atlassian.confluence.pages.persistence.dao   
com.atlassian.confluence.pages.persistence.dao.hibernate   
com.atlassian.confluence.pages.thumbnail   
com.atlassian.confluence.plugin.descriptor.web   
com.atlassian.confluence.renderer.attachments   
com.atlassian.confluence.renderer.embedded   
com.atlassian.confluence.rpc.soap.beans   
com.atlassian.confluence.servlet.download   
com.atlassian.confluence.themes   
com.atlassian.confluence.upgrade   
com.atlassian.confluence.user.actions   
com.atlassian.confluence.util   
 

Uses of Attachment in com.atlassian.confluence.core
 

Methods in com.atlassian.confluence.core that return Attachment
 Attachment ContentEntityObject.getAttachmentNamed(java.lang.String fileName)
           
 

Methods in com.atlassian.confluence.core with parameters of type Attachment
 void ContentEntityObject.addAttachment(Attachment attachment)
           
 void ContentEntityObject.removeAttachment(Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.event.events.content.attachment
 

Constructors in com.atlassian.confluence.event.events.content.attachment with parameters of type Attachment
AttachmentCreateEvent(java.lang.Object src, Attachment attachment)
           
AttachmentEvent(java.lang.Object src, Attachment attachment, ContentEntityObject attachedTo)
           
AttachmentRemoveEvent(java.lang.Object src, Attachment attachment, com.atlassian.user.User remover)
           
AttachmentUpdateEvent(java.lang.Object src, Attachment attachment)
           
AttachmentViewEvent(java.lang.Object src, Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.importexport.impl
 

Methods in com.atlassian.confluence.importexport.impl with parameters of type Attachment
protected  boolean DefaultExportEmbeddedResourceRenderer.isPermittedToViewAttachment(Attachment attachment)
          Checks whether the user is able to view the attachment
 

Uses of Attachment in com.atlassian.confluence.importexport.resource
 

Methods in com.atlassian.confluence.importexport.resource that return Attachment
protected  Attachment AttachmentDownloadResourceManager.getAttachment(java.lang.String userName, java.lang.String resourcePath, java.util.Map parameters, java.lang.String urlPrefix)
           
 

Constructors in com.atlassian.confluence.importexport.resource with parameters of type Attachment
AttachmentDownloadResourceReader(Attachment attachment, org.springframework.core.io.InputStreamSource inputStreamSource)
           
ThumbnailDownloadResourceReader(Attachment attachment, java.io.File thumbnailFile, org.springframework.core.io.InputStreamSource inputStreamSource)
           
 

Uses of Attachment in com.atlassian.confluence.links
 

Fields in com.atlassian.confluence.links declared as Attachment
protected  Attachment AbstractAttachmentLink.attachment
           
 

Methods in com.atlassian.confluence.links that return Attachment
 Attachment AbstractAttachmentLink.getAttachment()
           
 

Uses of Attachment in com.atlassian.confluence.mail.actions
 

Methods in com.atlassian.confluence.mail.actions with parameters of type Attachment
 java.lang.String[] ViewMailAction.getAttachmentDetails(Attachment attachment)
          Used for writing the "do you want to remove?" message.
 

Uses of Attachment in com.atlassian.confluence.pages
 

Methods in com.atlassian.confluence.pages that return Attachment
 Attachment AttachmentData.getAttachment()
           
 Attachment AttachmentManager.getAttachment(ContentEntityObject content, java.lang.String attachmentFileName)
          Get the most recent version of an attachment with a given name for a particular page
 Attachment AbstractAttachmentManager.getAttachment(ContentEntityObject content, java.lang.String attachmentFileName)
          Get the most recent version of an attachment with a given name for a particular page
 Attachment DelegatorAttachmentManager.getAttachment(ContentEntityObject content, java.lang.String attachmentFileName)
           
 Attachment AttachmentManager.getAttachment(ContentEntityObject content, java.lang.String attachmentFileName, int version)
          Retrieve a named attachment from a page
 Attachment AbstractAttachmentManager.getAttachment(ContentEntityObject content, java.lang.String attachmentFileName, int version)
          Retrieve a named attachment from a page
 Attachment DelegatorAttachmentManager.getAttachment(ContentEntityObject content, java.lang.String attachmentFileName, int version)
           
 

Methods in com.atlassian.confluence.pages with parameters of type Attachment
 java.util.List AttachmentManager.getAllVersions(Attachment attachment)
          Get all versions of an attachment, starting with the current version
 java.util.List DefaultAttachmentManager.getAllVersions(Attachment attachment)
           
 java.util.List WebDavAttachmentManager.getAllVersions(Attachment attachment)
           
 java.util.List DelegatorAttachmentManager.getAllVersions(Attachment attachment)
           
 java.io.InputStream AttachmentManager.getAttachmentData(Attachment attachment)
          Retrieve the data for attachment
 java.io.InputStream DefaultAttachmentManager.getAttachmentData(Attachment attachment)
           
 java.io.InputStream DelegatorAttachmentManager.getAttachmentData(Attachment attachment)
           
static java.io.File AttachmentUtils.getContainingFolder(Attachment attachment)
           
static java.io.InputStream AttachmentUtils.getLatestAttachmentStream(Attachment attachment)
          Returns the attachment data as an InputStream

This method is not specific to any implementation of the AttachmentManager.

static java.io.File AttachmentUtils.getOldContainingFolder(Attachment attachment)
          Deprecated. as of Confluence 2.2 (we now use the attachment id to store attachments)
 java.util.List AttachmentManager.getPreviousVersions(Attachment attachment)
          Get all non-current versions of an attachment, not including the current version.
 java.util.List AbstractAttachmentManager.getPreviousVersions(Attachment attachment)
           
 java.util.List DelegatorAttachmentManager.getPreviousVersions(Attachment attachment)
           
 void AttachmentManager.moveAttachment(Attachment latestVersion, java.lang.String fileName, ContentEntityObject newContent)
           
 void DefaultAttachmentManager.moveAttachment(Attachment latestVersion, java.lang.String newFileName, ContentEntityObject newContent)
           
 void DelegatorAttachmentManager.moveAttachment(Attachment attachment, java.lang.String newFileName, ContentEntityObject newName)
           
 void AttachmentManager.removeAttachmentFromServer(Attachment attachment)
          Removes an Attachment and its data from the server and data store
 void DefaultAttachmentManager.removeAttachmentFromServer(Attachment latestVersion)
          Removes the attachment and all previous versions
 void DelegatorAttachmentManager.removeAttachmentFromServer(Attachment attachment)
           
 void AttachmentManager.saveAttachment(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
          Saves an Attachment and its data
 void AbstractAttachmentManager.saveAttachment(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
           
 void DelegatorAttachmentManager.saveAttachment(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
           
protected abstract  void AbstractAttachmentManager.saveNewAttachment(Attachment attachment, java.io.InputStream attachmentData)
           
protected  void DefaultAttachmentManager.saveNewAttachment(Attachment attachment, java.io.InputStream attachmentData)
           
protected abstract  void AbstractAttachmentManager.saveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
           
protected  void DefaultAttachmentManager.saveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
           
 void AttachmentData.setAttachment(Attachment attachment)
           
 void AttachmentManager.setAttachmentData(Attachment attachment, java.io.InputStream attachmentData)
          Set the data belonging to attachment This method can be used when there is missing data for an Attachment (e.g.
 void DefaultAttachmentManager.setAttachmentData(Attachment attachment, java.io.InputStream attachmentData)
           
 void DelegatorAttachmentManager.setAttachmentData(Attachment attachment, java.io.InputStream attachmentData)
           
 

Constructors in com.atlassian.confluence.pages with parameters of type Attachment
AttachmentData(int version, Attachment attachment, java.io.InputStream data)
           
 

Uses of Attachment in com.atlassian.confluence.pages.actions
 

Fields in com.atlassian.confluence.pages.actions declared as Attachment
protected  Attachment AbstractEditAttachedFileAction.attachment
           
 

Methods in com.atlassian.confluence.pages.actions that return Attachment
 Attachment AbstractEditAttachedFileAction.getAttachment()
           
 

Methods in com.atlassian.confluence.pages.actions with parameters of type Attachment
 java.lang.String[] AbstractViewAttachmentsAction.getAttachmentDetails(Attachment attachment)
          Used for writing the "do you want to remove?" message.
 java.util.List AbstractViewAttachmentsAction.getPreviousVersions(Attachment attachment)
           
 AttachmentHelper ViewPageAttachmentsAction.getTargetHelper(Attachment attachment)
          Deprecated. since 2.8 use ViewPageAttachmentsAction.getWebInterfaceContext(Attachment)
 WebInterfaceContext ViewPageAttachmentsAction.getWebInterfaceContext(Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.pages.persistence.dao
 

Methods in com.atlassian.confluence.pages.persistence.dao with parameters of type Attachment
 java.util.List WebDavAttachmentDao.findAllVersions(Attachment attachment)
           
 java.util.List AttachmentDao.findAllVersions(Attachment attachment)
           
 java.io.InputStream WebDavAttachmentDao.getAttachmentData(Attachment attachment)
           
 java.io.InputStream AttachmentDao.getAttachmentData(Attachment attachment)
          Retrieves the InputStream representing the data for attachment
 java.lang.String FileSystemAttachmentDataDao.FileSystemAttachmentNamingStrategy.getAttachmentFileName(Attachment attachment)
           
 java.io.InputStream FileSystemAttachmentDataDao.getDataForAttachment(Attachment attachment)
           
 java.io.InputStream AttachmentDataDao.getDataForAttachment(Attachment attachment)
          Grabs the AttachmentData object for an Attachment
protected  java.io.File FileSystemAttachmentDataDao.getDirectoryForAttachment(ContentEntityObject content, Attachment attachment)
          Retrieves the location of the containing folder for an Attachment
protected  java.io.File FileSystemAttachmentDataDao.getLatestAttachmentFile(Attachment attachment)
           
 void WebDavAttachmentDao.moveAttachment(Attachment attachment, Attachment oldAttachment, ContentEntityObject newContent)
           
 void FileSystemAttachmentDataDao.moveAttachment(Attachment attachment, Attachment oldAttachment, ContentEntityObject newContent)
           
 void AttachmentDataDao.moveAttachment(Attachment attachment, Attachment oldAttachment, ContentEntityObject newContent)
          Moves an attachment to a new file name or content object
 void AttachmentDao.moveAttachment(Attachment attachment, Attachment oldAttachment, ContentEntityObject newContent)
          Moves an Attachment to a new file name or content object

This method assumes that the filename and/or content of the attachment (and its previous versions) have already been updated.

 void WebDavAttachmentDao.removeAttachmentFromServer(Attachment attachment)
          todo: Should i remove the files from the webdav server?! should i remove the parent folder when folder's empty?
 void AttachmentDao.removeAttachmentFromServer(Attachment attachment)
          Removes attachment (and all of its versions)
 void FileSystemAttachmentDataDao.removeDataForAttachment(Attachment attachment, ContentEntityObject originalContent)
           
 void AttachmentDataDao.removeDataForAttachment(Attachment attachment, ContentEntityObject originalContent)
          Removes all attachment data for an attachment
 void WebDavAttachmentDao.renameAttachment(Attachment attachment, java.lang.String newName)
           
 void WebDavAttachmentDao.replaceAttachmentData(Attachment attachment, java.io.InputStream attachmentData)
          Technically, this method is supposed to overwrite existing data without incrementing the version, due to the nature of WebDAV, we can't avoid that.
 void AttachmentDao.replaceAttachmentData(Attachment attachment, java.io.InputStream attachmentData)
          Sets the attachment data for attachment This method will overwrite any existing data for the attachment version.
 void FileSystemAttachmentDataDao.replaceDataForAttachment(Attachment attachment, java.io.InputStream data)
           
 void AttachmentDataDao.replaceDataForAttachment(Attachment attachment, java.io.InputStream data)
          Sets the data for attachment This method will overwrite any existing data for the attachment.
 void FileSystemAttachmentDataDao.saveDataForAttachment(Attachment attachment, java.io.InputStream data)
           
 void AttachmentDataDao.saveDataForAttachment(Attachment attachment, java.io.InputStream data)
          Saves data to the attachment data store
protected  void FileSystemAttachmentDataDao.saveDataForAttachment(Attachment attachment, java.io.InputStream data, boolean overwrite)
          Saves data to the file system
 void FileSystemAttachmentDataDao.saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream data)
           
 void AttachmentDataDao.saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream data)
          Saves data to the attachment data store, for an attachment that has been updated.
 void WebDavAttachmentDao.saveNewAttachment(Attachment attachment, java.io.InputStream attachmentData)
          This implementation saves a new Attachment to the appropriate path.
 void AttachmentDao.saveNewAttachment(Attachment attachment, java.io.InputStream attachmentData)
          Saves a new attachment
 void WebDavAttachmentDao.saveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
           
 void AttachmentDao.saveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
          Saves a new version of attachment
 

Uses of Attachment in com.atlassian.confluence.pages.persistence.dao.hibernate
 

Methods in com.atlassian.confluence.pages.persistence.dao.hibernate with parameters of type Attachment
 java.util.List AbstractHibernateAttachmentDao.findAllVersions(Attachment attachment)
           
 java.io.InputStream AbstractHibernateAttachmentDao.getAttachmentData(Attachment attachment)
           
protected  AttachmentData HibernateAttachmentDataDao.getAttachmentDataForAttachment(Attachment attachment)
          Retrieves the attachment data object for a given attachment.
 java.io.InputStream HibernateAttachmentDataDao.getDataForAttachment(Attachment attachment)
           
 void HibernateAttachmentDataDao.moveAttachment(Attachment attachment, Attachment oldAttachment, ContentEntityObject newContent)
           
 void AbstractHibernateAttachmentDao.moveAttachment(Attachment latestVersion, Attachment oldAttachment, ContentEntityObject newContent)
           
protected  void AbstractHibernateAttachmentDao.removeAttachment(Attachment attachment, ContentEntityObject content)
          Severs the connection between attachment and content, and removes the attachment from the database
 void NonTransactionalHibernateAttachmentDao.removeAttachmentFromServer(Attachment attachment)
           
 void TransactionalHibernateAttachmentDao.removeAttachmentFromServer(Attachment attachment)
           
 void HibernateAttachmentDataDao.removeDataForAttachment(Attachment attachment, ContentEntityObject originalContent)
           
 void AbstractHibernateAttachmentDao.replaceAttachmentData(Attachment attachment, java.io.InputStream attachmentData)
           
 void HibernateAttachmentDataDao.replaceDataForAttachment(Attachment attachment, java.io.InputStream data)
           
 void HibernateAttachmentDataDao.saveDataForAttachment(Attachment attachment, java.io.InputStream data)
           
 void HibernateAttachmentDataDao.saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream data)
           
 void AbstractHibernateAttachmentDao.saveNewAttachment(Attachment attachment, java.io.InputStream attachmentData)
           
 void AbstractHibernateAttachmentDao.saveNewAttachmentVersion(Attachment attachment, Attachment previousVersion, java.io.InputStream attachmentData)
          This implementation saves the Attachment and its previous version to the VersionedHibernateObjectDao.
 

Uses of Attachment in com.atlassian.confluence.pages.thumbnail
 

Methods in com.atlassian.confluence.pages.thumbnail that return Attachment
 Attachment ThumbnailInfo.getAttachment()
           
 

Methods in com.atlassian.confluence.pages.thumbnail with parameters of type Attachment
 com.atlassian.core.util.thumbnail.Thumbnail WebDavThumbnailManager.getThumbnail(Attachment attachment)
          Deprecated.  
 com.atlassian.core.util.thumbnail.Thumbnail DelegatorThumbnailManager.getThumbnail(Attachment attachment)
          Deprecated.  
 com.atlassian.core.util.thumbnail.Thumbnail ThumbnailManager.getThumbnail(Attachment attachment)
          retrieves the thumbnail for this attachment in the form of a Thumbnail Object

this method also creates the actual thumbnail file on the filesystem if it does not exist

 com.atlassian.core.util.thumbnail.Thumbnail DefaultThumbnailManager.getThumbnail(Attachment attachment)
          Retrieves the thumbnail for attachment
 java.io.InputStream DelegatorThumbnailManager.getThumbnailData(Attachment attachment)
          Deprecated.  
 java.io.InputStream ThumbnailManager.getThumbnailData(Attachment attachment)
          retrieves the thumbnail data (as a stream) from where it was stored in the file system
 java.io.InputStream DefaultThumbnailManager.getThumbnailData(Attachment attachment)
          We only store a thumbnail of the latest version of an image attachment in the format thumb_foo.jpg When new versions of the attachment are added, this thumbnail is removed and regenerated the next time its requested.
 java.io.File DelegatorThumbnailManager.getThumbnailFile(Attachment attachment)
          Deprecated.  
 java.io.File ThumbnailManager.getThumbnailFile(Attachment attachment)
          returns the path to the thumbnail for this attachment
 java.io.File DefaultThumbnailManager.getThumbnailFile(Attachment attachment)
           
protected  java.io.File DefaultThumbnailManager.getThumbnailsFolder(Attachment attachment)
           
 boolean DelegatorThumbnailManager.isThumbnailable(Attachment attachment)
          Deprecated.  
 boolean ThumbnailManager.isThumbnailable(Attachment attachment)
          checks the mime type of the attachment to determine whether a thumbnail can be created from it
 boolean DefaultThumbnailManager.isThumbnailable(Attachment attachment)
           
 boolean DelegatorThumbnailManager.removeThumbnail(Attachment attachment)
          Deprecated.  
 boolean ThumbnailManager.removeThumbnail(Attachment attachment)
          Removes the thumbnail for the specified attachment.
 boolean DefaultThumbnailManager.removeThumbnail(Attachment attachment)
           
 

Constructors in com.atlassian.confluence.pages.thumbnail with parameters of type Attachment
ThumbnailInfo(Attachment attachment, java.io.InputStream attachmentData, java.lang.String attachmentsPath)
          This method closes the InputStream given to it.
 

Uses of Attachment in com.atlassian.confluence.plugin.descriptor.web
 

Methods in com.atlassian.confluence.plugin.descriptor.web that return Attachment
 Attachment WebInterfaceContext.getAttachment()
          Returns the attachment related to the web interface state, or null if there is no attachment.
 Attachment DefaultWebInterfaceContext.getAttachment()
           
 

Methods in com.atlassian.confluence.plugin.descriptor.web with parameters of type Attachment
 void DefaultWebInterfaceContext.setAttachment(Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.renderer.attachments
 

Methods in com.atlassian.confluence.renderer.attachments with parameters of type Attachment
 java.lang.String RendererAttachmentManager.getImagePath(Attachment attachment, boolean isThumbnail)
           
protected  boolean RendererAttachmentManager.isPermittedToViewAttachment(Attachment attachment)
          Checks whether the user is able to view the attachment
 

Uses of Attachment in com.atlassian.confluence.renderer.embedded
 

Methods in com.atlassian.confluence.renderer.embedded that return Attachment
static Attachment EmbeddedResourceUtils.resolveAttachment(PageContext context, com.atlassian.renderer.embedded.EmbeddedResource resource)
           
 

Methods in com.atlassian.confluence.renderer.embedded with parameters of type Attachment
 java.lang.String ImagePathHelper.getImagePath(Attachment attachment, boolean isThumbnail)
          Return the path used to access the specified image.
 java.lang.String EmbeddedImageRenderer.getImagePath(Attachment attachment, boolean isThumbnail)
          Deprecated.  
 

Uses of Attachment in com.atlassian.confluence.rpc.soap.beans
 

Constructors in com.atlassian.confluence.rpc.soap.beans with parameters of type Attachment
RemoteAttachment(Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.servlet.download
 

Methods in com.atlassian.confluence.servlet.download that return Attachment
 Attachment AttachmentUrlParser.getAttachment(java.lang.String urlPath, java.lang.String urlPrefix, java.util.Map parameters)
           
 

Uses of Attachment in com.atlassian.confluence.themes
 

Methods in com.atlassian.confluence.themes that return Attachment
 Attachment AttachmentHelper.getAttachment()
           
 

Constructors in com.atlassian.confluence.themes with parameters of type Attachment
AttachmentHelper(ConfluenceActionSupport action, Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.upgrade
 

Methods in com.atlassian.confluence.upgrade with parameters of type Attachment
protected  boolean AttachmentFileNameUpgradeTask.tryToFixFile(java.io.File attachmentDir, Attachment attachment, java.lang.String nativeEncoding)
          Try and locate and update a file which may have a badly encoded file name This method will run through all the configured mangled encodings
protected  boolean AttachmentFileNameUpgradeTask.tryToFixFile(java.io.File attachmentDir, Attachment attachment, java.lang.String nativeEncoding, java.lang.String fileSystemEncoding)
          Try to fix an attachment file by looking for a file name encoded with the specified encoding
protected  boolean AttachmentFileNameUpgradeTask.updateAttachmentFile(Attachment attachment, java.io.File attachmentFile)
          Map an attachment to the new ID based naming scheme
 

Uses of Attachment in com.atlassian.confluence.user.actions
 

Constructors in com.atlassian.confluence.user.actions with parameters of type Attachment
ProfilePictureInfo(Attachment attachment)
           
 

Uses of Attachment in com.atlassian.confluence.util
 

Methods in com.atlassian.confluence.util with parameters of type Attachment
static java.lang.String ConfluenceRenderUtils.getAbsoluteAttachmentRemotePath(Attachment a)
           
static java.lang.String ConfluenceRenderUtils.getAttachmentRemotePath(Attachment a)
           
 ThumbnailInfo DefaultThumbnailInfoFactory.getThumbnailInfo(Attachment attachment)
           
 ThumbnailInfo ThumbnailInfoFactory.getThumbnailInfo(Attachment attachment)
          Returns a thumbnail info object if this attachment is valid and can be converted into a thumbnail.
 



Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.