mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 12:45:35 +00:00
Removed unnecessary diffs from master and applied code formatter to all diffs
This commit is contained in:
@@ -35,7 +35,7 @@ public interface FileStorageService extends IsManagedByCache<FileStorageServiceR
|
||||
* From the given {@code uri} it should be possible to determine the file to remove.
|
||||
*/
|
||||
void removeFile(URI uri) throws OperationFailedException, InvalidPropertiesException, IOException;
|
||||
|
||||
|
||||
FileStorageServiceProperty[] getProperties();
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ public class AmazonS3FileStorageServiceImpl extends BaseFileStorageServiceImpl i
|
||||
|
||||
private AmazonS3Client createS3Client() throws InvalidPropertiesException {
|
||||
AWSCredentials creds;
|
||||
|
||||
|
||||
// first try to use properties
|
||||
if (accessId.getValue() != null && accessKey.getValue() != null) {
|
||||
creds = new BasicAWSCredentials(accessId.getValue(), accessKey.getValue());
|
||||
@@ -124,7 +124,7 @@ public class AmazonS3FileStorageServiceImpl extends BaseFileStorageServiceImpl i
|
||||
AmazonS3Client s3 = createS3Client();
|
||||
|
||||
|
||||
if(bucketName.getValue().equals("")) {
|
||||
if (bucketName.getValue().equals("")) {
|
||||
throw new InvalidPropertiesException("empty bucketname is not allowed");
|
||||
}
|
||||
// test if credentials are valid
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ public class LocalFileStorageServiceImpl extends BaseFileStorageServiceImpl impl
|
||||
|
||||
return getUri(fileName);
|
||||
}
|
||||
|
||||
|
||||
private static String getKey(String fileEnding) {
|
||||
String key = UUID.randomUUID().toString();
|
||||
key += fileEnding;
|
||||
|
||||
+1
@@ -41,4 +41,5 @@ public class DummyFileStorageService extends BaseFileStorageServiceImpl implemen
|
||||
@Override
|
||||
public void testProperties() throws InvalidPropertiesException {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user