Statistics
| Branch: | Tag: | Revision:

root / web_client / src / gr / grnet / pithos / web / client / foldertree / ContainerResource.java @ 9e8e14e4

History | View | Annotate | Download (1.6 kB)

1
/*
2
 * Copyright (c) 2011 Greek Research and Technology Network
3
 */
4

    
5
package gr.grnet.pithos.web.client.foldertree;
6

    
7
import com.google.gwt.http.client.Header;
8
import com.google.gwt.json.client.JSONObject;
9
import com.google.gwt.json.client.JSONParser;
10
import gr.grnet.pithos.web.client.foldertree.Resource;
11
import java.util.Date;
12

    
13
public class ContainerResource extends Resource {
14
    /*
15
     * The name of the container
16
     */
17
    private String name;
18

    
19
    /*
20
     * The number of objects inside the container
21
     */
22
    private long count;
23

    
24
    /*
25
     * The total size of the objects inside the container
26
     */
27
    private long bytes;
28

    
29
    /*
30
     * The last object modification date
31
     */
32
    private Date lastModified;
33

    
34
    /*
35
     * The date the container was created
36
     */
37
    private Date created;
38

    
39
    @Override
40
    public String getLastModifiedSince() {
41
        return "";
42
    }
43

    
44
    public String getName() {
45
        return name;
46
    }
47

    
48
    public long getBytes() {
49
        return bytes;
50
    }
51

    
52
    public long getCount() {
53
        return count;
54
    }
55

    
56
    public Date getCreated() {
57
        return created;
58
    }
59

    
60
    public Date getLastModified() {
61
        return lastModified;
62
    }
63

    
64
    public void setBytes(long bytes) {
65
        this.bytes = bytes;
66
    }
67

    
68
    public void setCount(long count) {
69
        this.count = count;
70
    }
71

    
72
    public void setCreated(Date created) {
73
        this.created = created;
74
    }
75

    
76
    public void setLastModified(Date lastModified) {
77
        this.lastModified = lastModified;
78
    }
79

    
80
    public void setName(String name) {
81
        this.name = name;
82
    }
83
}