From ed36aa8700adf02680246bd642fc4c1df665898f Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Thu, 7 Jun 2012 20:13:22 -0700 Subject: [PATCH] CSPACE-5271: Added comments to ResourceBase. --- .../org/collectionspace/services/common/ResourceBase.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/common/src/main/java/org/collectionspace/services/common/ResourceBase.java b/services/common/src/main/java/org/collectionspace/services/common/ResourceBase.java index 4df2662b7..882f86ba9 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/ResourceBase.java +++ b/services/common/src/main/java/org/collectionspace/services/common/ResourceBase.java @@ -382,6 +382,9 @@ public abstract class ResourceBase // FIXME: For authority items, we will need to return an array / collection of uriTemplate objects, // since there are two different doctypes, with associated uriTemplates, to insert into the registry. + // (One of those uriTemplates will also need to be of type ITEM, while in AuthorityResourceWithContacts, + // a third uriTemplate will need to be of type CONCEPT.) + // The following is a placeholder to test proof of concept, adding a single item from each resource // to the registry. @@ -390,6 +393,8 @@ public abstract class ResourceBase return getServiceName(); } + // As generally mentioned by Patrick, we will want to cache generated values, and + // only generate one time if the cached value has not yet been populated. public StoredValuesUriTemplate getUriTemplate() { Map storedValuesMap = new HashMap(); -- 2.47.3