[POLICY-122] Policy GUI Fixes
[policy/engine.git] / ECOMP-XACML / src / main / java / org / openecomp / policy / xacml / api / pap / EcompPAPPolicy.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ECOMP-XACML
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 package org.openecomp.policy.xacml.api.pap;
21
22 import java.net.URI;
23 import java.util.List;
24 import java.util.Map;
25
26 import org.openecomp.policy.xacml.std.pap.StdPAPPolicy;
27
28 import com.fasterxml.jackson.annotation.JsonSubTypes;
29 import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
31
32 /*
33  * The following allows us to use Jackson to convert sub-types of this type into JSON and back to objects.
34  */
35 @JsonTypeInfo(  
36             use = JsonTypeInfo.Id.NAME,  
37             include = JsonTypeInfo.As.PROPERTY,  
38             property = "PAPPolicyType")  
39 @JsonSubTypes({  
40             @Type(value = StdPAPPolicy.class, name = "StdPAPPolicy") })  
41 public interface EcompPAPPolicy {
42         
43         public String getPolicyName();
44         public String getOldPolicyFileName();
45         public String getPolicyDescription();
46         public String getEcompName();
47         public String getConfigName();
48         public Map<String, String> getDynamicFieldConfigAttributes();
49         public Map<String, String> getDynamicSettingsMap();
50         public List<String> getDynamicRuleAlgorithmLabels();
51         public List<String> getDynamicRuleAlgorithmCombo();
52         public List<String> getDynamicRuleAlgorithmField1();
53         public List<String> getDynamicRuleAlgorithmField2();
54         public List<Object> getDynamicVariableList();
55         public List<String> getDataTypeList();
56         public String getConfigBodyData();
57         public String getPolicyID();
58         public String getRuleID();
59         public String getConfigType();
60         public Boolean isEditPolicy();
61         public Boolean isDraft();
62         public String getVersion();
63         public String getDomainDir();
64         public String getConfigPolicyType();
65         public String getJsonBody();
66         public Integer getHighestVersion();
67         public URI getLocation();
68         public String getActionPerformer();
69         public String getActionAttribute();
70         public String getActionBody();
71         public Map<String, String> getDropDownMap();
72         public String getActionDictHeader();
73         public String getActionDictType();
74         public String getActionDictUrl();
75         public String getActionDictMethod();
76         public String getServiceType();
77         public String getUuid();
78         public String getMsLocation();
79     public String getPriority();        
80     public String getDeleteCondition();
81     public String getDictionaryType();
82     public String getDictionary();
83     public String getDictionaryFields();
84     
85         public String getRiskLevel();
86         public String getGuard();
87         public String getRiskType();
88         public String getTTLDate();
89 }