Esempio n. 1
0
 /**
  * @param uuid
  * @param backendRegistry
  * @return
  * @throws XdsException
  */
 private Metadata findFoldersForDocumentByUuid(String uuid, BackendRegistry backendRegistry)
     throws XdsException {
   SqParams parms = new SqParams();
   parms.addStringParm("$XDSDocumentEntryEntryUUID", uuid);
   // Response response, Message log_message
   GetFoldersForDocument sffd =
       new GetFoldersForDocument(
           parms, false /* LeafClass */, this.response, this.log_message, backendRegistry);
   return sffd.runInternal();
 }
Esempio n. 2
0
 /**
  * @return
  * @throws XdsException
  */
 public Metadata runInternal() throws XdsException {
   SqParams params = this.getSqParams();
   String metadataLevel = params.getIntParm("$MetadataLevel");
   String uid = params.getStringParm("$XDSDocumentEntryUniqueId");
   String uuid = params.getStringParm("$XDSDocumentEntryEntryUUID");
   List<String> assocStatusValues = params.getListParm("$XDSAssociationStatus");
   if (assocStatusValues == null || assocStatusValues.isEmpty()) {
     // association status not specified.
     // Default association status to "Approved" if not specified.
     assocStatusValues = new ArrayList<String>();
     assocStatusValues.add(MetadataSupport.status_type_approved);
   }
   if (uuid == null || uuid.equals("")) {
     uuid = this.getDocumentUUIDFromUID(uid);
   }
   if (uuid == null) {
     throw new XdsException("Cannot identify referenced document (uniqueId = " + uid + ")");
   }
   OMElement folders = this.getFoldersForDocument(uuid, assocStatusValues);
   return MetadataParser.parseNonSubmission(folders);
 }