Edit C:\Users\Admin\.m2\repository\org\dspace\dspace-api\6.2\org\dspace\app\util\AuthorizeUtil.class
???? 3A P ? 9 ? ? ? ? O ? ? ? O ? ? ? O ? ? ? ? ? ? ? ? ? ; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? O ? ? ? ? ? O ? O ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ' ? ? ? ? ? ? O ? ? O ? O ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? authorizeService /Lorg/dspace/authorize/service/AuthorizeService; itemService (Lorg/dspace/content/service/ItemService; collectionService .Lorg/dspace/content/service/CollectionService; <init> ()V Code LineNumberTable LocalVariableTable this #Lorg/dspace/app/util/AuthorizeUtil; authorizeManageBitstreamPolicy :(Lorg/dspace/core/Context;Lorg/dspace/content/Bitstream;)V context Lorg/dspace/core/Context; bitstream Lorg/dspace/content/Bitstream; bundle Lorg/dspace/content/Bundle; Exceptions ? authorizeManageBundlePolicy 7(Lorg/dspace/core/Context;Lorg/dspace/content/Bundle;)V item Lorg/dspace/content/Item; authorizeManageItemPolicy 5(Lorg/dspace/core/Context;Lorg/dspace/content/Item;)V StackMapTable authorizeManageCollectionPolicy ;(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;)V collection Lorg/dspace/content/Collection; authorizeManageCommunityPolicy :(Lorg/dspace/core/Context;Lorg/dspace/content/Community;)V community Lorg/dspace/content/Community; requireAdminRole (Lorg/dspace/core/Context;)V authorizeManageCCLicense authex )Lorg/dspace/authorize/AuthorizeException; ? authorizeManageTemplateItem communities Ljava/util/List; parent isAuthorized Z LocalVariableTypeTable 0Ljava/util/List<Lorg/dspace/content/Community;>; ? ? authorizeManageSubmittersGroup authorizeManageWorkflowsGroup authorizeManageAdminGroup authorizeRemoveAdminGroup parentCommunities parentCommunity authorizeManagePolicy A(Lorg/dspace/core/Context;Lorg/dspace/authorize/ResourcePolicy;)V c rp %Lorg/dspace/authorize/ResourcePolicy; authorizeWithdrawItem authorized authorizeReinstateItem coll colls 1Ljava/util/List<Lorg/dspace/content/Collection;>; ? ? <clinit> SourceFile AuthorizeUtil.java W X ? ? ? ? ? org/dspace/content/Bundle h i ? ? org/dspace/content/Item l m ? ? Q R org/dspace/core/Constants ? org/dspace/content/DSpaceObject 'org/dspace/authorize/AuthorizeException 5Only system admin are allowed to manage item policies W ;Only system admin are allowed to manage collection policies :Only system admin are allowed to manage community policies 4Only system admin are allowed to perform this action S T w x U V org/dspace/content/Community CYou are not authorized to create a template item for the collection =Only system admin are allowed to manage collection submitters ;Only system admin are allowed to manage collection workflow ! 8Only system admin are allowed to manage collection admin <Only system admin can remove the admin group of a collection" 7Only system admin are allowed to manage community admin# ? =Only system admin can remove the admin group of the community$%&' org/dspace/content/Bitstream ^ _ org/dspace/content/Collection o p s t( )*+ ), [To withdraw item must be COLLECTION_ADMIN or have REMOVE authorization on owning Collection- ?./ ?0 123 4 56789:;7<=>?@ !org/dspace/app/util/AuthorizeUtil java/lang/Object java/sql/SQLException java/util/List java/util/Iterator getBundles ()Ljava/util/List; get (I)Ljava/lang/Object; getItems +org/dspace/authorize/AuthorizeConfiguration canItemAdminManagePolicies ()Z -org/dspace/authorize/service/AuthorizeService authorizeAction >(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;I)V $canCollectionAdminManageItemPolicies getOwningCollection !()Lorg/dspace/content/Collection; #canCommunityAdminManageItemPolicies getCommunities isAdmin (Lorg/dspace/core/Context;)Z (Ljava/lang/String;)V canCollectionAdminManagePolicies )canCommunityAdminManageCollectionPolicies canCommunityAdminManagePolicies canItemAdminManageCCLicense !canCollectionAdminManageCCLicense &org/dspace/content/service/ItemService getParentObject ](Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;)Lorg/dspace/content/DSpaceObject; canCommunityAdminManageCCLicense ,org/dspace/content/service/CollectionService canEditBoolean <(Lorg/dspace/core/Context;Lorg/dspace/content/Collection;Z)Z $canCollectionAdminManageTemplateItem -canCommunityAdminManageCollectionTemplateItem size ()I "canCollectionAdminManageSubmitters +canCommunityAdminManageCollectionSubmitters !canCollectionAdminManageWorkflows *canCommunityAdminManageCollectionWorkflows "canCollectionAdminManageAdminGroup +canCommunityAdminManageCollectionAdminGroup !canCommunityAdminManageAdminGroup getParentCommunities #org/dspace/authorize/ResourcePolicy getdSpaceObject #()Lorg/dspace/content/DSpaceObject; getType &canCollectionAdminPerformItemWithdrawn authorizeActionBoolean >(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;I)Z %canCommunityAdminPerformItemWithdrawn ?(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;IZ)Z getCollections iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; )canCollectionAdminPerformItemReinstatiate (canCommunityAdminPerformItemReinstatiate ?(Lorg/dspace/core/Context;Lorg/dspace/content/DSpaceObject;IZ)V 4org/dspace/authorize/factory/AuthorizeServiceFactory getInstance 8()Lorg/dspace/authorize/factory/AuthorizeServiceFactory; getAuthorizeService 1()Lorg/dspace/authorize/service/AuthorizeService; 0org/dspace/content/factory/ContentServiceFactory 4()Lorg/dspace/content/factory/ContentServiceFactory; getItemService *()Lorg/dspace/content/service/ItemService; getCollectionService 0()Lorg/dspace/content/service/CollectionService; ! O P Q R S T U V W X Y / *? ? Z [ \ ] ^ _ Y Z +? ? ? M*,? ? Z 7 8 9 [ ` a b c d e f g h i Y Z +? ? ? M*,? ? Z L M N [ ` a d e j k f g l m Y ? h? ? ? *+? ? U? ? ? *+? ? ? =? ? !? *+? ? ? ? ? ? ? *? ? ? Y? ?? Z : a c e g h % g - j 3 l 8 m ; n I m Q p ] r g u [ h ` a h j k n # f g o p Y ? M? ? ? *+? ? :? ? ? *+? ? ? ? ? ? *? ? ? Y? ?? Z &