Changeset 32860 for gs3-extensions/iiif-servlet/trunk/src/gsdl-src/java/org/greenstone/gsdl3/collection/IIIFCollection.java
- Timestamp:
- 2019-03-05T15:30:27+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/iiif-servlet/trunk/src/gsdl-src/java/org/greenstone/gsdl3/collection/IIIFCollection.java
r32843 r32860 55 55 public class IIIFCollection extends Collection 56 56 { 57 58 57 static Logger logger = Logger.getLogger(org.greenstone.gsdl3.collection.IIIFCollection.class.getName()); 59 58 60 59 /** does this collection provide the IIIF service */ 61 60 protected boolean has_iiif = false; 62 63 /** earliest datestamp of an OAI collection. Also used to work out the earliest datetimestamp of the entire OAI repository */64 /*65 protected long earliestOAIDatestamp = 0;66 */67 61 68 62 /** a reference to the IIIFPMH service rack */ … … 116 110 } 117 111 118 // NOTE:119 // Calling cleanUp() on IIIFPMH object iiif_service_rack will120 // close any open dbs handles on module deactivation by121 // MESSAGEROUTER (no deactivate yet called by122 // IIIFMessageRouter)123 124 // But the IIIFPMH object's cleanUp() is already called by125 // superclass ServiceCluster, which goes around calling126 // cleanUp() on all services/ServiceRacks.127 128 112 /** 129 113 * whether this collection has IIIFPMH services … … 134 118 } 135 119 136 /**137 * The earliesttimestamp entry in the oai-inf.db representing when the collection was created.138 * Used by the OAIReceptionist139 */140 /*141 public long getEarliestOAIDatestamp()142 {143 return earliestOAIDatestamp;144 }145 */146 120 147 121 /** add any extra info for collection from IIIFConfig.xml */ … … 154 128 protected boolean configureServiceRackList(Element service_rack_list, Element extra_info) 155 129 { 156 130 //logger.info("*** Away to call getNamedElement() for service_rack_list = " + XMLConverter.getPrettyString(service_rack_list)); 131 157 132 // find the IIIFPMH service 158 133 Element iiif_service_xml = GSXML.getNamedElement(service_rack_list, GSXML.SERVICE_CLASS_ELEM, GSXML.NAME_ATT, "IIIFPMH"); … … 181 156 182 157 if (this.iiif_service_rack.configure(iiif_service_xml, extra_info)) { 183 184 /* 185 // once we've configured the IIIFPMH service, we can use the OAIPMH service to 186 // retrieve the earliest timestamp of this OAI collection from the oai-inf db 187 long earliestTimestamp = this.oai_service_rack.getEarliestTimestamp(); 188 if(earliestTimestamp == -1) { 189 this.earliestOAIDatestamp = -1; 190 logger.warn("No OAI timestamp for collection " + this.cluster_name); 191 } else { 192 this.earliestOAIDatestamp = earliestTimestamp; // milliseconds 193 } 194 */ 195 158 196 159 // find out the supported service types for this service module 197 160 Node types = this.iiif_service_rack.process(message); … … 224 187 } 225 188 226 227 189 return false; 228 190 } 229 230 191 }
Note:
See TracChangeset
for help on using the changeset viewer.