Spring Security Framework

org.springframework.security.acls.domain
Class BasePermission

java.lang.Object
  extended by org.springframework.security.acls.domain.AbstractPermission
      extended by org.springframework.security.acls.domain.BasePermission
All Implemented Interfaces:
Serializable, Permission

public class BasePermission
extends AbstractPermission

A set of standard permissions.

You may subclass this class to add additional permissions, or use this class as a guide for creating your own permission classes.

Version:
$Id$
Author:
Ben Alex
See Also:
Serialized Form

Field Summary
static Permission ADMINISTRATION
           
static Permission CREATE
           
protected static DefaultPermissionFactory defaultPermissionFactory
           
static Permission DELETE
           
static Permission READ
           
static Permission WRITE
           
 
Fields inherited from class org.springframework.security.acls.domain.AbstractPermission
code, mask
 
Fields inherited from interface org.springframework.security.acls.Permission
RESERVED_OFF, RESERVED_ON, THIRTY_TWO_RESERVED_OFF
 
Constructor Summary
protected BasePermission(int mask, char code)
           
 
Method Summary
static Permission buildFromMask(int mask)
           
static Permission[] buildFromMask(int[] masks)
           
static Permission buildFromName(String name)
           
static Permission[] buildFromName(String[] names)
           
protected static void registerPermissionsFor(Class subClass)
           
 
Methods inherited from class org.springframework.security.acls.domain.AbstractPermission
equals, getMask, getPattern, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

READ

public static final Permission READ

WRITE

public static final Permission WRITE

CREATE

public static final Permission CREATE

DELETE

public static final Permission DELETE

ADMINISTRATION

public static final Permission ADMINISTRATION

defaultPermissionFactory

protected static DefaultPermissionFactory defaultPermissionFactory
Constructor Detail

BasePermission

protected BasePermission(int mask,
                         char code)
Method Detail

registerPermissionsFor

protected static final void registerPermissionsFor(Class subClass)

buildFromMask

public static final Permission buildFromMask(int mask)

buildFromMask

public static final Permission[] buildFromMask(int[] masks)

buildFromName

public static final Permission buildFromName(String name)

buildFromName

public static final Permission[] buildFromName(String[] names)

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.