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 |
|
package info.magnolia.rest.registry; |
35 |
|
|
36 |
|
import info.magnolia.jcr.node2bean.Node2BeanException; |
37 |
|
import info.magnolia.jcr.node2bean.Node2BeanProcessor; |
38 |
|
import info.magnolia.objectfactory.Components; |
39 |
|
import info.magnolia.registry.RegistrationException; |
40 |
|
import info.magnolia.rest.EndpointDefinition; |
41 |
|
|
42 |
|
import javax.jcr.Node; |
43 |
|
import javax.jcr.RepositoryException; |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
@deprecated |
49 |
|
|
50 |
|
@Deprecated |
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.5 |
|
51 |
|
public class ConfiguredEndpointDefinitionProvider implements EndpointDefinitionProvider { |
52 |
|
|
53 |
|
private final String name; |
54 |
|
private final ConfiguredEndpointDefinition endpointDefinition; |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
56 |
0 |
public ConfiguredEndpointDefinitionProvider(String name, Node configNode) throws Node2BeanException, RepositoryException {... |
57 |
0 |
this.name = name; |
58 |
0 |
this.endpointDefinition = (ConfiguredEndpointDefinition) Components.getComponent(Node2BeanProcessor.class).toBean(configNode, EndpointDefinition.class); |
59 |
0 |
if (this.endpointDefinition != null) { |
60 |
0 |
this.endpointDefinition.setName(name); |
61 |
|
} |
62 |
|
} |
63 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
64 |
|
@Override... |
65 |
|
public String getName() { |
66 |
|
return name; |
67 |
|
} |
68 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
69 |
|
@Override... |
70 |
|
public EndpointDefinition getEndpointDefinition() throws RegistrationException { |
71 |
|
return endpointDefinition; |
72 |
|
} |
73 |
|
|
74 |
|
} |