org.apache.cocoon.components.source.helpers
Class PrincipalSourcePermission
java.lang.Object
org.apache.cocoon.components.source.helpers.AbstractSourcePermission
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
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PrincipalSourcePermission
public PrincipalSourcePermission(String principal,
String privilege,
boolean inheritable,
boolean negative)
- Creates a new permission
- Parameters:
principal
- Principal of the permissionprivilege
- Privilege of the permissioninheritable
- If the permission is inheritablenegative
- If the permission is negative
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.