[POLICY-122] Policy GUI Fixes
[policy/engine.git] / PolicyEngineAPI / src / main / java / org / openecomp / policy / api / PolicyResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21
22 package org.openecomp.policy.api;
23
24 import java.util.Map;
25
26 /**
27  * Defines the objects that represent PolicyEngine Response elements. PolicyResponse communicates the PolicyResponseStatus,
28  * PolicyResponseMessage, ActionAdvised, ActionTaken and RequestAttributes. 
29  * 
30  * @version 0.3
31  */
32 public interface PolicyResponse {
33         /**
34          * Gets the {@link org.openecomp.policy.api.PolicyResponseStatus} associated with this <code>PolicyResponse</code>.
35          * 
36          * @return the <code>PolicyResponseStatus</code> associated with this <code>PolicyResponse</code>
37          */
38         public PolicyResponseStatus getPolicyResponseStatus();
39         
40         /**
41          * Gets the <code>Map</code> of <code>String,String</code> which consists of ActionAdvised in this <code>PolicyResponse</code>.
42          * If there is no ActionAdvised this method must return an empty <code>Map</code>.
43          * 
44          * @return the <code>Map</code> of <code>String,String</code> which consists of AdviceAttributes in <code>PolicyResponse</code>
45          */
46         public Map<String,String> getActionAdvised();
47         
48         /**
49          * Gets the <code>Map</code> of <code>String,String</code> which consists of ActionTaken in this <code>PolicyResponse</code>.
50          * If there are no ActionTaken this method must return an empty <code>Map</code>.
51          * 
52          * @return the <code>Map</code> of <code>String,String</code> which consists of ActionTaken in <code>PolicyResponse</code>
53          */
54         public Map<String,String> getActionTaken();
55         
56         /**
57          * Gets the <code>Map</code> of <code>String,String</code> which consists of RequestAttributes in this <code>PolicyResponse</code>.
58          * 
59          * @return the <code>Map</code> of <code>String,String</code> which consists of RequestAttributes from <code>PolicyResponse</code>
60          */
61         public Map<String,String> getRequestAttributes();
62         
63         /**
64          * Gets the <code>String</code> of the PolicyResponseMessage from <code>PolicyResponse</code>
65          * 
66          * @return the <code>String</code> which consists of PolicyResponseMessage from <code>PolicyResponse</code>
67          */
68         public String getPolicyResponseMessage();
69         
70         /**
71          * Returns the <code>String</code> version of the <code>PolicyResponse</code> object.
72          * 
73          *  @return <code>String</code> of the <code>PolicyResponse</code> Object.  
74          */
75         @Override
76         public String toString(); 
77 }