blob: 995e3d44be0d540a6cb0ffe01432ed282a3c76d0 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.cocoon.components.source.helpers;
/**
* This class represents a source permission for groups
*
* @author <a href="mailto:stephan@apache.org">Stephan Michels</a>
* @version CVS $Id$
*/
public class GroupSourcePermission extends AbstractSourcePermission {
private String group;
/**
* Creates a new permission
*
* @param group Group of the permission
* @param privilege Privilege of the permission
* @param inheritable If the permission is inheritable
* @param negative If the permission is negative
*/
public GroupSourcePermission(String group, String privilege,
boolean inheritable, boolean negative) {
this.group = group;
setPrivilege(privilege);
setInheritable(inheritable);
setNegative(negative);
}
/**
* Sets the group of users for the permission
*
* @param group Group of users
*/
public void setGroup(String group) {
this.group = group;
}
/**
* Returns the group of users for the permission
*
* @return Group of users
*/
public String getGroup() {
return this.group;
}
}