
io.marto.aem.vassets.impl.AssetVersionServiceImpl.class Maven / Gradle / Ivy
???? 4! 1io/marto/aem/vassets/impl/AssetVersionServiceImpl java/lang/Object (io/marto/aem/vassets/AssetVersionService #org/osgi/service/event/EventHandler AssetVersionServiceImpl.java ,Lorg/apache/felix/scr/annotations/Component; *Lorg/apache/felix/scr/annotations/Service; -Lorg/apache/felix/scr/annotations/Properties; value +Lorg/apache/felix/scr/annotations/Property; name event.topics (org/apache/sling/api/resource/Resource/* event.filter f(&(path=/etc/vassets/*/jcr:content)(resourceType=vassets/components/page/asset-version-configuration)) 3io/marto/aem/vassets/impl/AssetVersionServiceImpl$1 @io/marto/aem/vassets/impl/AssetVersionServiceImpl$Configurations Configurations %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup SRVC Ljava/lang/String; versionedAssets RTYPE_CONFIG 3vassets/components/page/asset-version-configuration #
replicator #Lcom/day/cq/replication/Replicator; ,Lorg/apache/felix/scr/annotations/Reference; resolverFactory /Lio/marto/aem/lib/TypedResourceResolverFactory; configs BLio/marto/aem/vassets/impl/AssetVersionServiceImpl$Configurations; REP_OPTIONS +Lcom/day/cq/replication/ReplicationOptions; LOG Lorg/slf4j/Logger; ()V 0 1
2 8(Lio/marto/aem/vassets/impl/AssetVersionServiceImpl$1;)V 0 4
5 * + 7 this 3Lio/marto/aem/vassets/impl/AssetVersionServiceImpl; init +Lorg/apache/felix/scr/annotations/Activate; +Lorg/apache/felix/scr/annotations/Modified; ( ) >
access$100 t(Lio/marto/aem/vassets/impl/AssetVersionServiceImpl$Configurations;Lio/marto/aem/lib/TypedResourceResolverFactory;)V @ A
B
updateVersion (Ljava/lang/String;J)V 2io/marto/aem/vassets/VersionedAssetUpdateException F (Ljava/lang/String;JZ)V D H
I path version J updateVersionAndActivate
access$200 ?(Lio/marto/aem/vassets/impl/AssetVersionServiceImpl$Configurations;Ljava/lang/String;)Lio/marto/aem/vassets/model/Configuration; O P
Q "Failed to find configuration at %s S java/lang/String U format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; W X
V Y +(Ljava/lang/String;Ljava/lang/Throwable;I)V 0 [
G \ "java/lang/invoke/LambdaMetafactory ^ metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ` a
_ b c <(Lio/marto/aem/lib/TypedResourceResolver;)Ljava/lang/Object; e lambda$updateVersion$0 f(Lio/marto/aem/vassets/model/Configuration;JZLio/marto/aem/lib/TypedResourceResolver;)Ljava/lang/Void; g h
i j :(Lio/marto/aem/lib/TypedResourceResolver;)Ljava/lang/Void; l run ?(Lio/marto/aem/vassets/impl/AssetVersionServiceImpl;Lio/marto/aem/vassets/model/Configuration;JZ)Lio/marto/aem/lib/RepositoryTask; n o p -io/marto/aem/lib/TypedResourceResolverFactory r execute G(Ljava/lang/String;Lio/marto/aem/lib/RepositoryTask;)Ljava/lang/Object; t u s v activate Z conf *Lio/marto/aem/vassets/model/Configuration; (io/marto/aem/vassets/model/Configuration | findConfigByRewritePath >(Ljava/lang/String;)Lio/marto/aem/vassets/model/Configuration;
access$300 ? P
? basePath findConfigByContentPath
access$400 ? P
? f(Lio/marto/aem/lib/TypedResourceResolver;Lio/marto/aem/vassets/model/Configuration;JZ)Ljava/lang/Void; 2org/apache/sling/api/resource/PersistenceException ? getPath ()Ljava/lang/String; ? ?
} ? &io/marto/aem/lib/TypedResourceResolver ? getResource <(Ljava/lang/String;)Lorg/apache/sling/api/resource/Resource; ? ? ? ? 0org/apache/sling/api/resource/ModifiableValueMap ? &org/apache/sling/api/resource/Resource ? adaptTo %(Ljava/lang/Class;)Ljava/lang/Object; ? ? ? ? 3Could not locate VersionedAsset configuration at %s ?
getVersion ()J ? ?
} ? $Version (%s) must be greater than %s ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? addRevision (J)V ? ?
} ? history ?
getHistory ()Ljava/util/List; ? ?
} ? java/util/List ? size ()I ? ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? L replicate E(Ljava/lang/String;Lorg/apache/sling/api/resource/ResourceResolver;)V ? ?
? commit ? 1 ? ? Failed to update %s ? e 4Lorg/apache/sling/api/resource/PersistenceException; resolver (Lio/marto/aem/lib/TypedResourceResolver;
newVersion resource (Lorg/apache/sling/api/resource/Resource; props 2Lorg/apache/sling/api/resource/ModifiableValueMap; +com/day/cq/replication/ReplicationException ? . / ?
Activating {} ? org/slf4j/Logger ? debug '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? % & ? javax/jcr/Session ? .org/apache/sling/api/resource/ResourceResolver ? ? ? ,com/day/cq/replication/ReplicationActionType ? ACTIVATE .Lcom/day/cq/replication/ReplicationActionType; ? ? ? ? , - ? !com/day/cq/replication/Replicator ? ?(Ljavax/jcr/Session;Lcom/day/cq/replication/ReplicationActionType;Ljava/lang/String;Lcom/day/cq/replication/ReplicationOptions;)V ? ? ? ? &Failed to activate configuration at %s ? -Lcom/day/cq/replication/ReplicationException; 0Lorg/apache/sling/api/resource/ResourceResolver; handleEvent !(Lorg/osgi/service/event/Event;)V event Lorg/osgi/service/event/Event; D ?
? )com/day/cq/replication/ReplicationOptions
2 setSynchronous (Z)V
setSuppressStatusUpdate
org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;
bindReplicator &(Lcom/day/cq/replication/Replicator;)V unbindReplicator bindResolverFactory 2(Lio/marto/aem/lib/TypedResourceResolverFactory;)V unbindResolverFactory
ConstantValue RuntimeInvisibleAnnotations Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable BootstrapMethods
SourceFile InnerClasses ! ! " $ % &