diff --git a/README.1st b/README.1st index 8beb10976cf6e3b3e31f09bd4faaa0d05f72b001..ae5c63e296b927d9479ca5db6541a1236de4f2de 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 35026edfc898c43a09723f6aca02e82916465d9f..e19df64f32aa46f3ef0f83c76f5752cdf377dcb7 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;