diff options
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/config/NonManoFolderType.java')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/config/NonManoFolderType.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/config/NonManoFolderType.java b/common-be/src/main/java/org/openecomp/sdc/be/config/NonManoFolderType.java index 4d815e3f57..4ad6c31fd5 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/config/NonManoFolderType.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/config/NonManoFolderType.java @@ -19,6 +19,7 @@ package org.openecomp.sdc.be.config; import lombok.Data; +import org.apache.commons.lang.StringUtils; @Data public class NonManoFolderType { @@ -32,4 +33,9 @@ public class NonManoFolderType { public String getPath() { return String.format("Artifacts/%s/%s", type, location); } + + + public boolean isValid() { + return StringUtils.isNotBlank(location) && StringUtils.isNotBlank(type); + } } |