/*- * ============LICENSE_START======================================================= * PolicyEngineAPI * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= */ package org.openecomp.policy.api; import java.util.Map; /** * Defines the objects that represent PolicyEngine Response elements. PolicyResponse communicates the PolicyResponseStatus, * PolicyResponseMessage, ActionAdvised, ActionTaken and RequestAttributes. * * @version 0.3 */ public interface PolicyResponse { /** * Gets the {@link org.openecomp.policy.api.PolicyResponseStatus} associated with this PolicyResponse. * * @return the PolicyResponseStatus associated with this PolicyResponse */ public PolicyResponseStatus getPolicyResponseStatus(); /** * Gets the Map of String,String which consists of ActionAdvised in this PolicyResponse. * If there is no ActionAdvised this method must return an empty Map. * * @return the Map of String,String which consists of AdviceAttributes in PolicyResponse */ public Map getActionAdvised(); /** * Gets the Map of String,String which consists of ActionTaken in this PolicyResponse. * If there are no ActionTaken this method must return an empty Map. * * @return the Map of String,String which consists of ActionTaken in PolicyResponse */ public Map getActionTaken(); /** * Gets the Map of String,String which consists of RequestAttributes in this PolicyResponse. * * @return the Map of String,String which consists of RequestAttributes from PolicyResponse */ public Map getRequestAttributes(); /** * Gets the String of the PolicyResponseMessage from PolicyResponse * * @return the String which consists of PolicyResponseMessage from PolicyResponse */ public String getPolicyResponseMessage(); /** * Returns the String version of the PolicyResponse object. * * @return String of the PolicyResponse Object. */ @Override public String toString(); }