Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
File Repository
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
File Repository
Commits
7deb9686
Commit
7deb9686
authored
Sep 20, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-1.0' into 'master'
Release 1.0 See merge request
!25
parents
e1fc24c2
54b5cc9d
Changes
73
Hide whitespace changes
Inline
Side-by-side
Showing
73 changed files
with
440 additions
and
191 deletions
+440
-191
CHANGELOG.md
CHANGELOG.md
+18
-0
README.md
README.md
+0
-5
file-repository-core/pom.xml
file-repository-core/pom.xml
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/BytesStorageException.java
...ava/org/genesys/filerepository/BytesStorageException.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/FileRepositoryException.java
...a/org/genesys/filerepository/FileRepositoryException.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/InvalidRepositoryFileDataException.java
...ys/filerepository/InvalidRepositoryFileDataException.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/InvalidRepositoryPathException.java
...enesys/filerepository/InvalidRepositoryPathException.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/NoSuchRepositoryFileException.java
...genesys/filerepository/NoSuchRepositoryFileException.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/RepositoryPersistence.java
...ava/org/genesys/filerepository/RepositoryPersistence.java
+1
-1
file-repository-core/src/main/java/org/genesys/filerepository/metadata/BaseMetadata.java
...ava/org/genesys/filerepository/metadata/BaseMetadata.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/metadata/DocumentMetadata.java
...org/genesys/filerepository/metadata/DocumentMetadata.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/metadata/ImageMetadata.java
...va/org/genesys/filerepository/metadata/ImageMetadata.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/model/ImageGallery.java
...n/java/org/genesys/filerepository/model/ImageGallery.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryDocument.java
.../org/genesys/filerepository/model/RepositoryDocument.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryFile.java
...java/org/genesys/filerepository/model/RepositoryFile.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryImage.java
...ava/org/genesys/filerepository/model/RepositoryImage.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/persistence/ImageGalleryPersistence.java
...s/filerepository/persistence/ImageGalleryPersistence.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/persistence/RepositoryDocumentPersistence.java
...repository/persistence/RepositoryDocumentPersistence.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/persistence/RepositoryFilePersistence.java
...filerepository/persistence/RepositoryFilePersistence.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/persistence/RepositoryImagePersistence.java
...ilerepository/persistence/RepositoryImagePersistence.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/BytesStorageService.java
...g/genesys/filerepository/service/BytesStorageService.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/ImageGalleryService.java
...g/genesys/filerepository/service/ImageGalleryService.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/RepositoryService.java
...org/genesys/filerepository/service/RepositoryService.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/ThumbnailGenerator.java
...rg/genesys/filerepository/service/ThumbnailGenerator.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/VirusFoundException.java
...g/genesys/filerepository/service/VirusFoundException.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/VirusScanner.java
...java/org/genesys/filerepository/service/VirusScanner.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/AbstractImageGalleryAspects.java
...epository/service/aspect/AbstractImageGalleryAspects.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/ImageGalleryAspectsImpl.java
...ilerepository/service/aspect/ImageGalleryAspectsImpl.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/MetadataInStorageAspect.java
...ilerepository/service/aspect/MetadataInStorageAspect.java
+1
-1
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/VirusScanAspect.java
...enesys/filerepository/service/aspect/VirusScanAspect.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/ClamAVScanner.java
...rg/genesys/filerepository/service/impl/ClamAVScanner.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/FilenameValidator.java
...enesys/filerepository/service/impl/FilenameValidator.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/FilesystemStorageServiceImpl.java
...repository/service/impl/FilesystemStorageServiceImpl.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/ImageGalleryServiceImpl.java
.../filerepository/service/impl/ImageGalleryServiceImpl.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/PathValidator.java
...rg/genesys/filerepository/service/impl/PathValidator.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/RepositoryServiceImpl.java
...ys/filerepository/service/impl/RepositoryServiceImpl.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/S3StorageServiceImpl.java
...sys/filerepository/service/impl/S3StorageServiceImpl.java
+19
-5
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/ThumbnailGenerator1.java
...esys/filerepository/service/impl/ThumbnailGenerator1.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/s3/CommonPrefix.java
...a/org/genesys/filerepository/service/s3/CommonPrefix.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/s3/Content.java
...n/java/org/genesys/filerepository/service/s3/Content.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/s3/ListBucketResult.java
...g/genesys/filerepository/service/s3/ListBucketResult.java
+2
-2
file-repository-core/src/main/java/org/genesys/filerepository/service/s3/Owner.java
...ain/java/org/genesys/filerepository/service/s3/Owner.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/config/DatabaseConfig.java
...ava/org/genesys/filerepository/config/DatabaseConfig.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/config/ServiceBeanConfig.java
.../org/genesys/filerepository/config/ServiceBeanConfig.java
+7
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/FileRepositoryAddTest.java
...genesys/filerepository/service/FileRepositoryAddTest.java
+30
-28
file-repository-core/src/test/java/org/genesys/filerepository/service/FileRepositoryDirectoryTest.java
...s/filerepository/service/FileRepositoryDirectoryTest.java
+11
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/FileRepositoryExtensionTest.java
...s/filerepository/service/FileRepositoryExtensionTest.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/FileRepositoryTestUtil.java
...enesys/filerepository/service/FileRepositoryTestUtil.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/FileRepositoryUpdateTest.java
...esys/filerepository/service/FileRepositoryUpdateTest.java
+3
-3
file-repository-core/src/test/java/org/genesys/filerepository/service/FileSystemStorageTest.java
...genesys/filerepository/service/FileSystemStorageTest.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/ImageGalleryTest.java
.../org/genesys/filerepository/service/ImageGalleryTest.java
+4
-4
file-repository-core/src/test/java/org/genesys/filerepository/service/ImageGalleryThumbnailsTest.java
...ys/filerepository/service/ImageGalleryThumbnailsTest.java
+3
-3
file-repository-core/src/test/java/org/genesys/filerepository/service/MetadataTest.java
...java/org/genesys/filerepository/service/MetadataTest.java
+8
-7
file-repository-core/src/test/java/org/genesys/filerepository/service/PathValidatorTest.java
...org/genesys/filerepository/service/PathValidatorTest.java
+18
-8
file-repository-core/src/test/java/org/genesys/filerepository/service/RepositoryImageAddTest.java
...enesys/filerepository/service/RepositoryImageAddTest.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/RepositoryImageUpdateTest.java
...sys/filerepository/service/RepositoryImageUpdateTest.java
+3
-3
file-repository-core/src/test/java/org/genesys/filerepository/service/S3SignatureTest.java
...a/org/genesys/filerepository/service/S3SignatureTest.java
+23
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/S3StorageServiceTest.java
.../genesys/filerepository/service/S3StorageServiceTest.java
+29
-11
file-repository-core/src/test/java/org/genesys/filerepository/service/TestImage.java
...st/java/org/genesys/filerepository/service/TestImage.java
+2
-2
file-repository-core/src/test/java/org/genesys/filerepository/service/VirusScannerTest.java
.../org/genesys/filerepository/service/VirusScannerTest.java
+38
-2
file-repository-ftpserver/pom.xml
file-repository-ftpserver/pom.xml
+3
-3
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/CanBeAnythingFile.java
...genesys/filerepository/service/ftp/CanBeAnythingFile.java
+4
-2
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/FtpRunAs.java
...java/org/genesys/filerepository/service/ftp/FtpRunAs.java
+8
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/FtpUser.java
.../java/org/genesys/filerepository/service/ftp/FtpUser.java
+7
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/RepositoryFileSystemFactory.java
...lerepository/service/ftp/RepositoryFileSystemFactory.java
+1
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/RepositoryFtpDirectory.java
...ys/filerepository/service/ftp/RepositoryFtpDirectory.java
+1
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/RepositoryFtpFile.java
...genesys/filerepository/service/ftp/RepositoryFtpFile.java
+1
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/RepositoryFtpServer.java
...nesys/filerepository/service/ftp/RepositoryFtpServer.java
+1
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/RepositorySyncOutputStream.java
...ilerepository/service/ftp/RepositorySyncOutputStream.java
+1
-1
file-repository-ftpserver/src/main/java/org/genesys/filerepository/service/ftp/TemporaryBytesManager.java
...sys/filerepository/service/ftp/TemporaryBytesManager.java
+3
-2
file-repository-ftpserver/src/test/java/org/genesys/filerepository/service/ftp/ApplicationConfig.java
...genesys/filerepository/service/ftp/ApplicationConfig.java
+24
-1
file-repository-ftpserver/src/test/java/org/genesys/filerepository/service/ftp/FtpServerTest.java
...org/genesys/filerepository/service/ftp/FtpServerTest.java
+83
-2
pom.xml
pom.xml
+1
-1
No files found.
CHANGELOG.md
View file @
7deb9686
# Changelog
## 1.0 Release
September 19, 2018.
-
4e1e57a Updated javadoc
-
08036e3 FTP:
`CanBeAnythingFile`
updated with date and dir/file type
-
7c85407 Execute FTP calls with Spring Security context configured for FtpUser
-
a431f13
`@Transient`
getters were not serialized to JSON
-
237b4ad Fix table names for
`hibernate.ejb.naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy`
-
5d0ada7 Updates for Postgres
-
4079e5e Moved Spring Security annotations to service implementation
-
6063bca Use default JPA names for tables and columns
-
9425a0e
`RepositoryService`
method signatures updated
-
ee79457 Image galleries with ACL support
-
0df9094 Enabled ACL support on
`RepositoryFile`
-
72794bf Descriptions as
`@Lob`
## 0.9 Release
-
1fd22f7
`RepositoryFile#apply`
method should not modify internal values
...
...
README.md
View file @
7deb9686
...
...
@@ -2,8 +2,3 @@
The project implements a very simple DublinCore based file repository system.
# Migration
## From 0.8
Version
**0.9**
introduces a breaking change in dependencies. Replace
`file-repository`
dependency with
`file-repository-core`
.
file-repository-core/pom.xml
View file @
7deb9686
...
...
@@ -20,7 +20,7 @@
<parent>
<groupId>
org.genesys-pgr
</groupId>
<artifactId>
file-repository
</artifactId>
<version>
1.
0
-SNAPSHOT
</version>
<version>
1.
1
-SNAPSHOT
</version>
</parent>
<artifactId>
file-repository-core
</artifactId>
<name>
Genesys File Repository
</name>
...
...
@@ -170,7 +170,7 @@
<dependency>
<groupId>
org.genesys-pgr
</groupId>
<artifactId>
application-blocks-security
</artifactId>
<version>
${application.blocks.version}
</version>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.querydsl
</groupId>
...
...
file-repository-core/src/main/java/org/genesys/filerepository/BytesStorageException.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/FileRepositoryException.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/InvalidRepositoryFileDataException.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/InvalidRepositoryPathException.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/NoSuchRepositoryFileException.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/RepositoryPersistence.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
file-repository-core/src/main/java/org/genesys/filerepository/metadata/BaseMetadata.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/metadata/DocumentMetadata.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/metadata/ImageMetadata.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/model/ImageGallery.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryDocument.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryFile.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/model/RepositoryImage.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/persistence/ImageGalleryPersistence.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/persistence/RepositoryDocumentPersistence.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/persistence/RepositoryFilePersistence.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/persistence/RepositoryImagePersistence.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/BytesStorageService.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/ImageGalleryService.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/RepositoryService.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/ThumbnailGenerator.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/VirusFoundException.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/VirusScanner.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/AbstractImageGalleryAspects.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/ImageGalleryAspectsImpl.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/MetadataInStorageAspect.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/aspect/VirusScanAspect.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/ClamAVScanner.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/FilenameValidator.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/FilesystemStorageServiceImpl.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/ImageGalleryServiceImpl.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/PathValidator.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/RepositoryServiceImpl.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/S3StorageServiceImpl.java
View file @
7deb9686
/*
* Copyright 201
7
Global Crop Diversity Trust
* Copyright 201
8
Global Crop Diversity Trust
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
...
...
@@ -318,11 +318,12 @@ public class S3StorageServiceImpl implements BytesStorageService, InitializingBe
}
/**
* Sorted by query parameter name
*
* Sorted by query parameter name
.
*
* @param query the S3 query string
* @return a sorted, normalized list of query parameters
* @throws UnsupportedEncodingException when query parameter cannot be encoded as US-ASCII
* @throws UnsupportedEncodingException when query parameter cannot be encoded
* as US-ASCII
*/
public
static
String
buildQueryString
(
String
query
)
throws
UnsupportedEncodingException
{
LOG
.
trace
(
"Encoding query string: {}"
,
query
);
...
...
@@ -353,11 +354,24 @@ public class S3StorageServiceImpl implements BytesStorageService, InitializingBe
return
result
;
}
/**
* Hash sha 256.
*
* @param bytes the bytes
* @return the byte[]