From 242879e2a17608f80bb88a8e34b8a361e55bb74b Mon Sep 17 00:00:00 2001 From: Geo Thomas Date: Wed, 16 Sep 2015 13:32:08 -0400 Subject: [PATCH] RESKC-842: Add new method in S2SConfigurationService to parse comma separated param values and return as a list --- .../category/BudgetCategoryContract.java" | 27 ------------------- .../api/s2s/S2SConfigurationService.java | 13 +++++++++ 2 files changed, 13 insertions(+), 27 deletions(-) delete mode 100644 "coeus-api-all/src/main\ajava/org/kuali/coeus/common/budget/api/core/category/BudgetCategoryContract.java" diff --git "a/coeus-api-all/src/main\ajava/org/kuali/coeus/common/budget/api/core/category/BudgetCategoryContract.java" "b/coeus-api-all/src/main\ajava/org/kuali/coeus/common/budget/api/core/category/BudgetCategoryContract.java" deleted file mode 100644 index 9cdaa5e..0000000 --- "a/coeus-api-all/src/main\ajava/org/kuali/coeus/common/budget/api/core/category/BudgetCategoryContract.java" +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Kuali Coeus, a comprehensive research administration system for higher education. - * - * Copyright 2005-2015 Kuali, Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ -package org.kuali.coeus.common.budget.api.core.category; - - -import org.kuali.coeus.sys.api.model.Coded; -import org.kuali.coeus.sys.api.model.Describable; - -public interface BudgetCategoryContract extends Coded, Describable { - BudgetCategoryTypeContract getBudgetCategoryType(); -} diff --git a/coeus-api-all/src/main/java/org/kuali/coeus/propdev/api/s2s/S2SConfigurationService.java b/coeus-api-all/src/main/java/org/kuali/coeus/propdev/api/s2s/S2SConfigurationService.java index 3ef2683..0602fe2 100644 --- a/coeus-api-all/src/main/java/org/kuali/coeus/propdev/api/s2s/S2SConfigurationService.java +++ b/coeus-api-all/src/main/java/org/kuali/coeus/propdev/api/s2s/S2SConfigurationService.java @@ -18,6 +18,8 @@ */ package org.kuali.coeus.propdev.api.s2s; +import java.util.List; + public interface S2SConfigurationService { /** @@ -65,4 +67,15 @@ public interface S2SConfigurationService { * @throws java.lang.IllegalArgumentException if the name is blank */ Boolean getValueAsBoolean(String name); + + /** + * This method gets a config values for the s2s application from a config name as a List of Strings. + * The name cannot be blank. This method will return the config values or + * null if the value cannot be found. + * + * @param name the name to retrieve the value for + * @return the configuration values or null + * @throws java.lang.IllegalArgumentException if the name is blank + */ + List getValuesFromCommaSeparatedParam(String name); }