Edit C:\Users\Admin\.m2\repository\org\dspace\dspace-api\6.2\org\dspace\administer\StructBuilder.class
???? 3 ? ? ? ? ? ? ? ? ? ?! ?"#$%&'()*+ ?,-./0 12 ?3 ?4 |5 `678 /9 .:; 2 2< .= .>? @A 9B 9C 9D EF GHIJ BK BLMNOP BD ?QNR STU 9VWX ? ?YZ [\ []^ W9 _` ^a ^b ^c ^de lfg `9 ?hijkil"mnopqprs jtu jv ?wixy z{ `|i} `~ ? ???????x ?{???? |?? ?? ?? ?? ?? ???? xmlOutput Lorg/jdom/Document; collectionMap Ljava/util/Map; Signature 5Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>; communityMap communityService -Lorg/dspace/content/service/CommunityService; collectionService .Lorg/dspace/content/service/CollectionService; ePersonService +Lorg/dspace/eperson/service/EPersonService; <init> ()V Code LineNumberTable LocalVariableTable this %Lorg/dspace/administer/StructBuilder; main ([Ljava/lang/String;)V i I out Ljava/io/BufferedWriter; e Ljava/io/IOException; argv [Ljava/lang/String; parser *Lorg/apache/commons/cli/CommandLineParser; options Lorg/apache/commons/cli/Options; line $Lorg/apache/commons/cli/CommandLine; file Ljava/lang/String; eperson output context Lorg/dspace/core/Context; document Lorg/w3c/dom/Document; first Lorg/w3c/dom/NodeList; elements [Lorg/jdom/Element; root Lorg/jdom/Element; StackMapTable ???u?? ?g? Exceptions? usage validate (Lorg/w3c/dom/Document;)V err Ljava/lang/StringBuffer; trip Z errsJ? validateCommunities +(Lorg/w3c/dom/NodeList;I)Ljava/lang/String; pos n Lorg/w3c/dom/Node; name subCommunities comErrs collections colErrs communities levele validateCollections loadXML *(Ljava/lang/String;)Lorg/w3c/dom/Document; filename builder #Ljavax/xml/parsers/DocumentBuilder;?? getStringValue &(Lorg/w3c/dom/Node;)Ljava/lang/String; node value handleCommunities b(Lorg/dspace/core/Context;Lorg/w3c/dom/NodeList;Lorg/dspace/content/Community;)[Lorg/jdom/Element; community Lorg/dspace/content/Community; nl entry Entry InnerClasses Ljava/util/Map$Entry; descriptionElement introElement copyrightElement sidebarElement element tn nameElement subCommunityElements collectionElements j parent LocalVariableTypeTable ;Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;??? handleCollections collection Lorg/dspace/content/Collection;?? <clinit> SourceFile StructBuilder.java ? ? "org/apache/commons/cli/PosixParser org/apache/commons/cli/Options f?? o???????? ? ???? org/dspace/core/Context ? ?????? ? ? ? ? ? ???? description short_description intro introductory_text copyright copyright_text sidebar side_bar_text ? ? license provenance provenance_description /import_structure/community??? ? ? ? ????? java/io/BufferedWriter java/io/FileWriter ?? ?? org/jdom/output/XMLOutputter????? ? java/io/IOException ?? java/lang/StringBuilder Unable to write to output file ???????? ? RUsage: java StructBuilder -f <source XML file> -o <output file> -e <eperson email> wCommunities will be created from the top level, and a map of communities to handles will be returned in the output file java/lang/StringBuffer =The following errors were encountered parsing the source XML ?? 2No changes have been made to the DSpace instance ??? :-There are no top level communities in the source document ? ?????? -The level ?? community in position ) does not contain exactly one name field ? ? collection in position ????? java/io/File??????????? org/w3c/dom/Node?? org/jdom/Element ? ???? ???????????? java/util/Map$Entry?? java/lang/String?? ? ??? identifier????????? ? ? ????????? org/jdom/Document imported_structure ?? java/util/HashMap???? ? #org/dspace/administer/StructBuilder java/lang/Object (org/apache/commons/cli/CommandLineParser "org/apache/commons/cli/CommandLine org/w3c/dom/Document org/w3c/dom/NodeList java/lang/Exception (javax/xml/transform/TransformerException .javax/xml/parsers/ParserConfigurationException org/xml/sax/SAXException org/dspace/content/Community java/util/Iterator java/sql/SQLException org/dspace/content/Collection 'org/dspace/authorize/AuthorizeException addOption Y(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Lorg/apache/commons/cli/Options; parse Y(Lorg/apache/commons/cli/Options;[Ljava/lang/String;)Lorg/apache/commons/cli/CommandLine; hasOption (C)Z getOptionValue (C)Ljava/lang/String; java/lang/System exit (I)V )org/dspace/eperson/service/EPersonService findByEmail I(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/eperson/EPerson; setCurrentUser (Lorg/dspace/eperson/EPerson;)V java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; org/apache/xpath/XPathAPI selectNodeList <(Lorg/w3c/dom/Node;Ljava/lang/String;)Lorg/w3c/dom/NodeList; getRootElement ()Lorg/jdom/Element; addContent &(Lorg/jdom/Content;)Lorg/jdom/Element; (Ljava/lang/String;)V (Ljava/io/Writer;)V outputString '(Lorg/jdom/Document;)Ljava/lang/String; write close Ljava/io/PrintStream; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; java/io/PrintStream println complete ,(Ljava/lang/String;)Ljava/lang/StringBuffer; getLength ()I item (I)Lorg/w3c/dom/Node; java/lang/Integer (I)Ljava/lang/String; (I)Ljava/lang/StringBuilder; (javax/xml/parsers/DocumentBuilderFactory newInstance ,()Ljavax/xml/parsers/DocumentBuilderFactory; newDocumentBuilder %()Ljavax/xml/parsers/DocumentBuilder; !javax/xml/parsers/DocumentBuilder &(Ljava/io/File;)Lorg/w3c/dom/Document; getNodeValue hasChildNodes ()Z getFirstChild ()Lorg/w3c/dom/Node; getNodeType ()S trim +org/dspace/content/service/CommunityService create W(Lorg/dspace/content/Community;Lorg/dspace/core/Context;)Lorg/dspace/content/Community; setMetadata ^(Lorg/dspace/core/Context;Lorg/dspace/content/Community;Ljava/lang/String;Ljava/lang/String;)V entrySet ()Ljava/util/Set; java/util/Set iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; getKey getValue update =(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;)V getHandle setAttribute 8(Ljava/lang/String;Ljava/lang/String;)Lorg/jdom/Element; getMetadata D(Lorg/dspace/content/Community;Ljava/lang/String;)Ljava/lang/String; setText &(Ljava/lang/String;)Lorg/jdom/Element; ,org/dspace/content/service/CollectionService X(Lorg/dspace/core/Context;Lorg/dspace/content/Community;)Lorg/dspace/content/Collection; _(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Ljava/lang/String;Ljava/lang/String;)V G(Lorg/dspace/content/DSpaceObject;Ljava/lang/String;)Ljava/lang/String; (Lorg/jdom/Element;)V 0org/dspace/content/factory/ContentServiceFactory getInstance 4()Lorg/dspace/content/factory/ContentServiceFactory; getCommunityService /()Lorg/dspace/content/service/CommunityService; getCollectionService 0()Lorg/dspace/content/service/CollectionService; 0org/dspace/eperson/factory/EPersonServiceFactory 4()Lorg/dspace/eperson/factory/EPersonServiceFactory; getEPersonService -()Lorg/dspace/eperson/service/EPersonService; ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? / *? ? ? D ? ? ? ? ? ? ? ? Y? L? Y? M,? W, ? W,? W+,*? N:::-f? ? -f? :-e? ? -e? :-o? ? -o? :? ? ? ? ? ? Y? :? ? ? ? :? ? ? W? ? W? ? W? !? W? "#? W? $? W? $? W? $? W? $ !? W? $"#? W? $%%? W? $&'? W(? ): ? *: ? +? ,:6 ?? 2? -W???? .Y? /Y? 0? 1:? 2Y? 3? +? 4? 5? 6? #:? 8? 9Y? :;? <? <? =? >? ? ?? ??? 7 ? ? 1 e g i j ( k 4 m = o @ p C q F s O u W x ` z h } q y ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?* ?7 ?D ?Q ?Z ?d ?l ?w ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? ? ? o ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? =? ? ? @? ? ? C? ? ? F? ? ? ?B ? ? ?* ? ? Z ? ? ? d v ? ? l n ? ? ? V ? W ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? k ? ? ? ? ? ? 1 ? 8@? >? 8A? >? ? ? ? ? ? ? ? e? BY? CL=+D? EW+F? EW*(? )N-? G ? +H? EW? 8+? I? >? -? J:? +? EW=? ? 8+? I? >? ? ? F ? ? ? ? ? ? ( ? / ? 9 ? = ? D ? I ? P ? R ? V ? ` ? d ? ? 4 e ? ? ] ? ? [ ? ? F ? ? D ! ? ? ? ? = ? ?? ? ? ? ? ? ? » BY? CM>:6*? G ? ?*? K :? ):? G ? 7`? L:,? 9Y? :M? <? NO? <? <? =? EW,P? EW>Q? ):`? J: ? , ? EW>R? ): `? S:? ,? EW>???^? ,? I:? ? f % . 9 B d k m v ? ? ? ? ? ? ? ? ? ?# ?% ?( ? ? B + ? ? % ? ? ? . ? ? ? v 9 ? ? ? / ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? >