[POLICY-22] Reorganizing drools-apps
[policy/drools-applications.git] / controlloop / common / guard / src / main / java / org / onap / policy / guard / PolicyGuardXacmlRequestAttributes.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * guard
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 package org.onap.policy.guard;
22
23
24 import com.att.research.xacml.std.annotations.XACMLAction;
25 import com.att.research.xacml.std.annotations.XACMLRequest;
26 import com.att.research.xacml.std.annotations.XACMLResource;
27 import com.att.research.xacml.std.annotations.XACMLSubject;
28
29
30
31 @XACMLRequest(ReturnPolicyIdList=true,CombinedDecision=true)
32 public class PolicyGuardXacmlRequestAttributes {
33
34                 
35                 
36
37                 public PolicyGuardXacmlRequestAttributes(String actor_id, String operation_id, String target_id,
38                                 String request_id) {
39                         super();
40                         this.actor_id = actor_id;
41                         this.operation_id = operation_id;
42                         this.target_id = target_id;
43                         this.request_id = request_id;
44                 }
45
46
47
48                 @Override
49                 public String toString() {
50                         return "PolicyGuardXacmlRequestAttributes [actor_id=" + actor_id + ", operation_id=" + operation_id
51                                         + ", target_id=" + target_id + ", request_id=" + request_id + "]";
52                 }
53
54
55
56                 //@XACMLSubject(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id")
57                 //String        userID;
58                 
59                 //@XACMLAction()
60                 //String        action;
61                 
62                 @XACMLSubject(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:actor:actor-id")
63                 String  actor_id;
64                 
65                 @XACMLAction(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:operation:operation-id")
66                 String  operation_id;
67                 
68                 //@XACMLResource(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id123")
69                 //String        resource;
70                 
71                 @XACMLResource(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:target:target-id")
72                 String  target_id;
73                 
74                 @XACMLResource(includeInResults=true, attributeId="urn:oasis:names:tc:xacml:1.0:request:request-id")
75                 String  request_id;
76
77                 public String getActor_id() {
78                         return actor_id;
79                 }
80
81
82
83                 public void setActor_id(String actor_id) {
84                         this.actor_id = actor_id;
85                 }
86
87
88
89                 public String getOperation_id() {
90                         return operation_id;
91                 }
92
93
94
95                 public void setOperation_id(String operation_id) {
96                         this.operation_id = operation_id;
97                 }
98
99
100
101                 public String getTarget_id() {
102                         return target_id;
103                 }
104
105
106
107                 public void setTarget_id(String target_id) {
108                         this.target_id = target_id;
109                 }
110
111
112
113                 public String getRequest_id() {
114                         return request_id;
115                 }
116
117
118
119                 public void setRequest_id(String request_id) {
120                         this.request_id = request_id;
121                 }
122                 
123                 
124                 
125                 
126         };
127