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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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-infoset

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

if (!XDSException.XDS_ERR_UNKNOWN_PATID.equals(err.getErrorCode()))
  errors.add(err);
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-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;
}
 
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;
}
org.dcm4chee.xds2.infoset.rimRegistryError

Javadoc

Java class for anonymous complex type.

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

 
<complexType> 
<simpleContent> 
<extension base="<http://www.w3.org/2001/XMLSchema>string"> 
<attribute name="codeContext" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 
<attribute name="errorCode" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 
<attribute name="severity" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}referenceURI" default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" /> 
<attribute name="location" type="{http://www.w3.org/2001/XMLSchema}string" /> 
</extension> 
</simpleContent> 
</complexType> 

Most used methods

  • getErrorCode
    Gets the value of the errorCode property.
  • <init>
  • getCodeContext
    Gets the value of the codeContext property.
  • getLocation
    Gets the value of the location property.
  • setLocation
    Sets the value of the location property.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Collectors (java.util.stream)
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