Package org.apache.archiva.redback.rbac
Interface Operation
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JpaOperation,MemoryOperation
public interface Operation extends Serializable
Operation In RBAC the operation is an action or functionality that can be linked with a particular resource into an assignable Permission. Operations don't exist outside Permissions.- Author:
- Jesse McConnell, Joakim Erdfelt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDescription()Long description of an operation.StringgetName()name of the operation that is used in the act of authorization 'modify-foo', 'change-password' NOTE: This field is considered the Primary Key for this object.booleanisPermanent()Test to see if the object is a permanent object or not.voidsetDescription(String description)voidsetName(String name)Set name of the operation that is used in the act of authorization 'modify-foo', 'change-password' NOTE: This field is considered the Primary Key for this object.voidsetPermanent(boolean permanent)Set flag indicating if the object is a permanent object or not.
-
-
-
Method Detail
-
getDescription
String getDescription()
Long description of an operation.- Returns:
- String
-
getName
String getName()
name of the operation that is used in the act of authorization 'modify-foo', 'change-password' NOTE: This field is considered the Primary Key for this object.- Returns:
- the name of the operation.
-
setDescription
void setDescription(String description)
- Parameters:
description-
-
setName
void setName(String name)
Set name of the operation that is used in the act of authorization 'modify-foo', 'change-password' NOTE: This field is considered the Primary Key for this object.- Parameters:
name-
-
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.
-
-