2 * //******************************************************************
4 * // Copyright 2016 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 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 package org.iotivity.cloud.accountserver.db;
24 public class GroupTable {
27 private Object midlist;
28 private Object dilist;
37 * API to initialize group table instance
42 * member ID list as a form of array
44 * device ID list as a form of array
52 public GroupTable(String gid, Object midlist, Object dilist, String gmid,
53 String gacl, String gtype) {
55 this.midlist = midlist;
67 public String getGid() {
77 public void setGid(Object gid) {
78 this.gid = gid.toString();
82 * API to get member ID list of the group
84 * @return member ID list
86 public Object getMidlist() {
91 * API to set member ID list of the group
94 * member ID list to be set
96 public void setMidlist(Object midlist) {
97 this.midlist = midlist;
101 * API to get device ID list of the group
103 * @return device ID list
105 public Object getDilist() {
110 * API to set device ID list of the group
113 * device ID list to be set
115 public void setDilist(Object dilist) {
116 this.dilist = dilist;
120 * API to get the group master ID
122 * @return group master ID
124 public String getGmid() {
129 * API to set the master ID of the group
132 * group master ID to be set
134 public void setGmid(Object gmid) {
135 this.gmid = gmid.toString();
139 * API to get group ACL
143 public String getGacl() {
148 * API to set group ACL of the group
151 * group ACL to be set
153 public void setGacl(Object gacl) {
154 this.gacl = gacl.toString();
158 * API to get group type
162 public String getGtype() {
167 * API to set group type
170 * group type to be set
172 public void setGtype(Object gtype) {
173 this.gtype = gtype.toString();