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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
File Repository
Commits
5ff5c3b8
Commit
5ff5c3b8
authored
Sep 19, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update javadoc
- JAutodoc headers and members
parent
e1fc24c2
Changes
68
Hide whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
416 additions
and
180 deletions
+416
-180
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/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
No files found.
file-repository-core/src/main/java/org/genesys/filerepository/BytesStorageException.java
View file @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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 @
5ff5c3b8
/*
* 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[]
* @throws NoSuchAlgorithmException the no such algorithm exception
*/
public
static
byte
[]
hashSha256
(
final
byte
[]
bytes
)
throws
NoSuchAlgorithmException
{
final
MessageDigest
digest
=
MessageDigest
.
getInstance
(
"SHA-256"
);
return
digest
.
digest
(
bytes
);
}
/**
* Prints the hex.
*
* @param bytes the bytes
* @return the string
*/
public
static
String
printHex
(
final
byte
[]
bytes
)
{
return
DatatypeConverter
.
printHexBinary
(
bytes
).
toLowerCase
();
}
...
...
file-repository-core/src/main/java/org/genesys/filerepository/service/impl/ThumbnailGenerator1.java
View file @
5ff5c3b8
/*
* 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/s3/CommonPrefix.java
View file @
5ff5c3b8
/*
* 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/s3/Content.java
View file @
5ff5c3b8
/*