Edit C:\apache-tomcat-7.0.69\webapps\rest\WEB-INF\classes\org\dspace\rest\CommunitiesResource.class
???? 3t ?B CD CE ?F CG ?H IJ IK ?L ?MN BO PQ R ST ?UV ?W XY ?Z[ ?\ ] ^_ ?`abc d ?efg !hij Sklmnop *B qrs St quvwvxyz{| *}~? *???n?????? 4??? C?????? 4?????z? ^?? ^? ???? S?? ?? X?n? X?? ?n?? ?? ?? ?? ?n?????? lh? ?? X???? C??? C? C? C? C? C??????? C??n???????? ?? ??? X?n????? ?? ???????? ????n???n?????n???? ??????? S?? communityService -Lorg/dspace/content/service/CommunityService; collectionService .Lorg/dspace/content/service/CollectionService; authorizeService /Lorg/dspace/authorize/service/AuthorizeService; log Lorg/apache/log4j/Logger; <init> ()V Code LineNumberTable LocalVariableTable this %Lorg/dspace/rest/CommunitiesResource; getCommunity ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Lorg/dspace/rest/common/Community; dspaceCommunity Lorg/dspace/content/Community; e Ljava/sql/SQLException; -Lorg/dspace/rest/exceptions/ContextException; communityId Ljava/lang/String; expand user_ip user_agent xforwardedfor headers Ljavax/ws/rs/core/HttpHeaders; request 'Ljavax/servlet/http/HttpServletRequest; context Lorg/dspace/core/Context; community "Lorg/dspace/rest/common/Community; StackMapTable?????[af? Exceptions RuntimeVisibleAnnotations Ljavax/ws/rs/GET; Ljavax/ws/rs/Path; value /{community_id} Ljavax/ws/rs/Produces; application/json application/xml "RuntimeVisibleParameterAnnotations Ljavax/ws/rs/PathParam; community_id Ljavax/ws/rs/QueryParam; userIP userAgent Ljavax/ws/rs/core/Context; getCommunities ?(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/Community; i I dspaceCommunities Ljava/util/List; limit Ljava/lang/Integer; offset communities Ljava/util/ArrayList; LocalVariableTypeTable 0Ljava/util/List<Lorg/dspace/content/Community;>; 9Ljava/util/ArrayList<Lorg/dspace/rest/common/Community;>;p?? Ljavax/ws/rs/DefaultValue; 100 0 getTopCommunities /top-communities 20 getCommunityCollections ?(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; dspaceCollections collections 1Ljava/util/List<Lorg/dspace/content/Collection;>; :Ljava/util/ArrayList<Lorg/dspace/rest/common/Collection;>;| /{community_id}/collections getCommunityCommunities ?(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/Community; /{community_id}/communities createCommunity ?(Lorg/dspace/rest/common/Community;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Lorg/dspace/rest/common/Community; user )Lorg/dspace/authorize/AuthorizeException; retCommunity? Ljavax/ws/rs/POST; Ljavax/ws/rs/Consumes; addCommunityCollection ?(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;)Lorg/dspace/rest/common/Collection; dspaceCollection Lorg/dspace/content/Collection; collection #Lorg/dspace/rest/common/Collection; retCollection? addCommunityCommunity ?(Ljava/lang/String;Lorg/dspace/rest/common/Community;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/ws/rs/core/HttpHeaders;Ljavax/servlet/http/HttpServletRequest;)Lorg/dspace/rest/common/Community; dspaceParentCommunity updateCommunity ?(Ljava/lang/String;Lorg/dspace/rest/common/Community;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; deleteCommunity ?(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; deleteCommunityCollection ?(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; collectionId? +/{community_id}/collections/{collection_id} collection_id deleteCommunityCommunity parentCommunity subcommunity parentCommunityId subcommunityId +/{community_id}/communities/{community_id2} community_id2 findCommunity L(Lorg/dspace/core/Context;Ljava/lang/String;I)Lorg/dspace/content/Community; id action <clinit> SourceFile CommunitiesResource.java /communities ? ???? ? ? ? ?? ? ? ? ? java/lang/StringBuilder Reading community(id= ). org/dspace/core/Constants:; org/dspace/rest/common/Community ?? ? java/sql/SQLException Could not read community(id= ), SQLException. Message: ! +org/dspace/rest/exceptions/ContextException ), ContextException. Message:" Community(id= ) was successfully read.# Reading all communities.(offset= ,limit=$%& java/util/ArrayList?'( +Paging was badly set, using default values.)*+?,(-. org/dspace/content/DSpaceObject/01 org/dspace/content/Community23 2Could not read communities, SQLException. Message: 6Could not read communities, ContextException. Message: "All communities successfully read.45 #[Lorg/dspace/rest/common/Community; $Reading all top communities.(offset=6& 6Could not read top communities, SQLException. Message: :Could not read top communities, ContextException. Message: &All top communities successfully read. ) collections. ,Pagging was badly set, using default values.78 !org/dspace/rest/common/Collection org/dspace/content/Collection ?9 %) collections, SQLException. Message: )) collections, ContextException. Message: %) collections were successfully read. $[Lorg/dspace/rest/common/Collection; ) subcommunities.:8 () subcommunities, SQLException. Message: ,) subcommunities, ContextException. Message: () subcommunities were successfully read. Creating community at top level.;<= ? anonymous>?@A User( )) has not permission to create community!B #javax/ws/rs/WebApplicationExceptionCEF ?GHIJ nameKLM copyright_textN introductory_textO short_descriptionP side_bar_textQRS ;Could not create new top community, SQLException. Message: ?Could not create new top community, ContextException. Message: 'org/dspace/authorize/AuthorizeException ACould not create new top community, AuthorizeException. Message: =Community at top level has been successfully created. Handle:T $Adding collection into community(id=UVHW licenseXLY +Could not add collection into community(id= ), AuthorizeException. Message: 4Collection was successfully added into community(id= ). Collection handle= #Add subcommunity into community(id=Z[ -Could not add subcommunity into community(id= 4Subcommunity was successfully added in community(id= Updating community(id= Could not update community(id= ), ContextException Message: ), AuthorizeException Message: ) has been successfully updated.\]_`ab Deleting community(id=cdS Could not delete community(id= java/io/IOException ), IOException. Message: ) was successfully deleted.eFfg Deleting collection(id= ) in community(id=hi Collection(id= ) was not found!jF *) has not permission to delete collection! 8User(anonymous) has not permission to delete collection!kl Could not delete collection(id= ), ContextExcpetion. Message: Subcommunity(id= ") in community(id=) was not found! )) has not permission to delete community! 7User(anonymous) has not permission to delete community!mn !Could not delete subcommunity(id= ) from community(id= ) has not permission to op community! &User(anonymous) has not permission to /Something get wrong while finding community(id= ). SQLException, Message: #org/dspace/rest/CommunitiesResourceqr org/dspace/rest/Resource java/lang/String javax/ws/rs/core/HttpHeaders %javax/servlet/http/HttpServletRequest org/dspace/core/Context java/lang/Throwable java/util/List java/lang/Integer 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; 4org/dspace/authorize/factory/AuthorizeServiceFactory 8()Lorg/dspace/authorize/factory/AuthorizeServiceFactory; getAuthorizeService 1()Lorg/dspace/authorize/service/AuthorizeService; 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;s "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; j(Lorg/dspace/content/Community;Ljavax/servlet/ServletContext;Ljava/lang/String;Lorg/dspace/core/Context;)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 +org/dspace/content/service/CommunityService findAll +(Lorg/dspace/core/Context;)Ljava/util/List; intValue ()I warn valueOf (I)Ljava/lang/Integer; size get (I)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; findAllTop getCollections ()Ljava/util/List; ?(Lorg/dspace/content/Collection;Ljavax/servlet/ServletContext;Ljava/lang/String;Lorg/dspace/core/Context;Ljava/lang/Integer;Ljava/lang/Integer;)V getSubcommunities isAdmin (Lorg/dspace/core/Context;)Z abort getCurrentUser ()Lorg/dspace/eperson/EPerson; org/dspace/eperson/EPerson getEmail error javax/ws/rs/core/Response$Status Status UNAUTHORIZED "Ljavax/ws/rs/core/Response$Status; %(Ljavax/ws/rs/core/Response$Status;)V create W(Lorg/dspace/content/Community;Lorg/dspace/core/Context;)Lorg/dspace/content/Community; CREATE getName setMetadata ^(Lorg/dspace/core/Context;Lorg/dspace/content/Community;Ljava/lang/String;Ljava/lang/String;)V getCopyrightText getIntroductoryText getShortDescription getSidebarText update =(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;)V getHandle UPDATE ,org/dspace/content/service/CollectionService X(Lorg/dspace/core/Context;Lorg/dspace/content/Community;)Lorg/dspace/content/Collection; getLicense _(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Ljava/lang/String;Ljava/lang/String;)V createSubcommunity W(Lorg/dspace/core/Context;Lorg/dspace/content/Community;)Lorg/dspace/content/Community; 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; DELETE delete OK status O(Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response$ResponseBuilder; findByIdOrLegacyId N(Lorg/dspace/core/Context;Ljava/lang/String;)Lorg/dspace/content/DSpaceObject; NOT_FOUND removeCollection Y(Lorg/dspace/core/Context;Lorg/dspace/content/Community;Lorg/dspace/content/Collection;)V removeSubcommunity X(Lorg/dspace/core/Context;Lorg/dspace/content/Community;Lorg/dspace/content/Community;)V getActionString (I)Ljava/lang/String; getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; org/dspace/usage/UsageEvent ! ? ? ? ? ? ? ? ? ? ? ? ? ? Y #*? *? ? ? *? ? ? *? ? ? ? ? ( * + , ? # ? ? ? ? ? K ? ? Y? ? +? ? ? ? :: ? :*+? : * ? -? ? Y *? ,? : ? *? ? k: ? Y? ? +? ? ? ? ? *? ? >: ? Y? ? +? "? ? #? ? ? *? ? :*? ?? ? Y? $? +? %? ? ? & ? $ ^ g $ ^ ? ! $ ^ ? g ? ? ? ? ? ? ? ? ? V N O ! P $ T ) V 3 W G Z Y [ ^ i d j g ^ i ` ? i ? j ? b ? d ? i ? j ? i ? m ? n ? ? 3 + ? ? i "