congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RegistryErrorList.getRegistryError
Code IndexAdd Tabnine to your IDE (free)

How to use
getRegistryError
method
in
org.dcm4chee.xds2.infoset.rim.RegistryErrorList

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.RegistryErrorList.getRegistryError (Showing top 11 results out of 315)

origin: org.dcm4che/dcm4chee-xds2-ws

private RetrieveDocumentSetResponseType addResponse(RetrieveDocumentSetResponseType rsp, RetrieveDocumentSetResponseType tmpRsp) {
  if (tmpRsp == null) {
    return rsp;
  }
  if (rsp == null) {
    return tmpRsp;
  } else {
    if (tmpRsp.getDocumentResponse() != null)
      rsp.getDocumentResponse().addAll(tmpRsp.getDocumentResponse());
    if (tmpRsp.getRegistryResponse() != null) {
      RegistryErrorList errs = tmpRsp.getRegistryResponse().getRegistryErrorList();
      if (errs != null && errs.getRegistryError().size() > 0) {
        RegistryErrorList rspErr = rsp.getRegistryResponse().getRegistryErrorList();
        if (rspErr == null) {
          rsp.getRegistryResponse().setRegistryErrorList(errs);
        } else {
          rspErr.getRegistryError().addAll(errs.getRegistryError());
        }
      }
    }
  }
  return rsp;
}
 
origin: org.dcm4che/dcm4chee-xds2-tool-init

public static void initializeRegistry(List<String> filenames, boolean defaultInit, DocumentRegistryPortType docRegistry)  {
  for (String fn : filenames) {
      SubmitObjectsRequest req;
      try {
        req = getSubmitObjectsRequest(fn, defaultInit);
      } catch (FileNotFoundException | JAXBException e) {
        throw new RuntimeException(e);
      }
      RegistryResponseType rsp = docRegistry.documentRegistryRegisterDocumentSetB(req);
      if (!"urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success".equals(rsp.getStatus())){
        String errorMsg = "";
        int i = 1;
        for (RegistryError err : rsp.getRegistryErrorList().getRegistryError()) {
          errorMsg += (i++)+") "+err.getErrorCode()+" : "+err.getCodeContext()+"\n";
        }
        throw new RuntimeException(errorMsg);
      } 
  }
}
origin: org.dcm4che/dcm4chee-xds2-ws

if (tmpRsp.getRegistryResponse() != null) {
  RegistryErrorList errs = tmpRsp.getRegistryResponse().getRegistryErrorList();
  if (errs != null && errs.getRegistryError().size() > 0) {
    RegistryErrorList rspErr = rsp.getRegistryResponse().getRegistryErrorList();
    if (rspErr == null) {
      rsp.getRegistryResponse().setRegistryErrorList(errs);
    } else {
      rspErr.getRegistryError().addAll(errs.getRegistryError());
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-repository-ws

int requestCount = req.getDocumentRequest().size();
RegistryErrorList regErrors = factory.createRegistryErrorList();
List<RegistryError> mainErrors = regErrors.getRegistryError();
for ( DocumentRequest docReq : req.getDocumentRequest() ) {
  reqRepoUid = docReq.getRepositoryUniqueId();
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-ws

  rsp.setRegistryResponse(regRsp);
if (regRsp.getRegistryErrorList() == null || regRsp.getRegistryErrorList().getRegistryError().isEmpty()) {
  regRsp.setStatus(XDSConstants.XDS_B_STATUS_SUCCESS);
} else if (rsp.getDocumentResponse() == null || rsp.getDocumentResponse().isEmpty()) {
origin: org.dcm4che/dcm4chee-xds2-ws

int requestCount = req.getDocumentRequest().size();
RegistryErrorList regErrors = factory.createRegistryErrorList();
List<RegistryError> mainErrors = regErrors.getRegistryError();
for ( DocumentRequest docReq : req.getDocumentRequest() ) {
  reqRepoUid = docReq.getRepositoryUniqueId();
if (regErrors.getRegistryError().size() > 0) {
  regRsp.setRegistryErrorList(regErrors);
origin: org.dcm4che/dcm4chee-xds2-ws

private RetrieveDocumentSetResponseType addHomeCommunityID(RetrieveDocumentSetResponseType rsp) {
  String home = XdsDevice.getXCARespondingGW().getHomeCommunityID();
  if (rsp.getDocumentResponse() != null) {
    for (DocumentResponse docRsp : rsp.getDocumentResponse()) {
      docRsp.setHomeCommunityId(home);
    }
  }
  RegistryResponseType regRsp = rsp.getRegistryResponse();
  if (regRsp != null && regRsp.getRegistryErrorList() != null) {
    for ( RegistryError err : regRsp.getRegistryErrorList().getRegistryError()) {
      err.setLocation(home);
    }
  }
  return rsp;
}
origin: org.dcm4che/dcm4chee-xds2-ws

            rsp.setRegistryErrorList(factory.createRegistryErrorList());
          List<RegistryError> errors = rsp.getRegistryErrorList().getRegistryError();
          for (RegistryError err : xcaRsp.getRegistryErrorList().getRegistryError()) {
            if (!XDSException.XDS_ERR_UNKNOWN_PATID.equals(err.getErrorCode()))
              errors.add(err);
  rsp = InfosetUtil.emptyAdhocQueryResponse();
if (rsp.getRegistryErrorList() == null || rsp.getRegistryErrorList().getRegistryError().isEmpty()) {
  rsp.setStatus(XDSConstants.XDS_B_STATUS_SUCCESS);
} else if (rsp.getRegistryObjectList() == null || rsp.getRegistryObjectList().getIdentifiable().isEmpty()) {
origin: org.dcm4che/dcm4chee-xds2-ws

private RetrieveDocumentSetResponseType addHomeCommunityID(RetrieveDocumentSetResponseType rsp) {
  String home = XdsDevice.getXCARespondingGW().getHomeCommunityID();
  if (rsp.getDocumentResponse() != null) {
    for (DocumentResponse docRsp : rsp.getDocumentResponse()) {
      if (docRsp.getHomeCommunityId() == null)
        docRsp.setHomeCommunityId(home);
    }
  }
  RegistryResponseType regRsp = rsp.getRegistryResponse();
  if (regRsp != null && regRsp.getRegistryErrorList() != null) {
    for ( RegistryError err : regRsp.getRegistryErrorList().getRegistryError()) {
      if (err.getLocation() == null)
        err.setLocation(home);
    }
  }
  return rsp;
}
 
org.dcm4chee.xds2.infoset.rimRegistryErrorListgetRegistryError

Javadoc

Gets the value of the registryError 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 registryError property.

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

 
getRegistryError().add(newItem); 

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

Popular methods of RegistryErrorList

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Collectors (java.util.stream)
  • JList (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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