DispatcherFlushContentBuilder.java
2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* javax.jcr.Session
* org.apache.felix.scr.annotations.Activate
* org.apache.felix.scr.annotations.Component
* org.apache.felix.scr.annotations.Properties
* org.apache.felix.scr.annotations.Property
* org.apache.felix.scr.annotations.Service
* org.apache.sling.commons.osgi.PropertiesUtil
*/
package com.day.cq.replication.impl.content;
import com.day.cq.replication.ContentBuilder;
import com.day.cq.replication.ReplicationAction;
import com.day.cq.replication.ReplicationContent;
import com.day.cq.replication.ReplicationContentFactory;
import com.day.cq.replication.ReplicationException;
import java.util.Map;
import javax.jcr.Session;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;
import org.apache.sling.commons.osgi.PropertiesUtil;
@Component
@Properties(value={@Property(name="service.description", value={"Adobe Granite Dispatcher Flush Content Builder"}), @Property(name="name", value={"flush"})})
@Service(value={ContentBuilder.class})
public class DispatcherFlushContentBuilder
implements ContentBuilder {
public static final String NAME = "flush";
public static final String TITLE = "Empty";
private String name;
@Activate
protected void activate(Map<String, Object> props) {
this.name = PropertiesUtil.toString((Object)props.get("name"), (String)"flush");
}
@Override
public String getName() {
return this.name;
}
@Override
public ReplicationContent create(Session session, ReplicationAction action, ReplicationContentFactory factory) throws ReplicationException {
return ReplicationContent.VOID;
}
@Override
public ReplicationContent create(Session session, ReplicationAction action, ReplicationContentFactory contentFactory, Map<String, Object> parameters) throws ReplicationException {
return this.create(session, action, contentFactory);
}
@Override
public String getTitle() {
return "Empty";
}
}