public org.w3c.dom.Document toJoinedXML() throws Exception {
   ArrayList al = new ArrayList();
   al.add(this.getItem());
   al.add(
       org.nrg.xft.search.ItemSearch.GetItem(
           "xnat:subjectData.ID",
           this.getItem().getProperty("xnat:mrSessionData.subject_ID"),
           getItem().getUser(),
           false));
   al.trimToSize();
   return org.nrg.xft.schema.Wrappers.XMLWrapper.XMLWriter.ItemListToDOM(al);
 }
Ejemplo n.º 2
0
  public static ArrayList<org.nrg.xdat.om.CatCatalogTag> getCatCatalogTagsByField(
      String xmlPath, Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    ArrayList<org.nrg.xdat.om.CatCatalogTag> al = new ArrayList<org.nrg.xdat.om.CatCatalogTag>();
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(xmlPath, value, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
Ejemplo n.º 3
0
  public static ArrayList<org.nrg.xdat.om.CatCatalogTag> getAllCatCatalogTags(
      org.nrg.xft.security.UserI user, boolean preLoad) {
    ArrayList<org.nrg.xdat.om.CatCatalogTag> al = new ArrayList<org.nrg.xdat.om.CatCatalogTag>();

    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetAllItems(SCHEMA_ELEMENT_NAME, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
  public static PipePipelinedetails getPipePipelinedetailssByPath(
      Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems("pipe:pipelineDetails/path", value, user, preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (PipePipelinedetails) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
  public static XnatEsvsessiondata getXnatEsvsessiondatasById(
      Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems("xnat:esvSessionData/id", value, user, preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (XnatEsvsessiondata) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
Ejemplo n.º 6
0
  public static CatCatalogTag getCatCatalogTagsByCatCatalogTagId(
      Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(
              "cat:catalog_tag/cat_catalog_tag_id", value, user, preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (CatCatalogTag) org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
  public static ArrayList<org.nrg.xdat.om.XnatCtscandata> getXnatCtscandatasByField(
      org.nrg.xft.search.CriteriaCollection criteria,
      org.nrg.xft.security.UserI user,
      boolean preLoad) {
    ArrayList<org.nrg.xdat.om.XnatCtscandata> al = new ArrayList<org.nrg.xdat.om.XnatCtscandata>();
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(criteria, user, preLoad);
      al = org.nrg.xdat.base.BaseElement.WrapItems(items.getItems());
    } catch (Exception e) {
      logger.error("", e);
    }

    al.trimToSize();
    return al;
  }
  public static ExtClinicalassessmentdataMedication
      getExtClinicalassessmentdataMedicationsByExtClinicalassessmentdataMedicationId(
          Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(
              "ext:clinicalAssessmentData_Medication/ext_clinicalAssessmentData_Medication_id",
              value,
              user,
              preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (ExtClinicalassessmentdataMedication)
            org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }
  public static XnatFielddefinitiongroupFieldPossiblevalue
      getXnatFielddefinitiongroupFieldPossiblevaluesByXnatFielddefinitiongroupFieldPossiblevalueId(
          Object value, org.nrg.xft.security.UserI user, boolean preLoad) {
    try {
      org.nrg.xft.collections.ItemCollection items =
          org.nrg.xft.search.ItemSearch.GetItems(
              "xnat:fieldDefinitionGroup_field_possibleValue/xnat_fieldDefinitionGroup_field_possibleValue_id",
              value,
              user,
              preLoad);
      ItemI match = items.getFirst();
      if (match != null)
        return (XnatFielddefinitiongroupFieldPossiblevalue)
            org.nrg.xdat.base.BaseElement.GetGeneratedItem(match);
      else return null;
    } catch (Exception e) {
      logger.error("", e);
    }

    return null;
  }