Class MemoryPermission
- java.lang.Object
-
- org.apache.archiva.redback.rbac.memory.MemoryPermission
-
- All Implemented Interfaces:
Serializable,Permission
public class MemoryPermission extends Object implements Permission, Serializable
MemoryPermission- Author:
- Joakim Erdfelt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MemoryPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Method equalsStringgetDescription()Get nullStringgetName()Get nullOperationgetOperation()Get nullResourcegetResource()Get nullinthashCode()Method hashCodebooleanisPermanent()Test to see if the object is a permanent object or not.voidsetDescription(String description)Set nullvoidsetName(String name)Set nullvoidsetOperation(Operation operation)Set nullvoidsetPermanent(boolean permanent)Set flag indicating if the object is a permanent object or not.voidsetResource(Resource resource)Set nullStringtoString()Method toString
-
-
-
Constructor Detail
-
MemoryPermission
public MemoryPermission()
-
-
Method Detail
-
getDescription
public String getDescription()
Get null- Specified by:
getDescriptionin interfacePermission
-
getName
public String getName()
Get null- Specified by:
getNamein interfacePermission- Returns:
- the short name for this permission.
-
getOperation
public Operation getOperation()
Get null- Specified by:
getOperationin interfacePermission
-
getResource
public Resource getResource()
Get null- Specified by:
getResourcein interfacePermission- Returns:
- the Resource.
-
setDescription
public void setDescription(String description)
Set null- Specified by:
setDescriptionin interfacePermission- Parameters:
description-
-
setName
public void setName(String name)
Set null- Specified by:
setNamein interfacePermission- Parameters:
name-
-
setOperation
public void setOperation(Operation operation)
Set null- Specified by:
setOperationin interfacePermission- Parameters:
operation-
-
setResource
public void setResource(Resource resource)
Set null- Specified by:
setResourcein interfacePermission- Parameters:
resource-
-
isPermanent
public boolean isPermanent()
Description copied from interface:PermissionTest to see if the object is a permanent object or not.- Specified by:
isPermanentin interfacePermission- Returns:
- true if the object is permanent.
-
setPermanent
public void setPermanent(boolean permanent)
Description copied from interface:PermissionSet flag indicating if the object is a permanent object or not.- Specified by:
setPermanentin interfacePermission- Parameters:
permanent- true if the object is permanent.
-
-