• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FIWARE / contract-management / #69

30 Oct 2025 07:38AM UTC coverage: 1.686% (+0.04%) from 1.651%
#69

Pull #12

wistefan
improve organization creation and cleanup
Pull Request #12: Support for central marketplace and policy creation

117 of 1238 new or added lines in 31 files covered. (9.45%)

5 existing lines in 2 files now uncovered.

587 of 34807 relevant lines covered (1.69%)

0.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/src/main/java/org/fiware/iam/configuration/GeneralProperties.java
1
package org.fiware.iam.configuration;
2

3

4
import io.micronaut.context.annotation.ConfigurationProperties;
5
import io.micronaut.context.condition.Condition;
6
import io.micronaut.context.condition.ConditionContext;
7
import lombok.Data;
8

9
@Data
10
@ConfigurationProperties("general")
11
public class GeneralProperties {
12

13
    /**
14
     * DID of the organization running this instance.
15
     */
16
    private String did;
17

18
    /**
19
     * Basepath of all controllers
20
     */
21
    private String basePath = "/";
22
    /**
23
     * Enables integration with the (local) ODRL-PAP. http.services.odrl needs to be configured
24
     * towards the ODRL-PAP.
25
     */
26
    private boolean enableOdrlPap = true;
27
    /**
28
     * Enables integration with the (local) Trusted Issuers List. http.services.trusted-issuers-list needs to be configured
29
     * towards the Trusted Issuers List.
30
     */
31
    private boolean enableTrustedIssuersList = true;
32
    /**
33
     * Enables integration with the TMForum API.
34
     */
35
    private boolean enableTmForum = true;
36
    /**
37
     * Requires TMForum integration to be enabled and the http.service.rainbow properly configured
38
     */
39
    private boolean enableRainbow = true;
40
    /**
41
     * Enable integration with a central marketplace. Requires OdrlPap and TrustedIssuersList integration to be enabled.
42
     */
43
    private boolean enableCentralMarketplace = true;
44

45
    public static class CentralMarketplaceCondition implements Condition {
1✔
46

47
        @Override
48
        public boolean matches(ConditionContext context) {
49
            return context.getBean(GeneralProperties.class)
1✔
50
                    .isEnableCentralMarketplace();
1✔
51
        }
52
    }
53

54
    public static class RainbowCondition implements Condition {
1✔
55

56
        @Override
57
        public boolean matches(ConditionContext context) {
58
            return context.getBean(GeneralProperties.class)
1✔
59
                    .isEnableRainbow();
1✔
60
        }
61
    }
62

63
    public static class PapCondition implements Condition {
1✔
64

65
        @Override
66
        public boolean matches(ConditionContext context) {
NEW
67
            return context.getBean(GeneralProperties.class)
×
NEW
68
                    .isEnableOdrlPap();
×
69
        }
70
    }
71

72
    public static class TilCondition implements Condition {
1✔
73

74
        @Override
75
        public boolean matches(ConditionContext context) {
NEW
76
            return context.getBean(GeneralProperties.class)
×
NEW
77
                    .isEnableTrustedIssuersList();
×
78
        }
79
    }
80

81
    public static class TmForumCondition implements Condition {
1✔
82

83
        @Override
84
        public boolean matches(ConditionContext context) {
NEW
85
            return context.getBean(GeneralProperties.class)
×
NEW
86
                    .isEnableTmForum();
×
87
        }
88
    }
89
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc