Changeset 22298 for other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/GS3ServicesAPIA.java
- Timestamp:
- 2010-06-23T15:44:44+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/GS3ServicesAPIA.java
r21835 r22298 254 254 * @return a String representing Greenstone3 DocumentMetadataRetrieve XML 255 255 * containing all the metadata of all the documents indicated by docIDs 256 */ 257 public String retrieveDocumentMetadata(String collection, String[] docIDs) { 258 return this.retrieveAllDocumentMetadata(collection, language, docIDs); 256 * @param metadata is the list of metadata elements to be retrieved for each doc. 257 */ 258 public String retrieveDocumentMetadata(String collection, String[] docIDs, String[] metafields) { 259 return this.retrieveDocumentMetadata(collection, language, docIDs, metafields); 259 260 } 260 261 … … 266 267 * @return a String representing Greenstone3 DocumentMetadataRetrieve XML 267 268 * containing all the metadata of the document denoted by docID 268 */ 269 public String retrieveDocumentMetadata(String collection, String docID) { 270 return this.retrieveAllDocumentMetadata(collection, language, 271 new String[] { docID }); 269 * @param metadata is the list of metadata elements to be retrieved for each doc. 270 */ 271 public String retrieveDocumentMetadata(String collection, String docID, String[] metafields) { 272 return this.retrieveDocumentMetadata(collection, language, 273 new String[] { docID }, metafields); 272 274 } 273 275 … … 298 300 new String[] { docID }, titleMetaName); 299 301 } 302 303 /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML 304 * containing the requested portion of the document structure of the documents 305 * indicated by docIDs: 306 * @param collection is the name of the collection. 307 * @param docIDs is an array of document identifiers of documents whose 308 * hierarchical structures are requested. 309 * @param structure - strings specifying the required structure of each document. 310 * It can be a combination of: ancestors, parent, siblings, children, descendants, entire. 311 * @param info - strings specifying the required structural info of each document. 312 * It can be any combination of: siblingPosition, numSiblings, numChildren. 313 */ 314 public String retrieveDocumentStructure(String collection, String[] docIDs, String[] structure, String[] info) { 315 return retrieveDocumentStructure(collection, language, docIDs, structure, info); 316 } 317 318 319 /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML 320 * containing the requested portion of the document structure of the documents 321 * indicated by docIDs: 322 * @param collection is the name of the collection. 323 * @param docID is the document identifier of the document whose hierarchical 324 * structure is requested. 325 * @param structure - strings specifying the required structure of the document. 326 * It can be a combination of: ancestors, parent, siblings, children, descendants, entire. 327 * @param info - strings specifying the required structural info of the document. 328 * It can be any combination of: siblingPosition, numSiblings, numChildren. 329 */ 330 public String retrieveDocumentStructure(String collection, String docID, String[] structure, String[] info) { 331 return retrieveDocumentStructure(collection, language, 332 new String[] {docID}, structure, info); 333 } 300 334 301 335 /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface … … 310 344 return this.retrieveEntireDocumentStructure(collection, language, docIDs); 311 345 } 346 312 347 /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface 313 348 * contract. … … 322 357 new String[] { docID }); 323 358 } 359 324 360 325 361 /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface … … 360 396 * @param collection is the name of the collection 361 397 * @param service is the name of the browse service (=ClassifierBrowse usually) 362 */ 363 public String retrieveBrowseStructure( 364 String collection, String service, String[] classifierIDs) 398 * @param structure - the requested browse substructure. Can be any combination 399 * of ancestors, parent, siblings, children, descendants. 400 * @param info - the requested structural info. Can be numSiblings, siblingPosition, 401 * numChildren 402 */ 403 public String retrieveBrowseStructure(String collection, String service, 404 String[] classifierIDs, String[] structure, String[] info) 365 405 { 366 return this.browseDescendants(collection, service, 367 language, classifierIDs ); 406 return this.browse(collection, service, language, classifierIDs, structure, info); 368 407 } 369 408 … … 376 415 * out structured sections like CL2.1.3. NodeIDs are generally subsections 377 416 * of top-level classifierNodes (CL#, e.g. CL3). 417 * @param metafields are the classifier metadata fields that are to be returned. 378 418 * @param collection is the name of the collection 379 419 * @param service is the name of the Browse's MetadataRetrieve service 380 420 * (usually the browse service is ClassifierBrowse, in which case it always 381 421 * has a retrieve service called ClassifierBrowseMetadataRetrieve) */ 382 public String retrieveBrowseMetadata( 383 String collection, String service, String[] nodeIDs)422 public String retrieveBrowseMetadata(String collection, String service, 423 String[] nodeIDs, String[] metafields) 384 424 { 385 return this.retrieveAllBrowseMetadata(collection, service, 386 language, nodeIDs); 425 return this.retrieveBrowseMetadata(collection, service, language, nodeIDs, metafields); 387 426 } 388 427
Note:
See TracChangeset
for help on using the changeset viewer.