Tabnine Logo
RegistryObjectListType.getIdentifiable
Code IndexAdd Tabnine to your IDE (free)

How to use
getIdentifiable
method
in
org.dcm4chee.xds2.infoset.rim.RegistryObjectListType

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.RegistryObjectListType.getIdentifiable (Showing top 19 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-infoset

public static List<ExtrinsicObjectType> getExtrinsicObjects(SubmitObjectsRequest so) {
  List<ExtrinsicObjectType> extrObjs = new ArrayList<ExtrinsicObjectType>();
  List<JAXBElement<? extends IdentifiableType>> list = so.getRegistryObjectList().getIdentifiable();
  IdentifiableType o;
  for ( int i = 0, len = list.size() ; i < len ; i++ ) {
    o = list.get(i).getValue();
    if ( o instanceof ExtrinsicObjectType) {
      extrObjs.add((ExtrinsicObjectType) o);
    }
  }
  return extrObjs;
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public void removeFromRequest() {
  List<JAXBElement<? extends IdentifiableType>> list = pnrRequest.getRegistryObjectList().getIdentifiable();
  for (int i = 0, len = list.size() ; i < len ; i++) {
    if (list.get(i).getValue().getId().equals(id)) {
      list.remove(i);
    }
  }
  pnrRequest.removeAssociation(assoc);
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public void removeFromRequest() {
  pnrRequest.getProvideAndRegisterDocumentSetRequest().getDocument().remove(doc);
  List<JAXBElement<? extends IdentifiableType>> list = pnrRequest.getRegistryObjectList().getIdentifiable();
  for (int i = 0, len = list.size() ; i < len ; i++) {
    if (list.get(i).getValue().getId().equals(id)) {
      list.remove(i);
    }
  }
  pnrRequest.removeAssociation(assoc);
}
origin: org.dcm4che/dcm4chee-xds2-ws

private String getSourceID(ProvideAndRegisterDocumentSetRequestType req) {
  List<JAXBElement<? extends IdentifiableType>> objs = req.getSubmitObjectsRequest().getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  for (int i = 0, len = objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      return InfosetUtil.getExternalIdentifierValue(XDSConstants.UUID_XDSSubmissionSet_sourceId, (RegistryPackageType)obj);
    }
  }
  return null;
}
origin: org.dcm4che/dcm4chee-xds2-repository-ws

private String getSourceID(ProvideAndRegisterDocumentSetRequestType req) throws XDSException {
  List<JAXBElement<? extends IdentifiableType>> objs = req.getSubmitObjectsRequest().getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  for (int i = 0, len = objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      return InfosetUtil.getExternalIdentifierValue(XDSConstants.UUID_XDSSubmissionSet_sourceId, (RegistryPackageType)obj);
    }
  }
  throw new XDSException(XDSException.XDS_ERR_REPOSITORY_METADATA_ERROR, "Missing XDSSubmissionSet.sourceId!", null);
}
origin: org.dcm4che/dcm4chee-xds2-infoset

public static RegistryPackageType getRegistryPackage(SubmitObjectsRequest sor, String classificationUUID) {
  List<JAXBElement<? extends IdentifiableType>> list = sor.getRegistryObjectList().getIdentifiable();
  String id = null;
  IdentifiableType identifiable;
  if ( classificationUUID != null ) {
    ClassificationType ct;
    for ( int i = 0, len = list.size() ; i < len ; i++) {
      identifiable = list.get(i).getValue();
      if ( identifiable instanceof ClassificationType) {
        ct = (ClassificationType) identifiable;
        if ( classificationUUID.equals( ct.getClassificationNode())) {
          id = ct.getClassifiedObject();
          break;
        }
      }
    }
  }
  RegistryPackageType rp;
  for ( int i = 0, len = list.size() ; i < len ; i++ ) {
    identifiable = list.get(i).getValue();
    if ( identifiable instanceof RegistryPackageType) {
      rp = (RegistryPackageType) identifiable;
      if ( id == null || id.equals( rp.getId())) {
        return rp;
      }
    }
  }
  return null;
}
origin: org.dcm4che/dcm4chee-xds2-repository-ws

private String[] getSubmissionUIDandPatID(SubmitObjectsRequest req) {
  String[] result = new String[2];
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  whole: for (int i=0,len=objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      List<ExternalIdentifierType> list = ((RegistryPackageType)obj).getExternalIdentifier();
      if (list != null) {
        for (ExternalIdentifierType eiType : list) {
          if (XDSConstants.UUID_XDSSubmissionSet_patientId.equals(eiType.getIdentificationScheme())) {
            result[1] = eiType.getValue();
          } else if (XDSConstants.UUID_XDSSubmissionSet_uniqueId.equals(eiType.getIdentificationScheme())) {
            result[0] = eiType.getValue();
          } else {
            continue;
          }
          if (result[0] != null && result[1] != null)
            break whole;
        }
      }
    }
  }
  return result;
}
origin: org.dcm4che/dcm4chee-xds2-ws

public RegistryObjectListType toRegistryObjectListType(List<? extends Identifiable> objects, 
    boolean isLeafClass, boolean allowMultiPatientResponse) throws XDSException {
  RegistryObjectListType objListType = factory.createRegistryObjectListType();
  List<JAXBElement<? extends IdentifiableType>> objList = objListType.getIdentifiable();
  if (objects != null) {
    if (isLeafClass && !allowMultiPatientResponse) {
origin: org.dcm4che/dcm4chee-xds2-ws

private String[] getSubmissionUIDandPatID(SubmitObjectsRequest req) {
  String[] result = new String[2];
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  whole: for (int i=0,len=objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      List<ExternalIdentifierType> list = ((RegistryPackageType)obj).getExternalIdentifier();
      if (list != null) {
        for (ExternalIdentifierType eiType : list) {
          if (XDSConstants.UUID_XDSSubmissionSet_patientId.equals(eiType.getIdentificationScheme())) {
            result[1] = eiType.getValue();
          } else if (XDSConstants.UUID_XDSSubmissionSet_uniqueId.equals(eiType.getIdentificationScheme())) {
            result[0] = eiType.getValue();
          } else {
            continue;
          }
          if (result[0] != null && result[1] != null)
            break whole;
        }
      }
    
    }
  }
  return result;
}
origin: org.dcm4che/dcm4chee-xds2-ws

private List<Identifiable> store(SubmitObjectsRequest req, XDSPersistenceWrapper wrapper) throws XDSException {
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  List<Identifiable> objects = new ArrayList<Identifiable>();
origin: org.dcm4che/dcm4chee-xds2-ws

private String[] getSubmissionUIDandPatID(SubmitObjectsRequest req) {
  String[] result = new String[]{UNKNOWN, UNKNOWN};
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  whole: for (int i=0,len=objs.size() ; i < len ; i++) {
    obj = objs.get(i).getValue();
    if (obj instanceof RegistryPackageType) {
      List<ExternalIdentifierType> list = ((RegistryPackageType)obj).getExternalIdentifier();
      if (list != null) {
        for (ExternalIdentifierType eiType : list) {
          if (XDSConstants.UUID_XDSSubmissionSet_patientId.equals(eiType.getIdentificationScheme())) {
            if (eiType.getValue() != null)
              result[1] = eiType.getValue();
          } else if (XDSConstants.UUID_XDSSubmissionSet_uniqueId.equals(eiType.getIdentificationScheme())) {
            if (eiType.getValue() != null)
              result[0] = eiType.getValue();
          } else {
            continue;
          }
          if (result[0] != UNKNOWN && result[1] != UNKNOWN)
            break whole;
        }
      }
    
    }
  }
  return result;
}
 
origin: org.dcm4che/dcm4chee-xds2-src-base

public PnRRequest(String sourceID, String submissionSetUID, String patID, String srcPatID) {
  if (sourceID == null || submissionSetUID == null || patID == null || srcPatID == null) {
    StringBuilder sb = new StringBuilder();
    sb.append("Parameter values must not be null! (");
    if (sourceID == null) sb.append("sourceID,");
    if (submissionSetUID == null) sb.append("submissionSetUID,");
    if (patID == null) sb.append("patID,");
    if (srcPatID == null) sb.append("srcPatID,");
    sb.setCharAt(sb.length()-1, ')');
    throw new IllegalArgumentException(sb.toString());
  }
  this.submissionSetUID = submissionSetUID;
  patientID = patID;
  srcPatIDSlot = Util.createSlot(XDSConstants.SLOT_NAME_SOURCE_PATIENT_ID, null, srcPatID);
  provideAndRegisterDocumentSetRequest = iheFactory.createProvideAndRegisterDocumentSetRequestType();
  SubmitObjectsRequest sor = Util.rimFactory.createSubmitObjectsRequest();
  registryObjectList = Util.rimFactory.createRegistryObjectListType();
  sor.setRegistryObjectList(registryObjectList);
  provideAndRegisterDocumentSetRequest.setSubmitObjectsRequest(sor);
  submissionSet = Util.rimFactory.createRegistryPackageType();
  submissionSet.setId(SUBMISSION_SET_ID);
  submissionSet.getExternalIdentifier().add(Util.createExternalIdentifier(nextID(), XDSConstants.UUID_XDSSubmissionSet_uniqueId, 
      SUBMISSION_SET_ID, submissionSetUID, "XDSSubmissionSet.uniqueId"));
  submissionSet.getExternalIdentifier().add(Util.createExternalIdentifier(nextID(), XDSConstants.UUID_XDSSubmissionSet_patientId, 
      SUBMISSION_SET_ID, patID, "XDSSubmissionSet.patientId"));
  submissionSet.getExternalIdentifier().add(Util.createExternalIdentifier(nextID(), XDSConstants.UUID_XDSSubmissionSet_sourceId, 
      SUBMISSION_SET_ID, sourceID, "XDSSubmissionSet.sourceId"));
  registryObjectList.getIdentifiable().add(Util.rimFactory.createRegistryPackage(submissionSet));
  submissionSet.getClassification().add(Util.createClassification(nextID(), XDSConstants.UUID_XDSSubmissionSet, SUBMISSION_SET_ID));
}
origin: org.dcm4che/dcm4chee-xds2-ws

private AdhocQueryResponse addHomeCommunityId(AdhocQueryResponse rsp) {
  String home = XdsDevice.getXCARespondingGW().getHomeCommunityID();
  IdentifiableType obj;
  if (rsp.getRegistryObjectList() != null) {
    List<JAXBElement<? extends IdentifiableType>> objList = rsp.getRegistryObjectList().getIdentifiable();
    for (int i = 0, len = objList.size() ; i < len ; i++ ) {
      obj = objList.get(i).getValue();
      if ((obj instanceof ExtrinsicObjectType) || (obj instanceof RegistryPackageType) ||
         obj instanceof ObjectRefType) {
        obj.setHome(home);
      }
    }
  }
  if (rsp.getRegistryErrorList() != null) {
    for ( RegistryError err : rsp.getRegistryErrorList().getRegistryError()) {
      err.setLocation(home);
    }
  }
  return rsp;
}
origin: org.dcm4che/dcm4chee-xds2-src-base

public XDSFolder(PnRRequest pnrReq, String uniqueID) {
  this.pnrRequest = pnrReq;
  id = pnrReq.nextFolderID();
  metadata = Util.rimFactory.createRegistryPackageType();
  metadata.setId(id);
  List<JAXBElement<? extends IdentifiableType>> list = pnrRequest.getRegistryObjectList().getIdentifiable();
  list.add(Util.rimFactory.createRegistryPackage(metadata));
  metadata.getExternalIdentifier().add(Util.createExternalIdentifier(pnrRequest.nextID(), XDSConstants.UUID_XDSFolder_patientId, 
      id, pnrRequest.getPatientID(), XDS_FOLDER_PATIENT_ID));
  metadata.getExternalIdentifier().add(Util.createExternalIdentifier(pnrRequest.nextID(), XDSConstants.UUID_XDSFolder_uniqueId, 
      id, uniqueID, XDS_FOLDER_UNIQUE_ID));
  metadata.getClassification().add(Util.createClassification(pnrReq.nextID(), XDSConstants.UUID_XDSFolder, id));
  this.uniqueID = uniqueID;
  assoc = pnrReq.addAssociation(PnRRequest.SUBMISSION_SET_ID, id, XDSConstants.HAS_MEMBER);
}
origin: org.dcm4che/dcm4chee-xds2-ws

private AdhocQueryResponse addHomeCommunityId(AdhocQueryResponse rsp) {
  String home = XdsDevice.getXCARespondingGW().getHomeCommunityID();
  IdentifiableType obj;
  if (rsp.getRegistryObjectList() != null) {
    List<JAXBElement<? extends IdentifiableType>> objList = rsp.getRegistryObjectList().getIdentifiable();
    for (int i = 0, len = objList.size() ; i < len ; i++ ) {
      obj = objList.get(i).getValue();
      if (obj.getHome() == null && ((obj instanceof ExtrinsicObjectType) || (obj instanceof RegistryPackageType) ||
         obj instanceof ObjectRefType)) {
        obj.setHome(home);
      }
    }
  }
  if (rsp.getRegistryErrorList() != null) {
    for ( RegistryError err : rsp.getRegistryErrorList().getRegistryError()) {
      if (err.getLocation() == null) 
        err.setLocation(home);
    }
  }
  return rsp;
}
origin: org.dcm4che/dcm4chee-xds2-src-base

  folders.get(i).buildMetadata(false);
List<JAXBElement<? extends IdentifiableType>> list = this.registryObjectList.getIdentifiable();
for (int i = 0, len = associations.size() ; i < len ; i++) {
  XDSAssociation assoc = associations.get(i);
origin: org.dcm4che/dcm4chee-xds2-src-base

public DocumentEntry(PnRRequest pnrReq, String uniqueID, byte[] content, String mime) {
  this.pnrRequest = pnrReq;
  doc = PnRRequest.iheFactory.createProvideAndRegisterDocumentSetRequestTypeDocument();
  ProvideAndRegisterDocumentSetRequestType pnr = pnrRequest.getProvideAndRegisterDocumentSetRequest();
  pnr.getDocument().add(doc);
  id = pnrReq.nextDocumentID();
  doc.setId(id);
  doc.setValue(content);
  metadata = Util.rimFactory.createExtrinsicObjectType();
  metadata.setObjectType(XDSConstants.UUID_XDSDocumentEntry);
  metadata.setId(id);
  metadata.setMimeType(mime);
  List<JAXBElement<? extends IdentifiableType>> list = pnrRequest.getRegistryObjectList().getIdentifiable();
  list.add(Util.rimFactory.createExtrinsicObject(metadata));
  metadata.getExternalIdentifier().add(Util.createExternalIdentifier(pnrRequest.nextID(), XDSConstants.UUID_XDSDocumentEntry_patientId, 
      id, pnrRequest.getPatientID(), XDS_DOCUMENT_ENTRY_PATIENT_ID));
  metadata.getSlot().add(pnrRequest.getSrcPatIDSlot());
  if (pnrRequest.getSrcPatInfo() != null) {
    metadata.getSlot().add(pnrRequest.getSrcPatInfo());
  }
  metadata.getExternalIdentifier().add(Util.createExternalIdentifier(pnrRequest.nextID(), XDSConstants.UUID_XDSDocumentEntry_uniqueId, 
      id, uniqueID, XDS_DOCUMENT_ENTRY_UNIQUE_ID));
  this.uniqueID = uniqueID;
  assoc = pnrReq.addAssociation(PnRRequest.SUBMISSION_SET_ID, id, XDSConstants.HAS_MEMBER);
}
origin: org.dcm4che/dcm4chee-xds2-ws

            rsp.setRegistryObjectList(xcaRsp.getRegistryObjectList());
          } else {
            rsp.getRegistryObjectList().getIdentifiable().addAll(xcaRsp.getRegistryObjectList().getIdentifiable());
} else if (rsp.getRegistryObjectList() == null || rsp.getRegistryObjectList().getIdentifiable().isEmpty()) {
  rsp.setStatus(XDSConstants.XDS_B_STATUS_FAILURE);
} else {
origin: org.dcm4che/dcm4chee-xds2-ws

private void preMetadataCheck(SubmitObjectsRequest req) throws XDSException {
  XdsRegistry cfg = XdsDevice.getXdsRegistry();
  List<JAXBElement<? extends IdentifiableType>> objs = req.getRegistryObjectList().getIdentifiable();
  IdentifiableType obj;
  List<ExternalIdentifierType> list;
org.dcm4chee.xds2.infoset.rimRegistryObjectListTypegetIdentifiable

Javadoc

Gets the value of the identifiable property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the identifiable property.

For example, to add a new item, do as follows:

 
getIdentifiable().add(newItem); 

Objects of the following type(s) are allowed in the list JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement JAXBElement

Popular methods of RegistryObjectListType

  • <init>

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now