Statistics
| Branch: | Tag: | Revision:

root / src / org / gss_project / gss / web / client / rest / resource / PermissionHolder.java @ 1206:292dec4eae08

History | View | Annotate | Download (2.2 kB)

1
/*
2
 * Copyright 2009 Electronic Business Systems Ltd.
3
 *
4
 * This file is part of GSS.
5
 *
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.
10
 *
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.
15
 *
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/>.
18
 */
19
package org.gss_project.gss.web.client.rest.resource;
20

    
21
import java.io.Serializable;
22

    
23

    
24
/**
25
 * @author kman
26
 *
27
 */
28
public class PermissionHolder implements Serializable{
29

    
30
        private String user;
31
        private String group;
32
        private boolean read;
33
        private boolean write;
34
        private boolean modifyACL;
35

    
36
        /**
37
         * Retrieve the user.
38
         *
39
         * @return the user
40
         */
41
        public String getUser() {
42
                return user;
43
        }
44

    
45
        /**
46
         * Modify the user.
47
         *
48
         * @param aUser the user to set
49
         */
50
        public void setUser(String aUser) {
51
                user = aUser;
52
        }
53

    
54
        /**
55
         * Retrieve the group.
56
         *
57
         * @return the group
58
         */
59
        public String getGroup() {
60
                return group;
61
        }
62

    
63
        /**
64
         * Modify the group.
65
         *
66
         * @param aGroup the group to set
67
         */
68
        public void setGroup(String aGroup) {
69
                group = aGroup;
70
        }
71

    
72
        /**
73
         * Retrieve the read.
74
         *
75
         * @return the read
76
         */
77
        public boolean isRead() {
78
                return read;
79
        }
80

    
81
        /**
82
         * Modify the read.
83
         *
84
         * @param aRead the read to set
85
         */
86
        public void setRead(boolean aRead) {
87
                read = aRead;
88
        }
89

    
90
        /**
91
         * Retrieve the write.
92
         *
93
         * @return the write
94
         */
95
        public boolean isWrite() {
96
                return write;
97
        }
98

    
99
        /**
100
         * Modify the write.
101
         *
102
         * @param aWrite the write to set
103
         */
104
        public void setWrite(boolean aWrite) {
105
                write = aWrite;
106
        }
107

    
108
        /**
109
         * Retrieve the modifyACL.
110
         *
111
         * @return the modifyACL
112
         */
113
        public boolean isModifyACL() {
114
                return modifyACL;
115
        }
116

    
117
        /**
118
         * Modify the modifyACL.
119
         *
120
         * @param aModifyACL the modifyACL to set
121
         */
122
        public void setModifyACL(boolean aModifyACL) {
123
                modifyACL = aModifyACL;
124
        }
125

    
126
}