aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-30 21:20:29 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-30 21:20:29 +0200
commit509aad470c1ed42e108ea3294d1db71fdcee8aac (patch)
tree7b254587c150b834053f1c7a0dae61dda1ecc922 /archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src
parentbef02ef5b8d1f47f6cded2257ac49ae770e4f0fb (diff)
downloadarchiva-509aad470c1ed42e108ea3294d1db71fdcee8aac.tar.gz
archiva-509aad470c1ed42e108ea3294d1db71fdcee8aac.zip
Adapting to changes in parent pom and redback
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/ActionStatus.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ActionStatus.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ActionStatus.java
index 5620f4f35..b4534b9a7 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ActionStatus.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ActionStatus.java
@@ -18,7 +18,6 @@ package org.apache.archiva.rest.api.model;
* under the License.
*/
-import javax.swing.*;
import javax.xml.bind.annotation.XmlRootElement;
/**
@@ -32,6 +31,9 @@ public class ActionStatus
public static final ActionStatus SUCCESS = new ActionStatus( true );
public static final ActionStatus FAIL = new ActionStatus( false );
+ public static ActionStatus FROM(boolean status) {
+ return status ? SUCCESS : FAIL;
+ }
public ActionStatus() {
@@ -51,5 +53,9 @@ public class ActionStatus
this.success = success;
}
-
+ @Override
+ public String toString( )
+ {
+ return Boolean.toString( success );
+ }
}