1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */161718packageorg.apache.jetspeed.om.registry.base;
1920// Jetspeed imports21import org.apache.jetspeed.om.registry.SecurityAllow;
2223/***24 * Interface for manipulatin the Security Allow on the registry entries25 * 26 * @author <a href="mailto:paulsp@apache.org">Paul Spencer</a>27 * @version $Id: BaseSecurityAllow.java,v 1.5 2004/02/23 03:08:26 jford Exp $28 */29publicclassBaseSecurityAllow implements SecurityAllow, java.io.Serializable
30 {
31/*** Holds value of property role. */32private String role;
3334/*** Holds value of property group. */35private String group;
3637/*** Holds value of property user. */38private String user;
3940/*** Holds value of property owner. */41privateboolean owner = false;
4243/*** Creates new BaseSecurityAllow */44publicBaseSecurityAllow()
45 {
46 }
4748/***49 * Create a new BaseSecurityAllow that sets the owner property50 *51 * @param owner Set the owner property52 */53publicBaseSecurityAllow(boolean owner)
54 {
55this.owner = owner;
56 }
5758/*** Getter for property role.59 * @return Value of property role.60 */61public String getRole()
62 {
63return role;
64 }
6566/*** Setter for property role.67 * @param role New value of property role.68 */69publicvoid setRole(String role)
70 {
71this.role = role;
72 }
7374/*** Getter for property group.75 * @return Value of property group.76 */77public String getGroup()
78 {
79return group;
80 }
8182/*** Setter for property group.83 * @param role New value of property group.84 */85publicvoid setGroup(String group)
86 {
87this.group = group;
88 }
8990/*** Getter for property user.91 * @return Value of property user.92 */93public String getUser()
94 {
95return user;
96 }
9798/*** Setter for property user.99 * @param user New value of property user.100 */101publicvoid setUser(String user)
102 {
103this.user = user;
104 }
105106/*** Getter for property owner.107 * @return Value of property owner.108 */109publicboolean isOwner()
110 {
111returnthis.owner;
112 }
113114/*** Setter for property owner.115 * @param owner New value of property owner.116 */117publicvoid setOwner(boolean owner)
118 {
119this.owner = owner;
120 }
121122 }