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

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

public class PrincipalSourcePermission
extends AbstractSourcePermission

This class represents a source permission for users

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

Field Summary
static String PRINCIPAL_ALL
           
static String PRINCIPAL_GUEST
           
static String PRINCIPAL_SELF
           
 
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
PrincipalSourcePermission(String principal, String privilege, boolean inheritable, boolean negative)
          Creates a new permission
 
Method Summary
 String getPrincipal()
          Returns the principal of the permission
 void setPrincipal(String principal)
          Sets the principal of 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
 

Field Detail

PRINCIPAL_SELF

public static final String PRINCIPAL_SELF
See Also:
Constant Field Values

PRINCIPAL_ALL

public static final String PRINCIPAL_ALL
See Also:
Constant Field Values

PRINCIPAL_GUEST

public static final String PRINCIPAL_GUEST
See Also:
Constant Field Values
Constructor Detail

PrincipalSourcePermission

public PrincipalSourcePermission(String principal,
                                 String privilege,
                                 boolean inheritable,
                                 boolean negative)
Creates a new permission

Parameters:
principal - Principal of the permission
privilege - Privilege of the permission
inheritable - If the permission is inheritable
negative - If the permission is negative
Method Detail

setPrincipal

public void setPrincipal(String principal)
Sets the principal of the permission

Parameters:
principal - Principal of the permission

getPrincipal

public String getPrincipal()
Returns the principal of the permission

Returns:
Principal of the permission


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