Implement acl/group resource in cloud account server.
[platform/upstream/iotivity.git] / cloud / account / src / main / java / org / iotivity / cloud / accountserver / db / GroupTable.java
1 /*
2  * //******************************************************************
3  * //
4  * // Copyright 2016 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 package org.iotivity.cloud.accountserver.db;
23
24 public class GroupTable {
25
26     private String gid;
27     private Object midlist;
28     private Object dilist;
29     private String gmid;
30     private String gacl;
31     private String gtype;
32
33     public GroupTable() {
34     }
35
36     public GroupTable(String gid, Object midlist, Object dilist, String gmid,
37             String gacl, String gtype) {
38         this.gid = gid;
39         this.midlist = midlist;
40         this.dilist = dilist;
41         this.gmid = gmid;
42         this.gacl = gacl;
43         this.gtype = gtype;
44     }
45
46     public String getGid() {
47         return gid;
48     }
49
50     public void setGid(Object gid) {
51         this.gid = gid.toString();
52     }
53
54     public Object getMidlist() {
55         return midlist;
56     }
57
58     public void setMidlist(Object midlist) {
59         this.midlist = midlist;
60     }
61
62     public Object getDilist() {
63         return dilist;
64     }
65
66     public void setDilist(Object dilist) {
67         this.dilist = dilist;
68     }
69
70     public String getGmid() {
71         return gmid;
72     }
73
74     public void setGmid(Object gmid) {
75         this.gmid = gmid.toString();
76     }
77
78     public String getGacl() {
79         return gacl;
80     }
81
82     public void setGacl(Object gacl) {
83         this.gacl = gacl.toString();
84     }
85
86     public String getGtype() {
87         return gtype;
88     }
89
90     public void setGtype(Object gtype) {
91         this.gtype = gtype.toString();
92     }
93 }