From 0f7ea1caf4a77fa5883950727507c3b5f8b3ac31 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Tue, 17 Jun 2014 11:30:20 +0000
Subject: [PATCH] - fixed README.1st - added License information

---
 README.1st                                    | 19 +++++++++++------
 .../plugin/storage/nfs/SLUBStoragePlugin.java | 21 ++++++++++++++++++-
 2 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/README.1st b/README.1st
index 8beb109..ae5c63e 100644
--- a/README.1st
+++ b/README.1st
@@ -1,7 +1,12 @@
-The plugin is based on the NFSStoragePlugin and writes files in a format like
-"/yyyy/mm/dd/IEPID". Please note that the pluign can only be used as plugin to
-handle IEs on permanent storage, otherwise it would fail with a NULL-Pointer
-exception, because a SIP (as an example) does not have an IEPID yet.
+The plugin is based on the NFSStoragePlugin and writes directories in a format
+like "/yyyy/mm/dd/IEPID/". The reason for this plugin was to group all files of
+an AIP together in one directory. In contrast to the NFSStoragePlugin, the
+date-path is not based on individual file creation date, but on SIP creation
+date.
+
+Please note that the plugin can only be used to handle IEs on permanent
+storage, otherwise it would fail with a NULL-Pointer exception,  because a SIP
+(as an example) does not have an IEPID yet.
 
 To compile the plugin, ensure that the SDK and NFSStoragePlugin.jar is located
 in "/exlibris" as described in the Makefile.
@@ -14,8 +19,10 @@ all:   compile and build SLUBStoragePlugin.jar
 
 To install, do the following:
 
-* copy SLUBStoragePlugin.jar to /operational_shared/plugins/custom/ on target system
-* copy SLUBStoragePlugin.jar to /operational_shared/plugins/custom/deploy on target system
+* copy SLUBStoragePlugin.jar to /operational_shared/plugins/custom/ on target
+  system
+* copy SLUBStoragePlugin.jar to /operational_shared/plugins/custom/deploy on
+  target system
 * use dps user to restart Rosetta: "su dps; dps_restart"
 
 If you have any questions, feel free to ask andreas.romeyke@slub-dresden.de
diff --git a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java
index 35026ed..e19df64 100644
--- a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java
+++ b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/SLUBStoragePlugin.java
@@ -1,3 +1,23 @@
+/*
+
+2014 by Andreas Romeyke (SLUB Dresden)
+
+The code contributed by SLUB is licensed under apache 2.0 and based partially
+on NFS Storage Plugin, 
+
+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
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
 package org.slub.rosetta.dps.repository.plugin.storage.nfs;
 
 import java.io.File;
@@ -8,7 +28,6 @@ import java.util.Date;
 import java.text.SimpleDateFormat;
 import java.util.List;
 import java.util.Iterator;
-
 import com.exlibris.core.infra.common.exceptions.logging.ExLogger;
 import com.exlibris.core.infra.common.util.IOUtil;
 import com.exlibris.core.sdk.storage.containers.StoredEntityMetaData;
-- 
GitLab