2 * Copyright 2009 Electronic Business Systems Ltd.
4 * This file is part of GSS.
6 * GSS is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GSS. If not, see <http://www.gnu.org/licenses/>.
19 package org.gss_project.gss.web.client.rest.resource;
21 import com.google.gwt.json.client.JSONObject;
22 import com.google.gwt.json.client.JSONParser;
29 public class GroupUserResource extends RestResource{
31 public GroupUserResource(String aUri) {
40 * Retrieve the username.
42 * @return the username
44 public String getUsername() {
49 * Modify the username.
51 * @param aUsername the username to set
53 public void setUsername(String aUsername) {
63 public String getName() {
70 * @param aName the name to set
72 public void setName(String aName) {
81 public String getHome() {
88 * @param aHome the home to set
90 public void setHome(String aHome) {
95 public void createFromJSON(String text) {
96 JSONObject json = (JSONObject) JSONParser.parse(text);
97 name = unmarshallString(json, "name");
98 home = unmarshallString(json, "home");
99 username = unmarshallString(json, "username");
103 public String getLastModifiedSince() {