From: Aron Roberts Date: Fri, 8 Jun 2012 03:13:22 +0000 (-0700) Subject: CSPACE-5271: Added comments to ResourceBase. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ed36aa8700adf02680246bd642fc4c1df665898f;p=tmp%2Fjakarta-migration.git CSPACE-5271: Added comments to ResourceBase. --- 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();