Edit C:\dspace\webapps\rest\WEB-INF\classes\org\dspace\rest\CollectionsResource.class
???? 3? ?: ;< ;= ?> ;? ?@ AB AC ?D ;E ?F GH GI ?J ?KL :M NO P QR ?ST ?U VW ?XY ?Z [ \] ?^_`a b ?cde &fgh Qijklm /: nop Qq nrstuvwxwyz{|u}~?u????????? E??????? V???? ??? C? E?? T? ?? T? T??????????? ?? Q?? &??????? E??0 ?s?? ?? ?? ?? ?? ?s??? ?? ??? V?s???????s????? ?? ??? \?? ??? Q?? ??s??????s? 9? ??????? ? \?? ??????? Q?? collectionService .Lorg/dspace/content/service/CollectionService; itemService (Lorg/dspace/content/service/ItemService; authorizeService /Lorg/dspace/authorize/service/AuthorizeService; workspaceItemService 1Lorg/dspace/content/service/WorkspaceItemService; workflowService %Lorg/dspace/workflow/WorkflowService; log Lorg/apache/log4j/Logger; <init> ()V Code LineNumberTable LocalVariableTable this %Lorg/dspace/rest/CollectionsResource; getCollection ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Lorg/dspace/rest/common/Collection; dspaceCollection Lorg/dspace/content/Collection; e Ljava/sql/SQLException; -Lorg/dspace/rest/exceptions/ContextException; collectionId Ljava/lang/String; expand limit Ljava/lang/Integer; offset user_ip user_agent xforwardedfor headers Ljavax/ws/rs/core/HttpHeaders; request 'Ljavax/servlet/http/HttpServletRequest; context Lorg/dspace/core/Context; collection #Lorg/dspace/rest/common/Collection; StackMapTable??????Y_d? Exceptions RuntimeVisibleAnnotations Ljavax/ws/rs/GET; Ljavax/ws/rs/Path; value /{collection_id} Ljavax/ws/rs/Produces; application/json application/xml "RuntimeVisibleParameterAnnotations Ljavax/ws/rs/PathParam; collection_id Ljavax/ws/rs/QueryParam; Ljavax/ws/rs/DefaultValue; 100 0 userIP userAgent Ljavax/ws/rs/core/Context; getCollections ?(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)[Lorg/dspace/rest/common/Collection; dspaceCollections Ljava/util/List; collections LocalVariableTypeTable 1Ljava/util/List<Lorg/dspace/content/Collection;>; 5Ljava/util/List<Lorg/dspace/rest/common/Collection;>;?? getCollectionItems ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)[Lorg/dspace/rest/common/Item; dspaceItem Lorg/dspace/content/Item; i I dspaceItems Ljava/util/Iterator; items /Ljava/util/Iterator<Lorg/dspace/content/Item;>; /Ljava/util/List<Lorg/dspace/rest/common/Item;>;z /{collection_id}/items addCollectionItem ?(Ljava/lang/String;Lorg/dspace/rest/common/Item;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Lorg/dspace/rest/common/Item; data [Ljava/lang/String; entry &Lorg/dspace/rest/common/MetadataEntry; Ljava/lang/Exception; workspaceItem "Lorg/dspace/content/WorkspaceItem; )Lorg/dspace/authorize/AuthorizeException; item Lorg/dspace/rest/common/Item; returnItem????? Ljavax/ws/rs/POST; Ljavax/ws/rs/Consumes; updateCollection ?(Ljava/lang/String;Lorg/dspace/rest/common/Collection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Ljavax/ws/rs/core/Response; Ljavax/ws/rs/PUT; deleteCollection ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Ljavax/ws/rs/core/Response; Ljava/io/IOException;? Ljavax/ws/rs/DELETE; deleteCollectionItem ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Ljavax/ws/rs/core/Response; itemId /{collection_id}/items/{item_id} item_id findCollectionByName U(Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;)Lorg/dspace/rest/common/Collection; name /find-collection findCollection M(Lorg/dspace/core/Context;Ljava/lang/String;I)Lorg/dspace/content/Collection; id action <clinit> SourceFile CollectionsResource.java /collections ? ??? ? ? ? ?? ? ? ? ?? ? ? ? ? java/lang/StringBuilder Reading collection(id= ). org/dspace/core/Constants23 !org/dspace/rest/common/Collection ! ?"?# ?$% java/sql/SQLException Could not read collection(id= ), SQLException. Message: &'( +org/dspace/rest/exceptions/ContextException ), ContextException. Message: ) Collection(id= ) has been successfully read.* Reading all collections.(offset= ,limit= ) java/util/ArrayList?+, Paging was badly set.-./012?34?5678 org/dspace/content/Collection9:;<= GSomething went wrong while reading collections from database. Message: GSomething went wrong while reading collections, ContextError. Message: 'All collections were successfully read.>? $[Lorg/dspace/rest/common/Collection; ) items.@AB org/dspace/content/ItemCD org/dspace/rest/common/Item ?E 8Could not read collection items, SQLException. Message: <Could not read collection items, ContextException. Message: All items in collection(id= ) were successfully read. [Lorg/dspace/rest/common/Item; Create item in collection(id=F Creating item in collection(id=GHI?JK Adding metadata to item(id=LMNO $org/dspace/rest/common/MetadataEntryPQRSTUVWX Starting workflow for item(id=YZ[ java/lang/Exception Error while starting workflow Item id: \]^_` *Error while starting workflow for item(id= ?a &Could not add item into collection(id= 'org/dspace/authorize/AuthorizeException ), AuthorizeException. Message: +Item successfully created in collection(id= ). Item handle=b Updating collection(id=cde licensef copyright_textg introductory_texth short_descriptioni side_bar_textjWk Could not update collection(id= ) successfully updated.lmopqr Delete collection(id=stk Could not delete collection(id= java/io/IOException ), IOException. Message: ) was successfully deleted. Delete item(id= ) in collection(id=uv ) was not found! #javax/ws/rs/WebApplicationExceptionwyz ?{ Item(id=|} User(~ *) does not have permission to delete item!_ 2User(anonymous) has not permission to delete item!?z?? Could not delete item(id= )Searching for first collection with name= .1???= 9Something went wrong while searching for collection(name= ) from database. Message: ), ContextError. Message: Collection was not found. Collection was found with id(?? ? ) has not permission to ?? collection! &User(anonymous) has not permission to 0Something get wrong while finding collection(id= ). SQLException, Message: #org/dspace/rest/CollectionsResource?? org/dspace/rest/Resource java/lang/String java/lang/Integer javax/ws/rs/core/HttpHeaders %javax/servlet/http/HttpServletRequest org/dspace/core/Context java/lang/Throwable java/util/List java/util/Iterator org/dspace/content/WorkspaceItem 0org/dspace/content/factory/ContentServiceFactory getInstance 4()Lorg/dspace/content/factory/ContentServiceFactory; getCollectionService 0()Lorg/dspace/content/service/CollectionService; getItemService *()Lorg/dspace/content/service/ItemService; 4org/dspace/authorize/factory/AuthorizeServiceFactory 8()Lorg/dspace/authorize/factory/AuthorizeServiceFactory; getAuthorizeService 1()Lorg/dspace/authorize/service/AuthorizeService; getWorkspaceItemService 3()Lorg/dspace/content/service/WorkspaceItemService; 2org/dspace/workflow/factory/WorkflowServiceFactory 6()Lorg/dspace/workflow/factory/WorkflowServiceFactory; getWorkflowService '()Lorg/dspace/workflow/WorkflowService; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; org/apache/log4j/Logger info (Ljava/lang/Object;)V createContext ()Lorg/dspace/core/Context;? "org/dspace/usage/UsageEvent$Action Action InnerClasses VIEW $Lorg/dspace/usage/UsageEvent$Action; writeStats ?(Lorg/dspace/content/DSpaceObject;Lorg/dspace/usage/UsageEvent$Action;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;Lorg/dspace/core/Context;)V servletContext Ljavax/servlet/ServletContext; ?(Lorg/dspace/content/Collection;Ljavax/servlet/ServletContext;Ljava/lang/String;Lorg/dspace/core/Context;Ljava/lang/Integer;Ljava/lang/Integer;)V complete processFinally (Lorg/dspace/core/Context;)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder; processException .(Ljava/lang/String;Lorg/dspace/core/Context;)V getMessage trace intValue ()I warn valueOf (I)Ljava/lang/Integer; ,org/dspace/content/service/CollectionService findAll Q(Lorg/dspace/core/Context;Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/util/List; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; -org/dspace/authorize/service/AuthorizeService authorizeActionBoolean >(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;I)Z add (Ljava/lang/Object;)Z toArray (([Ljava/lang/Object;)[Ljava/lang/Object; &org/dspace/content/service/ItemService findByCollection N(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;)Ljava/util/Iterator; isItemListedForUser 5(Lorg/dspace/core/Context;Lorg/dspace/content/Item;)Z e(Lorg/dspace/content/Item;Ljavax/servlet/ServletContext;Ljava/lang/String;Lorg/dspace/core/Context;)V UPDATE /org/dspace/content/service/WorkspaceItemService create ](Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Z)Lorg/dspace/content/WorkspaceItem; getItem ()Lorg/dspace/content/Item; getID ()Ljava/util/UUID; getMetadata ()Ljava/util/List; getKey mySplit '(Ljava/lang/String;)[Ljava/lang/String; getLanguage getValue addMetadata ?(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V update E(Lorg/dspace/core/Context;Lorg/dspace/content/InProgressSubmission;)V #org/dspace/workflow/WorkflowService start _(Lorg/dspace/core/Context;Lorg/dspace/content/WorkspaceItem;)Lorg/dspace/workflow/WorkflowItem; org/dspace/core/LogManager getHeader Q(Lorg/dspace/core/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; error *(Ljava/lang/Object;Ljava/lang/Throwable;)V *(Ljava/lang/String;Ljava/lang/Exception;)V getHandle getName setMetadata _(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Ljava/lang/String;Ljava/lang/String;)V getLicense getCopyrightText getIntroductoryText getShortDescription getSidebarText =(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;)V javax/ws/rs/core/Response ok ResponseBuilder -()Ljavax/ws/rs/core/Response$ResponseBuilder; )javax/ws/rs/core/Response$ResponseBuilder build ()Ljavax/ws/rs/core/Response; REMOVE delete findByIdOrLegacyId N(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/content/DSpaceObject; javax/ws/rs/core/Response$Status Status NOT_FOUND "Ljavax/ws/rs/core/Response$Status; %(Ljavax/ws/rs/core/Response$Status;)V getCurrentUser ()Lorg/dspace/eperson/EPerson; org/dspace/eperson/EPerson getEmail UNAUTHORIZED removeItem T(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Lorg/dspace/content/Item;)V +(Lorg/dspace/core/Context;)Ljava/util/List; equals getUUID abort getActionString (I)Ljava/lang/String; getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; org/dspace/usage/UsageEvent ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? u 7*? *? ? ? *? ? ? *? ? ? *? ? ? *? ? ? ? ? : <