Mega experimental fixes; try to stop a new smallsql connection from being opened...
[jgroupdav.git] / src / main / java / net / bionicmessage / groupdav / GroupDAVObjectHint.java
blob7ac589aab339b050ebf6582e5b57ab666228643e
1 /*
2 * GroupDAVObjectHint.java
4 * Created on 14 April 2006, 16:55
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
24 package net.bionicmessage.groupdav;
26 /**
27 * An object hint for GroupDAV Objects which stores their location
28 * and last known etag for tracking use.
29 * @author matt
31 public class GroupDAVObjectHint implements java.io.Serializable, Cloneable {
32 private String location = null;
33 private String etag = null;
34 private String uid = null;
35 private String name = null;
36 /** Creates a new instance of GroupDAVObjectHint */
37 public GroupDAVObjectHint(String uid, String name,String loc, String etag) {
38 this.location =loc;
39 this.etag = etag;
40 this.uid = uid;
41 this.name = name;
43 public void setLocation(String loc) {
44 this.location = loc;
47 public String getLocation() {
48 return location;
50 public String getEtag() {
51 return etag;
53 public void setEtag(String etag) {
54 this.etag = etag;
57 public String getUid() {
58 return uid;
61 public void setUid(String uid) {
62 this.uid = uid;
64 public void setName(String name) {
65 this.name = name;
67 public String getName() {
68 return this.name;
70 public Object clone() {
71 return new GroupDAVObjectHint(uid,name,location,etag);