From f951873b82c1d9811028433b8141dc4dc159a1a5 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Thu, 10 Sep 2009 02:58:21 +0000 Subject: [PATCH] CSPACE-361: Adding two interfaces not picked up in the last check-in, causing a Bamboo CI build failure. --- .../services/id/SequenceIDGeneratorPart.java | 41 ++++++++++++++++++ .../id/StoredValueIDGeneratorPart.java | 43 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 services/id/service/src/main/java/org/collectionspace/services/id/SequenceIDGeneratorPart.java create mode 100644 services/id/service/src/main/java/org/collectionspace/services/id/StoredValueIDGeneratorPart.java 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 index 000000000..554188fbc --- /dev/null +++ b/services/id/service/src/main/java/org/collectionspace/services/id/SequenceIDGeneratorPart.java @@ -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 index 000000000..f8acf68d6 --- /dev/null +++ b/services/id/service/src/main/java/org/collectionspace/services/id/StoredValueIDGeneratorPart.java @@ -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(); + +} -- 2.47.3