org.apache.cocoon.components.source.helpers
Class GroupSourcePermission

java.lang.Object
  extended by org.apache.cocoon.components.source.helpers.AbstractSourcePermission
      extended by org.apache.cocoon.components.source.helpers.GroupSourcePermission
All Implemented Interfaces:
SourcePermission

public class GroupSourcePermission
extends AbstractSourcePermission

This class represents a source permission for groups

Version:
CVS $Id: GroupSourcePermission.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Stephan Michels

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.source.helpers.SourcePermission
PRIVILEGE_ALL, PRIVILEGE_CREATE_CONTENT, PRIVILEGE_CREATE_PROPERTY, PRIVILEGE_CREATE_SOURCE, PRIVILEGE_GRANT_PERMISSION, PRIVILEGE_LOCK_SOURCE, PRIVILEGE_MODIFY_CONTENT, PRIVILEGE_MODIFY_PROPERTY, PRIVILEGE_READ, PRIVILEGE_READ_ACL, PRIVILEGE_READ_CONTENT, PRIVILEGE_READ_LOCKS, PRIVILEGE_READ_PROPERTY, PRIVILEGE_READ_SOURCE, PRIVILEGE_REMOVE_CONTENT, PRIVILEGE_REMOVE_PROPERTY, PRIVILEGE_REMOVE_SOURCE, PRIVILEGE_REVOKE_PERMISSION, PRIVILEGE_WRITE, PRIVILEGE_WRITE_ACL
 
Constructor Summary
GroupSourcePermission(String group, String privilege, boolean inheritable, boolean negative)
          Creates a new permission
 
Method Summary
 String getGroup()
          Returns the group of users for the permission
 void setGroup(String group)
          Sets the group of users for the permission
 
Methods inherited from class org.apache.cocoon.components.source.helpers.AbstractSourcePermission
getPrivilege, isInheritable, isNegative, setInheritable, setNegative, setPrivilege
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupSourcePermission

public GroupSourcePermission(String group,
                             String privilege,
                             boolean inheritable,
                             boolean negative)
Creates a new permission

Parameters:
group - Group of the permission
privilege - Privilege of the permission
inheritable - If the permission is inheritable
negative - If the permission is negative
Method Detail

setGroup

public void setGroup(String group)
Sets the group of users for the permission

Parameters:
group - Group of users

getGroup

public String getGroup()
Returns the group of users for the permission

Returns:
Group of users


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.