![JAR search and dependency download from the Maven repository](/logo.png)
org.bonitasoft.engine.identity.OrganizationParser.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bonita-organization-model Show documentation
Show all versions of bonita-organization-model Show documentation
This module defines the Bonita Organization Model.
The newest version!
???? 7 ? 1org/bonitasoft/engine/identity/OrganizationParser
java/lang/Object ()V
java/lang/Class /org/bonitasoft/engine/identity/xml/Organization
javax/xml/bind/JAXBContext newInstance 0([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext; jaxbContext Ljavax/xml/bind/JAXBContext; java/lang/Exception #javax/xml/bind/DataBindingException
(Ljava/lang/Throwable;)V ?http://documentation.bonitasoft.com/organization-xml-schema/1.1
! " # $ % java/lang/String contains (Ljava/lang/CharSequence;)Z ' ;http://documentation.bonitasoft.com/organization-xml-schema
! ) * + replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
- . / createUnmarshaller ()Ljavax/xml/bind/Unmarshaller; 1 java/io/StringReader
0 3 4 (Ljava/lang/String;)V 6 7 8 9 : javax/xml/bind/Unmarshaller unmarshal $(Ljava/io/Reader;)Ljava/lang/Object; < java/io/StringWriter
;
? @ A createMarshaller ()Ljavax/xml/bind/Marshaller; C D E F G javax/xml/bind/Marshaller marshal %(Ljava/lang/Object;Ljava/io/Writer;)V
; I J K toString ()Ljava/lang/String; M /organization.xsd
O P Q R S 4org/glassfish/hk2/osgiresourcelocator/ResourceFinder findEntry "(Ljava/lang/String;)Ljava/net/URL;
U V W X Y java/util/Optional
ofNullable ((Ljava/lang/Object;)Ljava/util/Optional; [ \ ] get ()Ljava/util/function/Supplier;
U _ ` a orElseGet 1(Ljava/util/function/Supplier;)Ljava/lang/Object; c java/net/URL
- f javax/xml/XMLConstants h http://www.w3.org/2001/XMLSchema
j k l m "javax/xml/validation/SchemaFactory 8(Ljava/lang/String;)Ljavax/xml/validation/SchemaFactory;
j o p q newSchema -(Ljava/net/URL;)Ljavax/xml/validation/Schema; 6 s t u setSchema (Ljavax/xml/validation/Schema;)V w org/xml/sax/SAXException y javax/xml/bind/JAXBException
x
? } jaxb.formatted.output
? ? ? ? java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; C ? ? ? setProperty '(Ljava/lang/String;Ljava/lang/Object;)V ?
jaxb.encoding ? ? ? ? ? !java/nio/charset/StandardCharsets UTF_8 Ljava/nio/charset/Charset;
? ? ? ? K java/nio/charset/Charset name
? ? S getResource ORGANIZATION_XML_SCHEMA Ljava/lang/String;
ConstantValue ORGANIZATION_XML_VERSION ? 1.1 ORGANIZATION_NAMESPACE ORGANIZATION_XSD Code LineNumberTable LocalVariableTable e Ljava/lang/Exception; this 3Lorg/bonitasoft/engine/identity/OrganizationParser;
StackMapTable convert E(Ljava/lang/String;)Lorg/bonitasoft/engine/identity/xml/Organization; organizationContent
Exceptions E(Lorg/bonitasoft/engine/identity/xml/Organization;)Ljava/lang/String; organization 1Lorg/bonitasoft/engine/identity/xml/Organization; writer Ljava/io/StringWriter; organizationXsd Ljava/net/URL; jaxbUnmarshaller Ljavax/xml/bind/Unmarshaller; Lorg/xml/sax/SAXException; jaxbMarshaller Ljavax/xml/bind/Marshaller; lambda$createUnmarshaller$0 ()Ljava/net/URL;
SourceFile OrganizationParser.java BootstrapMethods ?
? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ()Ljava/lang/Object; ?
? ? ? ? InnerClasses ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup ! ? ? ? &