Codota Logo
RegistryObjectListType
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
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-infoset

/**
 * Create an instance of {@link RegistryObjectListType }
 * 
 */
public RegistryObjectListType createRegistryObjectListType() {
  return new RegistryObjectListType();
}
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-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-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

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.rimRegistryObjectListType

Javadoc

Java class for RegistryObjectListType complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="RegistryObjectListType"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}Identifiable" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getIdentifiable
    Gets the value of the identifiable property. This accessor method returns a reference to the live li
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • String (java.lang)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Collectors (java.util.stream)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now