com.day.cq.dam.core.process.MetadataExtractor.class Maven / Gradle / Ivy
???? 2 ? ?
: ? ? ? ? ? ?
? ?
? ? ? ? ? ? ? ? ? ? ? ? ?
? ?
? ?
? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ?
?
? ? ?
? ? ? ? ? ? ? ? ? ?
? ? ? ?
? ? ?
0 ? ? ? ? 2 ? ? ? ?
? ? ?
? ? ? log Lorg/slf4j/Logger; JCR_CONTENT_METADATA Ljava/lang/String;
ConstantValue JCR_CONTENT_JCR_DATA metadataBuilder ?Lcom/day/cq/dam/commons/metadata/SimpleXmpToJcrMetadataBuilder; ()V Code LineNumberTable LocalVariableTable this /Lcom/day/cq/dam/core/process/MetadataExtractor;
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; B(Lcom/day/cq/dam/commons/metadata/SimpleXmpToJcrMetadataBuilder;)V extractMetadata ?(Ljavax/jcr/Session;Lcom/day/cq/dam/api/Asset;Lcom/day/cq/dam/api/handler/AssetHandler;ZLorg/apache/sling/commons/mime/MimeTypeService;)V sha1
assetResource (Lorg/apache/sling/api/resource/Resource; resolver 0Lorg/apache/sling/api/resource/ResourceResolver; metadataResource metadata /Lcom/day/cq/dam/api/metadata/ExtractedMetadata; originalRendition Lcom/day/cq/dam/api/Rendition; originalBinary Ljavax/jcr/Node; session Ljavax/jcr/Session; asset Lcom/day/cq/dam/api/Asset; assetHandler )Lcom/day/cq/dam/api/handler/AssetHandler; sha1Enabled Z mimeTypeService /Lorg/apache/sling/commons/mime/MimeTypeService; cache (Lcom/day/cq/dam/commons/util/AssetCache;
StackMapTable ? ? ? ? ? ? ? ? ? ? ? ?
Exceptions ? saveMetadata t(Lcom/day/cq/dam/api/Asset;Lcom/day/cq/dam/api/metadata/ExtractedMetadata;Lorg/apache/sling/api/resource/Resource;)V e Ljava/lang/Exception; ?
resetMimetype {(Lcom/day/cq/dam/api/Asset;Lcom/day/cq/dam/api/metadata/ExtractedMetadata;Lorg/apache/sling/commons/mime/MimeTypeService;)V is Ljava/io/InputStream; mimeType ? ? ?
SourceFile MetadataExtractor.java com/day/cq/dam/api/DamConstants #com/day/cq/commons/jcr/JcrConstants C D ; < ?Deprecated constructor invoked. Please instantiate MetadataExtractor object providing com.day.cq.dam.commons.metadata.SimpleXmpToJcrMetadataBuilder as argument ? ? ? =com/day/cq/dam/commons/metadata/SimpleXmpToJcrMetadataBuilder A B ? ? ? &org/apache/sling/api/resource/Resource ? ? ? ? ? -com/day/cq/dam/core/process/MetadataExtractor jcr:content/metadata ? ? ? ? N ?
dam:extracted ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dam:sha1 javax/jcr/Node ? jcr:content/jcr:data ? ? dam:size ? ? ? ? ? ? | } w x D java/lang/Exception 9saveMetadata: error while saving metdata for asset [{}]:
Gexecute: cannot save metdata for asset [{}], doesn't have metdata node.
?
? java/io/BufferedInputStream C Eorg/apache/sling/commons/contentdetection/ContentAwareMimeTypeService ? java/io/IOException ? dc:format java/lang/Object javax/jcr/Session com/day/cq/dam/api/Asset 'com/day/cq/dam/api/handler/AssetHandler -org/apache/sling/commons/mime/MimeTypeService &com/day/cq/dam/commons/util/AssetCache .org/apache/sling/api/resource/ResourceResolver -com/day/cq/dam/api/metadata/ExtractedMetadata com/day/cq/dam/api/Rendition java/lang/Throwable javax/jcr/RepositoryException java/lang/String java/io/InputStream org/slf4j/Logger warn (Ljava/lang/String;)V #com/day/cq/dam/commons/util/DamUtil
getAssetCache *()Lcom/day/cq/dam/commons/util/AssetCache; adaptTo %(Ljava/lang/Class;)Ljava/lang/Object; getResourceResolver 2()Lorg/apache/sling/api/resource/ResourceResolver; getResource d(Lorg/apache/sling/api/resource/Resource;Ljava/lang/String;)Lorg/apache/sling/api/resource/Resource; K(Lcom/day/cq/dam/api/Asset;)Lcom/day/cq/dam/api/metadata/ExtractedMetadata; java/util/Calendar getInstance ()Ljava/util/Calendar; getTime ()Ljava/util/Date; setMetaDataProperty '(Ljava/lang/String;Ljava/lang/Object;)V getOriginal ()Lcom/day/cq/dam/api/Rendition; getStream 6(Lcom/day/cq/dam/api/Rendition;Z)Ljava/io/InputStream; +org/apache/commons/codec/digest/DigestUtils shaHex )(Ljava/io/InputStream;)Ljava/lang/String; hasProperty (Ljava/lang/String;)Z getProperty ((Ljava/lang/String;)Ljavax/jcr/Property; javax/jcr/Property getBinary ()Ljavax/jcr/Binary; javax/jcr/Binary getSize ()J java/lang/Long valueOf (J)Ljava/lang/Long; release
storeAsXmp M(Lcom/day/cq/dam/api/metadata/ExtractedMetadata;Lcom/day/cq/dam/api/Asset;Z)V getPath ()Ljava/lang/String; error 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V 'com/day/cq/dam/commons/util/DamMimeUtil getDetectMimeFromContent ()Z getOriginalStream 2(Lcom/day/cq/dam/api/Asset;Z)Ljava/io/InputStream;
markSupported (Ljava/io/InputStream;)V getName getMimeType ;(Ljava/lang/String;Ljava/io/InputStream;)Ljava/lang/String; &(Ljava/lang/String;)Ljava/lang/String; #org/apache/commons/lang/StringUtils
isNotEmpty org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! : ; <