diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-09-06 21:14:28 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-09-06 21:14:28 +0200 |
commit | 363c4c96083a5e4e80766c87fe15912866dc568f (patch) | |
tree | 6fcbdf95d5f9dead8849a38a7e47b7d2f0b6eb5d /archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src | |
parent | bc6065c1411229ba124283efa7fd4fce31f144f4 (diff) | |
download | archiva-363c4c96083a5e4e80766c87fe15912866dc568f.tar.gz archiva-363c4c96083a5e4e80766c87fe15912866dc568f.zip |
Switching to enum for policy options
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/PolicyInformation.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/PolicyInformation.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/PolicyInformation.java index 9880885b6..fd2bfd64e 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/PolicyInformation.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/PolicyInformation.java @@ -18,6 +18,8 @@ package org.apache.archiva.rest.api.model; * under the License. */ +import org.apache.archiva.policies.PolicyOption; + import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; import java.util.List; @@ -30,9 +32,9 @@ import java.util.List; public class PolicyInformation implements Serializable { - private List<String> options; + private List<PolicyOption> options; - private String defaultOption; + private PolicyOption defaultOption; private String id; @@ -43,7 +45,7 @@ public class PolicyInformation // no op } - public PolicyInformation( List<String> options, String defaultOption, String id, String name ) + public PolicyInformation(List<PolicyOption> options, PolicyOption defaultOption, String id, String name ) { this.options = options; this.defaultOption = defaultOption; @@ -51,22 +53,22 @@ public class PolicyInformation this.name = name; } - public List<String> getOptions() + public List<PolicyOption> getOptions() { return options; } - public void setOptions( List<String> options ) + public void setOptions( List<PolicyOption> options ) { this.options = options; } - public String getDefaultOption() + public PolicyOption getDefaultOption() { return defaultOption; } - public void setDefaultOption( String defaultOption ) + public void setDefaultOption( PolicyOption defaultOption ) { this.defaultOption = defaultOption; } |