public class

CumulativePermission

extends AbstractPermission
java.lang.Object
   ↳ org.springframework.security.acls.domain.AbstractPermission
     ↳ org.springframework.security.acls.domain.CumulativePermission

Class Overview

Represents a Permission that is constructed at runtime from other permissions.

Methods return this, in order to facilitate method chaining.

Summary

[Expand]
Inherited Constants
From interface org.springframework.security.acls.model.Permission
[Expand]
Inherited Fields
From class org.springframework.security.acls.domain.AbstractPermission
Public Constructors
CumulativePermission()
Public Methods
CumulativePermission clear(Permission permission)
CumulativePermission clear()
String getPattern()
Returns a 32-character long bit pattern String representing this permission.
CumulativePermission set(Permission permission)
[Expand]
Inherited Methods
From class org.springframework.security.acls.domain.AbstractPermission
From class java.lang.Object
From interface org.springframework.security.acls.model.Permission

Public Constructors

public CumulativePermission ()

Public Methods

public CumulativePermission clear (Permission permission)

public CumulativePermission clear ()

public String getPattern ()

Returns a 32-character long bit pattern String representing this permission.

Implementations are free to format the pattern as they see fit, although under no circumstances may RESERVED_OFF or RESERVED_ON be used within the pattern. An exemption is in the case of RESERVED_OFF which is used to denote a bit that is off (clear). Implementations may also elect to use RESERVED_ON internally for computation purposes, although this method may not return any String containing RESERVED_ON.

The returned String must be 32 characters in length.

This method is only used for user interface and logging purposes. It is not used in any permission calculations. Therefore, duplication of characters within the output is permitted.

Returns
  • a 32-character bit pattern

public CumulativePermission set (Permission permission)