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 StringgetDescription()Long description of the PermissionStringgetName()Get the short name of the permission.OperationgetOperation()Operation that this permission is authorizingResourcegetResource()This is the resource associated with this permission.booleanisPermanent()Test to see if the object is a permanent object or not.voidsetDescription(String description)Set nullvoidsetName(String name)Set the short name for this permission.voidsetOperation(Operation operation)Set nullvoidsetPermanent(boolean permanent)Set flag indicating if the object is a permanent object or not.voidsetResource(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.
-
-