info.magnolia.cms.security
Interface Permission

All Superinterfaces:
Serializable
All Known Implementing Classes:
PermissionImpl

public interface Permission
extends Serializable

A permission is a collection of rights and can match paths. Defines various permission constants which can be used to build right bitsets.


Field Summary
static long ADD
           
static long ALL
          All permissions combined.
static long EXECUTE
           
static long NONE
           
static String PERMISSION_NAME_ADD
           
static String PERMISSION_NAME_ALL
           
static String PERMISSION_NAME_EXECUTE
           
static String PERMISSION_NAME_READ
           
static String PERMISSION_NAME_REMOVE
           
static String PERMISSION_NAME_SET
           
static String PERMISSION_NAME_SYNDICATE
           
static String PERMISSION_NAME_WRITE
           
static long READ
           
static long REMOVE
           
static long SET
           
static long SYNDICATE
           
static long WRITE
          All write permissions.
 
Method Summary
 UrlPattern getPattern()
           
 long getPermissions()
           
 boolean match(String path)
          True if this permission matches the path.
 void setPattern(UrlPattern value)
           
 void setPermissions(long value)
           
 

Field Detail

NONE

static final long NONE
See Also:
Constant Field Values

ADD

static final long ADD
See Also:
Constant Field Values

SET

static final long SET
See Also:
Constant Field Values

REMOVE

static final long REMOVE
See Also:
Constant Field Values

READ

static final long READ
See Also:
Constant Field Values

EXECUTE

static final long EXECUTE
See Also:
Constant Field Values

SYNDICATE

static final long SYNDICATE
See Also:
Constant Field Values

PERMISSION_NAME_ADD

static final String PERMISSION_NAME_ADD
See Also:
Constant Field Values

PERMISSION_NAME_SET

static final String PERMISSION_NAME_SET
See Also:
Constant Field Values

PERMISSION_NAME_REMOVE

static final String PERMISSION_NAME_REMOVE
See Also:
Constant Field Values

PERMISSION_NAME_READ

static final String PERMISSION_NAME_READ
See Also:
Constant Field Values

PERMISSION_NAME_EXECUTE

static final String PERMISSION_NAME_EXECUTE
See Also:
Constant Field Values

PERMISSION_NAME_SYNDICATE

static final String PERMISSION_NAME_SYNDICATE
See Also:
Constant Field Values

PERMISSION_NAME_ALL

static final String PERMISSION_NAME_ALL
See Also:
Constant Field Values

PERMISSION_NAME_WRITE

static final String PERMISSION_NAME_WRITE
See Also:
Constant Field Values

ALL

static final long ALL
All permissions combined.

See Also:
Constant Field Values

WRITE

static final long WRITE
All write permissions.

See Also:
Constant Field Values
Method Detail

setPattern

void setPattern(UrlPattern value)

getPattern

UrlPattern getPattern()

setPermissions

void setPermissions(long value)

getPermissions

long getPermissions()

match

boolean match(String path)
True if this permission matches the path.



Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.