
org.liveSense.service.mail.activation.ActivationPeriodicalPurgeJob.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.liveSense.service.activation Show documentation
Show all versions of org.liveSense.service.activation Show documentation
liveSense Activation service. For registration and activation codes.
The newest version!
???? 2 ? Borg/liveSense/service/mail/activation/ActivationPeriodicalPurgeJob java/lang/Object java/lang/Runnable !ActivationPeriodicalPurgeJob.java ,Lorg/apache/felix/scr/annotations/Component; label "%activationPeriodicalPurgeJob.name description )%activationPeriodicalPurgeJob.description immediate metatype policy 6Lorg/apache/felix/scr/annotations/ConfigurationPolicy; OPTIONAL *Lorg/apache/felix/scr/annotations/Service; value Ljava/lang/Runnable; -Lorg/apache/felix/scr/annotations/Properties; +Lorg/apache/felix/scr/annotations/Property; name scheduler.name ActivationPeriodicalPurgeJob scheduler.expression 0 0 * ? * * activationPath %activationPath.name
activation log Lorg/slf4j/Logger;
repository *Lorg/apache/sling/jcr/api/SlingRepository; ,Lorg/apache/felix/scr/annotations/Reference; cardinality 7Lorg/apache/felix/scr/annotations/ReferenceCardinality; MANDATORY_UNARY 2Lorg/apache/felix/scr/annotations/ReferencePolicy; DYNAMIC Ljava/lang/String; ()V + ,
- org/slf4j/LoggerFactory / getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; 1 2
0 3 ! 5 this DLorg/liveSense/service/mail/activation/ActivationPeriodicalPurgeJob; activate 0(Lorg/osgi/service/component/ComponentContext;)V javax/jcr/RepositoryException ; +Lorg/apache/felix/scr/annotations/Activate; +org/osgi/service/component/ComponentContext >
getProperties ()Ljava/util/Dictionary; @ A ? B java/util/Dictionary E get &(Ljava/lang/Object;)Ljava/lang/Object; G H
F I &org/apache/sling/commons/osgi/OsgiUtil L toString 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String; N O
M P * R componentContext -Lorg/osgi/service/component/ComponentContext; props Ljava/util/Dictionary<**>; Ljava/util/Dictionary; run " # Z (org/apache/sling/jcr/api/SlingRepository \ loginAdministrative '(Ljava/lang/String;)Ljavax/jcr/Session; ^ _ ] ` java/lang/StringBuilder b
c -
/jcr:root/ e append -(Ljava/lang/String;)Ljava/lang/StringBuilder; g h
c i V//element(*,nt:unstructured)[@sling:resourceType = 'liveSense/Activation' and @expire< k java/lang/System m currentTimeMillis ()J o p
n q (J)Ljava/lang/StringBuilder; g s
c t ] v ()Ljava/lang/String; N x
c y javax/jcr/Session { getWorkspace ()Ljavax/jcr/Workspace; } ~ | javax/jcr/Workspace ? getQueryManager ()Ljavax/jcr/query/QueryManager; ? ? ? ? xpath ? javax/jcr/query/QueryManager ? createQuery =(Ljava/lang/String;Ljava/lang/String;)Ljavax/jcr/query/Query; ? ? ? ? javax/jcr/query/Query ? execute ()Ljavax/jcr/query/QueryResult; ? ? ? ? javax/jcr/query/QueryResult ? getNodes ()Ljavax/jcr/NodeIterator; ? ? ? ? java/lang/String ? javax/jcr/NodeIterator ? hasNext ()Z ? ? ? ? nextNode ()Ljavax/jcr/Node; ? ? ? ? Removing expired activation: ? javax/jcr/Node ? getName ? x ? ? org/slf4j/Logger ? info (Ljava/lang/String;)V ? ? ? ? remove ? , ? ? hasPendingChanges ? ? | ? save ? , | ? logout ? , | ? 'Repository error in ActivationPurgeJob ? error *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? ? ? java/lang/Throwable ? node Ljavax/jcr/Node; query q Ljavax/jcr/query/Query; nodes Ljavax/jcr/NodeIterator; qm Ljavax/jcr/query/QueryManager; ex Ljavax/jcr/RepositoryException; session Ljavax/jcr/Session; bindRepository -(Lorg/apache/sling/jcr/api/SlingRepository;)V unbindRepository RuntimeInvisibleAnnotations Code LocalVariableTable LineNumberTable LocalVariableTypeTable
Exceptions
StackMapTable
SourceFile ! ! " # ? $ %e &