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

java.lang.Object
  extended by org.apache.cocoon.components.source.helpers.AbstractSourcePermission
All Implemented Interfaces:
SourcePermission
Direct Known Subclasses:
GroupSourcePermission, PrincipalSourcePermission

public abstract class AbstractSourcePermission
extends Object
implements SourcePermission

This class is an abstract implementation of a source permission

Version:
CVS $Id: AbstractSourcePermission.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
AbstractSourcePermission()
           
 
Method Summary
 String getPrivilege()
          Returns the privilege of the permission
 boolean isInheritable()
          Returns the inheritable flag
 boolean isNegative()
          Returns the negative flag
 void setInheritable(boolean inheritable)
          Sets the inheritable flag
 void setNegative(boolean negative)
          Sets the negative flag
 void setPrivilege(String privilege)
          Sets the privilege of the permission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSourcePermission

public AbstractSourcePermission()
Method Detail

setPrivilege

public void setPrivilege(String privilege)
Sets the privilege of the permission

Specified by:
setPrivilege in interface SourcePermission
Parameters:
privilege - Privilege of the permission

getPrivilege

public String getPrivilege()
Returns the privilege of the permission

Specified by:
getPrivilege in interface SourcePermission
Returns:
Privilege of the permission

setInheritable

public void setInheritable(boolean inheritable)
Sets the inheritable flag

Specified by:
setInheritable in interface SourcePermission
Parameters:
inheritable - If the permission is inheritable

isInheritable

public boolean isInheritable()
Returns the inheritable flag

Specified by:
isInheritable in interface SourcePermission
Returns:
If the permission is inheritable

setNegative

public void setNegative(boolean negative)
Sets the negative flag

Specified by:
setNegative in interface SourcePermission
Parameters:
negative - If the permission is a negative permission

isNegative

public boolean isNegative()
Returns the negative flag

Specified by:
isNegative in interface SourcePermission
Returns:
If the permission is a negative permission


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