README.md 780 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

# Simple File Repository

**file-repository** library provides basic file repository
functionality, using a basic set of DublinCore metadata.



## Using file-repository

Add the dependency to your pom.xml:

	<dependency>
	 	<groupId>org.genesys-pgr</groupId>
	 	<artifactId>file-repository</artifactId>
	 	<version>X.Y.Z</version>
	</dependency>

## Using the S3 as bytes storage

Adjust the configuration in application.properties file and use the S3StorageServiceImpl as 
the BytesStorageService of the RepositoryServiceImpl.

	#AWS parameter values
	s3.accessKey=AKIAJQCIQYDRXEXAMPLE
	s3.secretKey=dCWEXAMPLEXQMLl/d+U2EdEXAMPLEcIy7HONnPDR
	s3.bucket=bucketname
	s3.region=eu-west-1

Make sure these credentials have read, write and delete permissions on the selected bucket.