public class TrackingMediaApiClient extends Object implements com.atlassian.media.client.api.MediaApiClient
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) |
void |
close() |
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) |
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) |
static com.atlassian.media.client.api.MediaApiClient |
decorate(com.atlassian.media.client.api.MediaApiClient delegate,
com.atlassian.event.api.EventPublisher eventPublisher) |
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) |
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.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) |
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) |
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.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) |
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) |
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) |
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) |
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) |
public static com.atlassian.media.client.api.MediaApiClient decorate(com.atlassian.media.client.api.MediaApiClient delegate, com.atlassian.event.api.EventPublisher eventPublisher)
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)
getFile
in interface com.atlassian.media.client.api.MediaApiClient
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)
uploadFile
in interface com.atlassian.media.client.api.MediaApiClient
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)
downloadOriginalFile
in interface com.atlassian.media.client.api.MediaApiClient
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)
downloadOriginalFile
in interface com.atlassian.media.client.api.MediaApiClient
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)
downloadArtifact
in interface com.atlassian.media.client.api.MediaApiClient
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)
downloadArtifact
in interface com.atlassian.media.client.api.MediaApiClient
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)
deleteFile
in interface com.atlassian.media.client.api.MediaApiClient
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)
copyFile
in interface com.atlassian.media.client.api.MediaApiClient
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)
registerClient
in interface com.atlassian.media.client.api.MediaApiClient
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)
chunkExists
in interface com.atlassian.media.client.api.MediaApiClient
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)
uploadChunk
in interface com.atlassian.media.client.api.MediaApiClient
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)
downloadChunk
in interface com.atlassian.media.client.api.MediaApiClient
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)
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–2017 Atlassian. All rights reserved.