/** * A third level configuration bean class for siddhi extension config. */ @Configuration(description = "Extension configuration") public class Extension { @Element(description = "A string field") private ExtensionChildConfiguration extension = new ExtensionChildConfiguration(); public ExtensionChildConfiguration getExtension() { return extension; } }
/** * Class to hold policy url configurations */ @Configuration(description = "environment and key management configurations") public class PolicyRoutes { private String privacyPolicyUrl = "/policy/privacy-policy"; private String cookiePolicyUrl = "/policy/cookie-policy"; public String getCookiePolicyUrl() { return cookiePolicyUrl; } public void setCookiePolicyUrl(String cookiePolicyUrl) { this.cookiePolicyUrl = cookiePolicyUrl; } public String getPrivacyPolicyUrl() { return privacyPolicyUrl; } public void setPrivacyPolicyUrl(String privacyPolicyUrl) {this.privacyPolicyUrl = privacyPolicyUrl; } }
/** * This is the bean class for Role in deployment yaml. */ public class Roles { @Element(description = "list of dashboard creator roles") private List<String> creators = Collections.emptyList(); public List<String> getCreators() { return creators; } }
/** * A third level configuration bean class for siddhi reference config. */ @Configuration(description = "Reference configuration") public class Reference { @Element(description = "A string field") private ReferenceChildConfiguration ref = new ReferenceChildConfiguration(); public ReferenceChildConfiguration getReference() { return ref; } }
/** * This class represents the system data sources configuration. */ @Configuration(namespace = "wso2.datasources", description = "Data Sources Configuration") public class DataSourcesConfiguration { private List<DataSourceMetadata> dataSources; public List<DataSourceMetadata> getDataSources() { return dataSources; } public void setDataSources(List<DataSourceMetadata> dataSources) { this.dataSources = dataSources; } }
/** * Role Element. */ @Configuration(description = "Role Element") public class RoleElement { @Element(description = "Role Child Element", required = true) private RoleChildElement role = new RoleChildElement(); public RoleChildElement getRole() { return role; } }
/** * Config bean for startupOrderResolver. */ @Configuration(description = "StartupOrderResolver related configurations") public class StartupResolverConfig { private CapabilityListenerTimer capabilityListenerTimer = new CapabilityListenerTimer(); private PendingCapabilityTimer pendingCapabilityTimer = new PendingCapabilityTimer(); public CapabilityListenerTimer getCapabilityListenerTimer() { return capabilityListenerTimer; } public PendingCapabilityTimer getPendingCapabilityTimer() { return pendingCapabilityTimer; } }
/** * User Element. */ @Configuration(description = "User Element") public class UserElement { @Element(description = "User Child Element", required = true) private UserChildElement user = new UserChildElement(); public UserChildElement getUser() { return user; } }
/** * Represents Docker configurations in the deployment.yaml. */ @Configuration(namespace = "docker.configs", description = "Docker configurations in Editor") public class DockerConfigs { @Element(description = "Version of the product and the Docker image") private String productVersion = "latest"; public String getProductVersion() { return productVersion; } }
/** * Class to hold Environment configurations */ @Configuration(description = "Multi-Environment Overview Configurations") public class MultiEnvironmentOverview { @Element(description = "Multi-Environment Overview feature enabled or not") private boolean enabled = false; public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } }
/** * Class to hold Auth configuration parameters and generate yaml file */ @Configuration(namespace = "wso2.carbon.auth", description = "Auth Configuration Parameters") public class AuthConfiguration { @Element(description = "Key Manager Configurations") private KeyManagerConfiguration keyManagerConfigs = new KeyManagerConfiguration(); public KeyManagerConfiguration getKeyManagerConfigs() { return keyManagerConfigs; } public void setKeyManagerConfigs(KeyManagerConfiguration keyManagerConfigs) { this.keyManagerConfigs = keyManagerConfigs; } }
/** * Class to hold Environment configurations */ @Configuration(description = "Multi-Environment Overview Configurations") public class MultiEnvironmentOverview { @Element(description = "Multi-Environment Overview feature enabled or not") private boolean enabled = false; public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } }
/** * User manager Element. */ @Configuration(description = "User Manager Element") public class UserManagerElement { @Element(description = "Admin Role - Display name of the role defined in the user store", required = true) private String adminRole = "admin"; @Element(description = "User Store") private UserStoreElement userStore = new UserStoreElement(); public String getAdminRole() { return adminRole; } public UserStoreElement getUserStore() { return userStore; } }
/** * Configuration for Authentication Interceptor */ @Configuration(namespace = "wso2.carbon.authenticator", description = "Security Configuration Parameters") public class SecurityConfiguration { @Element(description = "list of web clients (eg: 127.0.0.1:9443) to allow make requests to allow any web client)") private List<String> allowedHosts = Collections.singletonList("*"); @Element(description = "Mapping of authenticator") private Map<String, Map<String, String>> authenticator = new HashMap<>(); public List<String> getAllowedHosts() { return allowedHosts; } public Map<String, Map<String, String>> getAuthenticator() { return authenticator; } }
/** * User store Element. */ @Configuration(description = "User Store Element") public class UserStoreElement { @Element(description = "Groups", required = true) private List<RoleElement> roles = Collections.singletonList(new RoleElement()); @Element(description = "Users", required = true) private List<UserElement> users = Collections.singletonList(new UserElement()); public List<UserElement> getUsers() { return users; } public List<RoleElement> getRoles() { return roles; } }
/** * REST API Authentication config Element. */ @Configuration(description = "REST API Auth configurations") public class RESTAPIConfigurationElement { @Element(description = "Enable authentication for REST API", required = true) private String authEnable = "true"; @Element(description = "APIs to be excluded when auth is enabled", required = true) private List<String> exclude = new ArrayList<>(); public String getAuthEnable() { return authEnable; } public List<String> getExclude() { return exclude; } }
/** * Role Child Element. */ @Configuration(description = "Role Child Element configuration") public class RoleChildElement { @Element(description = "Role Id", required = true) private String id = "1"; @Element(description = "Role Display Name", required = true) private String displayName = "admin"; public String getId() { return id; } public String getDisplayName() { return displayName; } }
/** * Class which wrap data receiver constructs. */ @Configuration(description = "Agent configuration") public class Agent { @Element(description = "Agent configuration") private AgentConfiguration agentConfiguration; public AgentConfiguration getAgentConfiguration() { return agentConfiguration; } public Agent(String name, String dataEndpointClass) { agentConfiguration = new AgentConfiguration(name, dataEndpointClass); } public Agent() { agentConfiguration = new AgentConfiguration(); } }
/** * Class to hold Version configuration parameters */ @Configuration(description = "Version Configurations") public class NewVersionNotifierConfigurations { @Element(description = "notifiers") List<NotifierConfigurations> notifierConfigurations = new ArrayList<>(); public NewVersionNotifierConfigurations() { notifierConfigurations.add(new NotifierConfigurations()); } public List<NotifierConfigurations> getNotifierConfigurations() { return notifierConfigurations; } public void setNotifierConfigurations(List<NotifierConfigurations> notifierConfigurations) { this.notifierConfigurations = notifierConfigurations; } }
/** * Config bean for pendingCapabilityTimer. */ @Configuration(description = "Configuration for the timer task which checks " + "for pending Capabilities") public class PendingCapabilityTimer { @Element(description = "delay in milliseconds before task is to be executed") private long delay = 60000; @Element(description = "time in milliseconds between successive task executions") private long period = 30000; public long getDelay() { return delay; } public long getPeriod() { return period; } }