Interface AttachmentDataFileSystem
-
- All Known Implementing Classes:
HierarchicalMultiStreamAttachmentDataFileSystem
@Internal @Deprecated public interface AttachmentDataFileSystem
Deprecated.since 7.12 useAttachmentDataFileSystemRepresents the filesystem used to store attachment data files.- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleandataExistsForAttachment(Attachment attachment)Deprecated.Indicates whether the filesystem contains data for the given attachmentvoiddeleteAllAttachmentVersions(Attachment attachment, ContentEntityObject contentEntity)Deprecated.Delete all data corresponding to all versions of the given attachmentvoiddeleteSingleAttachmentVersion(Attachment attachment, ContentEntityObject contentEntity)Deprecated.Delete the data corresponding to a single attachment versionvoiddeleteSingleAttachmentVersion(Attachment attachment, ContentEntityObject contentEntity, AttachmentDataStreamType dataStreamType)Deprecated.Delete the data of the specified stream type corresponding to a single attachment versionAttachmentDataStreamgetAttachmentData(Attachment attachment, AttachmentDataStreamType dataStreamType)Deprecated.Fetches the data for a given attachment version and data stream typeAttachmentDataStreamgetAttachmentData(Attachment attachment, AttachmentDataStreamType dataStreamType, Optional<RangeRequest> range)Deprecated.Fetches the specified range of data for a given attachment version and data stream typevoidmoveAttachment(Attachment oldAttachment, Attachment newAttachment, ContentEntityObject newContentEntity)Deprecated.Move all data relating to one attachment to a new directory corresponding to the given new attachment and content entity.voidmoveAttachments(ContentEntityObject contentEntity, Space oldSpace, Space newSpace)Deprecated.Move all data for all versions of all attachments corresponding to the given content entity in the given space, to the same entity in a different space.voidmoveDataForAttachmentVersion(Attachment sourceAttachmentVersion, Attachment targetAttachmentVersion)Deprecated.Move the data associated with one attachment version, to being associated with a different attachment versionvoidprepareForMigrationTo()Deprecated.Prepare the data store for a migration from another type of data store.booleansaveAttachmentData(Attachment attachment, AttachmentDataStream dataStream, boolean overwrite)Deprecated.Save new data corresponding to the given attachment.
-
-
-
Method Detail
-
dataExistsForAttachment
boolean dataExistsForAttachment(Attachment attachment)
Deprecated.Indicates whether the filesystem contains data for the given attachment
-
moveAttachment
void moveAttachment(Attachment oldAttachment, Attachment newAttachment, ContentEntityObject newContentEntity)
Deprecated.Move all data relating to one attachment to a new directory corresponding to the given new attachment and content entity.- Parameters:
oldAttachment- The attachment whose data is to be movednewAttachment- The attachment to which the data should be moved tonewContentEntity- The content entity corresponding to the new attachment
-
saveAttachmentData
boolean saveAttachmentData(Attachment attachment, AttachmentDataStream dataStream, boolean overwrite)
Deprecated.Save new data corresponding to the given attachment.- Parameters:
attachment- The attachment to which the data should be associateddataStream- The new dataoverwrite- If true, any existing data will be overwritten. If false, does nothing if data already exists.- Returns:
- true if the data was written, false otherwise (e.g. no overwrite)
-
deleteAllAttachmentVersions
void deleteAllAttachmentVersions(Attachment attachment, ContentEntityObject contentEntity)
Deprecated.Delete all data corresponding to all versions of the given attachment- Parameters:
attachment- the attachment whose data is to be deletedcontentEntity- The content entity associated with the attachment
-
moveDataForAttachmentVersion
void moveDataForAttachmentVersion(Attachment sourceAttachmentVersion, Attachment targetAttachmentVersion)
Deprecated.Move the data associated with one attachment version, to being associated with a different attachment version- Parameters:
sourceAttachmentVersion- The attachment version containing the datatargetAttachmentVersion- The attachment version to which the data should be moved
-
deleteSingleAttachmentVersion
void deleteSingleAttachmentVersion(Attachment attachment, ContentEntityObject contentEntity)
Deprecated.Delete the data corresponding to a single attachment version- Parameters:
attachment- The attachment whose data should be deletedcontentEntity- The content entity associated with the attachment
-
deleteSingleAttachmentVersion
void deleteSingleAttachmentVersion(Attachment attachment, ContentEntityObject contentEntity, AttachmentDataStreamType dataStreamType)
Deprecated.Delete the data of the specified stream type corresponding to a single attachment version- Parameters:
attachment- The attachment whose data should be deletedcontentEntity- The content entity associated with the attachmentdataStreamType- The attachment stream type- Since:
- 6.5
-
getAttachmentData
AttachmentDataStream getAttachmentData(Attachment attachment, AttachmentDataStreamType dataStreamType)
Deprecated.Fetches the data for a given attachment version and data stream type- Parameters:
attachment- The attachment version for which the data is to be fetcheddataStreamType- The type of the data stream to be fetched- Returns:
- The
AttachmentDataStreamcontaining the result
-
getAttachmentData
AttachmentDataStream getAttachmentData(Attachment attachment, AttachmentDataStreamType dataStreamType, Optional<RangeRequest> range)
Deprecated.Fetches the specified range of data for a given attachment version and data stream type- Parameters:
attachment- The attachment version for which the data is to be fetcheddataStreamType- The type of the data stream to be fetchedrange- The range of the data stream to be fetched- Returns:
- The
AttachmentDataStreamcontaining the result
-
moveAttachments
void moveAttachments(ContentEntityObject contentEntity, Space oldSpace, Space newSpace)
Deprecated.Move all data for all versions of all attachments corresponding to the given content entity in the given space, to the same entity in a different space.- Parameters:
contentEntity- The content entity whose attachment data is to be movedoldSpace- The original space of the content entitynewSpace- The new space of the content entity
-
prepareForMigrationTo
void prepareForMigrationTo()
Deprecated.Prepare the data store for a migration from another type of data store.
-
-