[Simulator] Minor UI changes fixing the IOT-1087.
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / OicSecAcl.java
1 /*
2  *******************************************************************
3  *
4  * Copyright 2015 Samsung Electronics All Rights Reserved.
5  *
6  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21  */
22
23 package org.iotivity.base;
24
25 import java.io.Serializable;
26 import java.util.List;
27 import java.util.Arrays;
28
29 public class OicSecAcl implements Serializable {
30
31     private String       subject;
32     private int          permission;
33     private List<String> resources;
34     private List<String> periods;
35     private List<String> recurrences;
36     private List<String> owners;
37
38     public OicSecAcl(String subject, List<String> recurrences, List<String> periods, int permission,
39             List<String> resources, List<String> owners) {
40         this.subject = subject;
41         this.recurrences = recurrences;
42         this.periods = periods;
43         this.permission = permission;
44         this.resources = resources;
45         this.owners = owners;
46     }
47
48     public String getSubject() {
49         return this.subject;
50     }
51
52     public void setSubject(String subject) {
53         this.subject = subject;
54     }
55
56     public List<String> getOwners() {
57         return owners;
58     }
59
60     public void setOwners(List<String> owners) {
61         this.owners = owners;
62     }
63
64     public List<String> getRecurrences() {
65         return recurrences;
66     }
67
68     public void setRecurrences(List<String> recurrences) {
69         this.recurrences = recurrences;
70     }
71
72     public List<String> getPeriods() {
73         return periods;
74     }
75
76     public void setPeriods(List<String> periods) {
77         this.periods = periods;
78     }
79
80     public int getPermission() {
81         return this.permission;
82     }
83
84     public void setPermission(int permission) {
85         this.permission = permission;
86     }
87
88     public List<String> getResources() {
89         return resources;
90     }
91
92     public void setResources(List<String> resources) {
93         this.resources = resources;
94     }
95
96     public int getResourcesCount() {
97         return this.resources.size();
98     }
99
100     public String getResources(int i) {
101         return this.resources.get(i);
102     }
103
104     public int getPeriodsCount() {
105         return this.periods.size();
106     }
107
108     public String getPeriods(int i) {
109         return this.periods.get(i);
110     }
111
112     public String getRecurrences(int i) {
113         return this.recurrences.get(i);
114     }
115
116     public int getOwnersCount() {
117         return this.owners.size();
118     }
119
120     public String getOwners(int i) {
121         return this.owners.get(i);
122     }
123 }