]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-361: Adding two interfaces not picked up in the last check-in, causing a Bambo...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 10 Sep 2009 02:58:21 +0000 (02:58 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 10 Sep 2009 02:58:21 +0000 (02:58 +0000)
services/id/service/src/main/java/org/collectionspace/services/id/SequenceIDGeneratorPart.java [new file with mode: 0644]
services/id/service/src/main/java/org/collectionspace/services/id/StoredValueIDGeneratorPart.java [new file with mode: 0644]

diff --git a/services/id/service/src/main/java/org/collectionspace/services/id/SequenceIDGeneratorPart.java b/services/id/service/src/main/java/org/collectionspace/services/id/SequenceIDGeneratorPart.java
new file mode 100644 (file)
index 0000000..554188f
--- /dev/null
@@ -0,0 +1,41 @@
+/**
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright © 2009 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ *
+ * 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.
+ */
+
+/**
+ * SequenceIDGeneratorPart, interface for a component part of an
+ * ID Generator that can generate identifiers (IDs) that are part
+ * of a sequence.
+ *
+ * $LastChangedRevision: 625 $
+ * $LastChangedDate$
+ */
+package org.collectionspace.services.id;
+
+public interface SequenceIDGeneratorPart
+    extends StoredValueIDGeneratorPart {
+    
+       // Returns the next ID in the sequence, and sets
+       // the current value to that ID.
+       public String nextID() throws IllegalStateException;
+               
+}
diff --git a/services/id/service/src/main/java/org/collectionspace/services/id/StoredValueIDGeneratorPart.java b/services/id/service/src/main/java/org/collectionspace/services/id/StoredValueIDGeneratorPart.java
new file mode 100644 (file)
index 0000000..f8acf68
--- /dev/null
@@ -0,0 +1,43 @@
+/**
+ * This document is a part of the source code and related artifacts
+ * for CollectionSpace, an open source collections management system
+ * for museums and related institutions:
+ *
+ * http://www.collectionspace.org
+ * http://wiki.collectionspace.org
+ *
+ * Copyright © 2009 Regents of the University of California
+ *
+ * Licensed under the Educational Community License (ECL), Version 2.0.
+ * You may not use this file except in compliance with this License.
+ *
+ * You may obtain a copy of the ECL 2.0 License at
+ * https://source.collectionspace.org/collection-space/LICENSE.txt
+ *
+ * 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.
+ */
+
+ /*    
+ * StoredValueIDGeneratorPart, interface for a component part of an
+ * ID Generator that can store an initial value, and return that value.
+ *
+ * $LastChangedRevision: 625 $
+ * $LastChangedDate$
+ */
+package org.collectionspace.services.id;
+
+public interface StoredValueIDGeneratorPart extends IDGeneratorPart {
+
+    /**
+     * Returns the initial value of the ID
+     * associated with this part.
+     *
+     * @return  The initial value of the ID.
+     */
+       public String getInitialID();
+               
+}