
com.adobe.aemds.guide.themes.SaveThemePostOperation.class Maven / Gradle / Ivy
???? 3 ? 3com/adobe/aemds/guide/themes/SaveThemePostOperation java/lang/Object ,org/apache/sling/servlets/post/PostOperation SaveThemePostOperation.java ,Lorg/apache/felix/scr/annotations/Component; metatype *Lorg/apache/felix/scr/annotations/Service; +Lorg/apache/felix/scr/annotations/Property; name sling.post.operation value af:saveStyleOperation importOperation .Lorg/apache/sling/servlets/post/PostOperation; ,Lorg/apache/felix/scr/annotations/Reference; target (sling.post.operation=import) deleteOperation (sling.post.operation=delete) ()V
this 5Lcom/adobe/aemds/guide/themes/SaveThemePostOperation; run ?(Lorg/apache/sling/api/SlingHttpServletRequest;Lorg/apache/sling/servlets/post/PostResponse;[Lorg/apache/sling/servlets/post/SlingPostProcessor;)V 2org/apache/sling/api/resource/PersistenceException isTheme C(Lorg/apache/sling/api/SlingHttpServletRequest;)Ljava/lang/Boolean; " #
$ :content & ,org/apache/sling/api/SlingHttpServletRequest ( getParameter &(Ljava/lang/String;)Ljava/lang/String; * + ) , java/lang/Boolean . booleanValue ()Z 0 1
/ 2 getResource *()Lorg/apache/sling/api/resource/Resource; 4 5 ) 6 getResourceResolver 2()Lorg/apache/sling/api/resource/ResourceResolver; 8 9 ) : 0org/apache/sling/api/resource/ModifiableValueMap < &org/apache/sling/api/resource/Resource > adaptTo %(Ljava/lang/Class;)Ljava/lang/Object; @ A ? B cssStyle D containsKey (Ljava/lang/Object;)Z F G = H remove &(Ljava/lang/Object;)Ljava/lang/Object; J K = L cq:cssClass N style P getChild <(Ljava/lang/String;)Lorg/apache/sling/api/resource/Resource; R S ? T .org/apache/sling/api/resource/ResourceResolver V delete +(Lorg/apache/sling/api/resource/Resource;)V X Y W Z commit \ W ] ,com/adobe/aemds/guide/service/GuideException _ (Ljava/lang/Exception;)V a
` b d f &org/apache/sling/api/resource/ValueMap h keySet ()Ljava/util/Set; j k i l
java/util/Set n iterator ()Ljava/util/Iterator; p q o r java/util/Iterator t hasNext v 1 u w next ()Ljava/lang/Object; y z u { java/lang/String } # contains (Ljava/lang/CharSequence;)Z ? ?
~ ? jcr: ?
startsWith (Ljava/lang/String;)Z ? ?
~ ? ? e 4Lorg/apache/sling/api/resource/PersistenceException; rr 0Lorg/apache/sling/api/resource/ResourceResolver; map 2Lorg/apache/sling/api/resource/ModifiableValueMap;
styleResource (Lorg/apache/sling/api/resource/Resource; resource key Ljava/lang/String; #Ljava/util/Set; Ljava/util/Set; keys (Ljava/util/Iterator; Ljava/util/Iterator; request .Lorg/apache/sling/api/SlingHttpServletRequest; response -Lorg/apache/sling/servlets/post/PostResponse;
processors 4[Lorg/apache/sling/servlets/post/SlingPostProcessor; Ljava/lang/Boolean; +org/apache/sling/servlets/post/PostResponse ? ? themePath ? valueOf (Z)Ljava/lang/Boolean; ? ?
/ ? bindImportOperation 1(Lorg/apache/sling/servlets/post/PostOperation;)V unbindImportOperation bindDeleteOperation unbindDeleteOperation RuntimeInvisibleAnnotations Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
SourceFile ! ? s ? s ? / *? ? ? ? 0 ? ?
E*+? %:+'? - ? ?? 3? ?+? 7 :? y+? ; :=? C ? =:? /E? I ?
E? M WO? I ?
O? M WQ? U :? ? [ ? ^ ? : ? `Y ? c?? ?*? e+,-? g ? ?? 3? ?+? 7 =? C ? =:? m+? 7 i? C ? i? m :+? 7 i? C ? i? m ? s :? x ? 0? | ? ~:?? ?? ?? ??
? M W???*? ?+,-? g ? y ? ? ! ? ? ?
? ? / n ? ? = ` ? ? y $ ? ? " { ? ? ? ? ? S j ? 7 ? ? ? o ? ? E E ? ? E ? ? E ? ? > " ? ? ? S j ? 7 ? ? ? ? ! : ; <