2 *******************************************************************
4 * Copyright 2015 Samsung Electronics All Rights Reserved.
6 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
23 package org.iotivity.base;
25 import java.io.Serializable;
26 import java.util.List;
27 import java.util.Arrays;
29 public class OicSecAcl implements Serializable {
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;
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;
48 public String getSubject() {
52 public void setSubject(String subject) {
53 this.subject = subject;
56 public List<String> getOwners() {
60 public void setOwners(List<String> owners) {
64 public List<String> getRecurrences() {
68 public void setRecurrences(List<String> recurrences) {
69 this.recurrences = recurrences;
72 public List<String> getPeriods() {
76 public void setPeriods(List<String> periods) {
77 this.periods = periods;
80 public int getPermission() {
81 return this.permission;
84 public void setPermission(int permission) {
85 this.permission = permission;
88 public List<String> getResources() {
92 public void setResources(List<String> resources) {
93 this.resources = resources;
96 public int getResourcesCount() {
97 return this.resources.size();
100 public String getResources(int i) {
101 return this.resources.get(i);
104 public int getPeriodsCount() {
105 return this.periods.size();
108 public String getPeriods(int i) {
109 return this.periods.get(i);
112 public String getRecurrences(int i) {
113 return this.recurrences.get(i);
116 public int getOwnersCount() {
117 return this.owners.size();
120 public String getOwners(int i) {
121 return this.owners.get(i);