Tabnine Logo
RegistryErrorList
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.dcm4chee.xds2.infoset.rim.RegistryErrorList (Showing top 12 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-infoset

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

Javadoc

Java class for anonymous complex type.

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

 
<complexType> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0}RegistryError" maxOccurs="unbounded"/> 
</sequence> 
<attribute name="highestSeverity" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}referenceURI" /> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getRegistryError
    Gets the value of the registryError property. This accessor method returns a reference to the live l
  • <init>

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Notification (javax.management)
  • Reference (javax.naming)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JCheckBox (javax.swing)
  • Github Copilot alternatives
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