FormsCommonConfigurationServiceImpl.java
2.23 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.felix.scr.annotations.Component
* org.apache.felix.scr.annotations.Property
* org.apache.felix.scr.annotations.PropertyOption
* org.apache.felix.scr.annotations.Service
* org.apache.sling.commons.osgi.OsgiUtil
* org.osgi.service.component.ComponentContext
* org.slf4j.Logger
* org.slf4j.LoggerFactory
*/
package com.adobe.forms.common.service.impl;
import com.adobe.forms.common.service.FormsCommonConfigurationService;
import java.util.Dictionary;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.PropertyOption;
import org.apache.felix.scr.annotations.Service;
import org.apache.sling.commons.osgi.OsgiUtil;
import org.osgi.service.component.ComponentContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Component(immediate=1, metatype=1, label="Forms Common Configuration Service")
@Service(value={FormsCommonConfigurationService.class})
public class FormsCommonConfigurationServiceImpl
implements FormsCommonConfigurationService {
private Logger logger = LoggerFactory.getLogger(FormsCommonConfigurationServiceImpl.class);
@Property(name="tempStorageConfig", value={"loggedIn"}, label="Allow", description="Verify Step and File Preview functionality requires use of temporary storage for adaptive forms. It allows users of only specified type to use these features.", options={@PropertyOption(name="none", value="None - No user, anonymous or logged in, can preview attachments and use 'Verify Step' in forms."), @PropertyOption(name="loggedIn", value="Logged In users - Only logged in users can preview attachments and use 'Verify Step' in forms."), @PropertyOption(name="all", value="All users - All the users, anonymous or logged in, can preview attachments and use 'Verify Step' in forms.")})
private String tempStorageConfig;
protected void activate(ComponentContext context) {
Dictionary props = context.getProperties();
this.tempStorageConfig = OsgiUtil.toString(props.get("tempStorageConfig"), (String)"loggedIn");
}
@Override
public String getTempStorageConfig() {
return this.tempStorageConfig;
}
}