@Deprecated public class TrackingMediaApiClient extends Object implements MediaApiClientAdapter
MediaApiClient
which publishes
a FileStoreEvent
after any FileStore operation is performed.Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<Boolean>> |
chunkExists(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
com.atlassian.media.client.api.entity.ChunkETag chunkETag)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.isChunkExists(ClientIdentity, ChunkETag) |
void |
close()
Deprecated.
|
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> |
copyFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.cloneFile(ClientIdentity, String) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> |
createFileFromChunks(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
List<com.atlassian.media.client.api.entity.ChunkETag> list,
com.atlassian.fugue.Option<String> name)
Deprecated.
|
static com.atlassian.media.client.api.MediaApiClient |
decorate(com.atlassian.media.client.api.MediaApiClient delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
Deprecated.
|
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<Void>> |
deleteFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.removeFile(ClientIdentity, String) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> |
downloadArtifact(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId,
com.atlassian.media.client.api.entity.ArtifactType artifactType)
Deprecated.
|
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> |
downloadArtifact(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId,
com.atlassian.media.client.api.entity.ArtifactType artifactType,
com.atlassian.media.client.api.entity.ByteRange byteRange)
Deprecated.
|
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<InputStream>> |
downloadChunk(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
com.atlassian.media.client.api.entity.ChunkETag chunkETag)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.getChunk(ClientIdentity, ChunkETag) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> |
downloadOriginalFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.getOriginalFile(ClientIdentity, String) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> |
downloadOriginalFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId,
com.atlassian.media.client.api.entity.ByteRange byteRange)
Deprecated.
|
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> |
getFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
String fileStoreId)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.getFileById(ClientIdentity, String) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.ClientIdentity>> |
registerClient(String name,
String description)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.registerClientWithName(String, String) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.ChunkETag>> |
uploadChunk(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
byte[] data,
int length)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.storeChunk(ClientIdentity, byte[], int) |
com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> |
uploadFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity,
InputStream inputStream,
String name)
Deprecated.
since 7.0.1. Use
MediaApiClientAdapter.storeFile(ClientIdentity, InputStream, String) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneFile, getArtifact, getArtifact, getChunk, getFileById, getOriginalFile, getOriginalFile, isChunkExists, newFileFromChunks, registerClientWithName, removeFile, storeChunk, storeFile
public static com.atlassian.media.client.api.MediaApiClient decorate(com.atlassian.media.client.api.MediaApiClient delegate, com.atlassian.event.api.EventPublisher eventPublisher)
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> getFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
MediaApiClientAdapter.getFileById(ClientIdentity, String)
getFile
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> uploadFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, InputStream inputStream, String name)
MediaApiClientAdapter.storeFile(ClientIdentity, InputStream, String)
uploadFile
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> downloadOriginalFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
MediaApiClientAdapter.getOriginalFile(ClientIdentity, String)
downloadOriginalFile
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> downloadOriginalFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId, com.atlassian.media.client.api.entity.ByteRange byteRange)
MediaApiClientAdapter.getOriginalFile(ClientIdentity, String, ByteRange)
downloadOriginalFile
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> downloadArtifact(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId, com.atlassian.media.client.api.entity.ArtifactType artifactType)
MediaApiClientAdapter.getArtifact(ClientIdentity, String, ArtifactType)
downloadArtifact
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.EntityResult>> downloadArtifact(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId, com.atlassian.media.client.api.entity.ArtifactType artifactType, com.atlassian.media.client.api.entity.ByteRange byteRange)
MediaApiClientAdapter.getArtifact(ClientIdentity, String, ArtifactType, ByteRange)
downloadArtifact
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<Void>> deleteFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
MediaApiClientAdapter.removeFile(ClientIdentity, String)
deleteFile
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> copyFile(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, String fileStoreId)
MediaApiClientAdapter.cloneFile(ClientIdentity, String)
copyFile
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.ClientIdentity>> registerClient(String name, String description)
MediaApiClientAdapter.registerClientWithName(String, String)
registerClient
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<Boolean>> chunkExists(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, com.atlassian.media.client.api.entity.ChunkETag chunkETag)
MediaApiClientAdapter.isChunkExists(ClientIdentity, ChunkETag)
chunkExists
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.ChunkETag>> uploadChunk(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, byte[] data, int length)
MediaApiClientAdapter.storeChunk(ClientIdentity, byte[], int)
uploadChunk
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<InputStream>> downloadChunk(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, com.atlassian.media.client.api.entity.ChunkETag chunkETag)
MediaApiClientAdapter.getChunk(ClientIdentity, ChunkETag)
downloadChunk
in interface com.atlassian.media.client.api.MediaApiClient
@Deprecated public com.atlassian.fugue.Either<com.atlassian.media.client.api.Failure,com.atlassian.media.client.api.Success<com.atlassian.media.client.api.entity.Entity>> createFileFromChunks(com.atlassian.media.client.api.entity.ClientIdentity clientIdentity, List<com.atlassian.media.client.api.entity.ChunkETag> list, com.atlassian.fugue.Option<String> name)
MediaApiClientAdapter.newFileFromChunks(ClientIdentity, List, String)
createFileFromChunks
in interface com.atlassian.media.client.api.MediaApiClient
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2003–2021 Atlassian. All rights reserved.