Removed unnecessary diffs from master and applied code formatter to all diffs

This commit is contained in:
RobinFleige
2018-08-16 11:09:36 +02:00
parent e9a9c852c5
commit e425e2108e
19 changed files with 91 additions and 73 deletions
@@ -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();
/**
@@ -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
@@ -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;
@@ -41,4 +41,5 @@ public class DummyFileStorageService extends BaseFileStorageServiceImpl implemen
@Override
public void testProperties() throws InvalidPropertiesException {
}
}