org.apache.cocoon.components.source.helpers
Interface SourcePermission

All Known Implementing Classes:
AbstractSourcePermission, GroupSourcePermission, PrincipalSourcePermission

public interface SourcePermission

This interface represents a permission for a source

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

Field Summary
static String PRIVILEGE_ALL
           
static String PRIVILEGE_CREATE_CONTENT
           
static String PRIVILEGE_CREATE_PROPERTY
           
static String PRIVILEGE_CREATE_SOURCE
           
static String PRIVILEGE_GRANT_PERMISSION
           
static String PRIVILEGE_LOCK_SOURCE
           
static String PRIVILEGE_MODIFY_CONTENT
           
static String PRIVILEGE_MODIFY_PROPERTY
           
static String PRIVILEGE_READ
           
static String PRIVILEGE_READ_ACL
           
static String PRIVILEGE_READ_CONTENT
           
static String PRIVILEGE_READ_LOCKS
           
static String PRIVILEGE_READ_PROPERTY
           
static String PRIVILEGE_READ_SOURCE
           
static String PRIVILEGE_REMOVE_CONTENT
           
static String PRIVILEGE_REMOVE_PROPERTY
           
static String PRIVILEGE_REMOVE_SOURCE
           
static String PRIVILEGE_REVOKE_PERMISSION
           
static String PRIVILEGE_WRITE
           
static String PRIVILEGE_WRITE_ACL
           
 
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
 

Field Detail

PRIVILEGE_ALL

static final String PRIVILEGE_ALL
See Also:
Constant Field Values

PRIVILEGE_READ

static final String PRIVILEGE_READ
See Also:
Constant Field Values

PRIVILEGE_WRITE

static final String PRIVILEGE_WRITE
See Also:
Constant Field Values

PRIVILEGE_READ_ACL

static final String PRIVILEGE_READ_ACL
See Also:
Constant Field Values

PRIVILEGE_WRITE_ACL

static final String PRIVILEGE_WRITE_ACL
See Also:
Constant Field Values

PRIVILEGE_READ_SOURCE

static final String PRIVILEGE_READ_SOURCE
See Also:
Constant Field Values

PRIVILEGE_CREATE_SOURCE

static final String PRIVILEGE_CREATE_SOURCE
See Also:
Constant Field Values

PRIVILEGE_REMOVE_SOURCE

static final String PRIVILEGE_REMOVE_SOURCE
See Also:
Constant Field Values

PRIVILEGE_LOCK_SOURCE

static final String PRIVILEGE_LOCK_SOURCE
See Also:
Constant Field Values

PRIVILEGE_READ_LOCKS

static final String PRIVILEGE_READ_LOCKS
See Also:
Constant Field Values

PRIVILEGE_READ_PROPERTY

static final String PRIVILEGE_READ_PROPERTY
See Also:
Constant Field Values

PRIVILEGE_CREATE_PROPERTY

static final String PRIVILEGE_CREATE_PROPERTY
See Also:
Constant Field Values

PRIVILEGE_MODIFY_PROPERTY

static final String PRIVILEGE_MODIFY_PROPERTY
See Also:
Constant Field Values

PRIVILEGE_REMOVE_PROPERTY

static final String PRIVILEGE_REMOVE_PROPERTY
See Also:
Constant Field Values

PRIVILEGE_READ_CONTENT

static final String PRIVILEGE_READ_CONTENT
See Also:
Constant Field Values

PRIVILEGE_CREATE_CONTENT

static final String PRIVILEGE_CREATE_CONTENT
See Also:
Constant Field Values

PRIVILEGE_MODIFY_CONTENT

static final String PRIVILEGE_MODIFY_CONTENT
See Also:
Constant Field Values

PRIVILEGE_REMOVE_CONTENT

static final String PRIVILEGE_REMOVE_CONTENT
See Also:
Constant Field Values

PRIVILEGE_GRANT_PERMISSION

static final String PRIVILEGE_GRANT_PERMISSION
See Also:
Constant Field Values

PRIVILEGE_REVOKE_PERMISSION

static final String PRIVILEGE_REVOKE_PERMISSION
See Also:
Constant Field Values
Method Detail

setPrivilege

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

Parameters:
privilege - Privilege of the permission

getPrivilege

String getPrivilege()
Returns the privilege of the permission

Returns:
Privilege of the permission

setInheritable

void setInheritable(boolean inheritable)
Sets the inheritable flag

Parameters:
inheritable - If the permission is inheritable

isInheritable

boolean isInheritable()
Returns the inheritable flag

Returns:
If the permission is inheritable

setNegative

void setNegative(boolean negative)
Sets the negative flag

Parameters:
negative - If the permission is a negative permission

isNegative

boolean isNegative()
Returns the negative flag

Returns:
If the permission is a negative permission


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