Package org.apache.archiva.redback.rbac
Interface Permission
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JpaPermission
,MemoryPermission
public interface Permission extends Serializable
Permission A permission is the wrapper for an operation and a resource effectively saying that the operation is authorized for that resource. P(Operation, Resource)- Author:
- Jesse McConnell, Joakim Erdfelt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Long description of the PermissionString
getName()
Get the short name of the permission.Operation
getOperation()
Operation that this permission is authorizingResource
getResource()
This is the resource associated with this permission.boolean
isPermanent()
Test to see if the object is a permanent object or not.void
setDescription(String description)
Set nullvoid
setName(String name)
Set the short name for this permission.void
setOperation(Operation operation)
Set nullvoid
setPermanent(boolean permanent)
Set flag indicating if the object is a permanent object or not.void
setResource(Resource resource)
-
-
-
Method Detail
-
getDescription
String getDescription()
Long description of the Permission
-
getName
String getName()
Get the short name of the permission. NOTE: This field is considered the Primary Key for this object.- Returns:
- the short name for this permission.
-
getOperation
Operation getOperation()
Operation that this permission is authorizing
-
getResource
Resource getResource()
This is the resource associated with this permission. Implementors must always supply a Resource.- Returns:
- the Resource.
-
setDescription
void setDescription(String description)
Set null- Parameters:
description
-
-
setOperation
void setOperation(Operation operation)
Set null- Parameters:
operation
-
-
setResource
void setResource(Resource resource)
- Parameters:
resource
-
-
isPermanent
boolean isPermanent()
Test to see if the object is a permanent object or not.- Returns:
- true if the object is permanent.
-
setPermanent
void setPermanent(boolean permanent)
Set flag indicating if the object is a permanent object or not.- Parameters:
permanent
- true if the object is permanent.
-
-