Class JpaPermission
- java.lang.Object
-
- org.apache.archiva.redback.rbac.jpa.model.JpaPermission
-
- All Implemented Interfaces:
Serializable,Permission
@Entity public class JpaPermission extends Object implements Permission, Serializable
Created by martin on 25.09.16.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)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.inthashCode()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)
-
-
-
Constructor Detail
-
JpaPermission
public JpaPermission()
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:PermissionGet the short name of the permission. NOTE: This field is considered the Primary Key for this object.- Specified by:
getNamein interfacePermission- Returns:
- the short name for this permission.
-
setName
public void setName(String name)
Description copied from interface:PermissionSet the short name for this permission.- Specified by:
setNamein interfacePermission
-
getDescription
public String getDescription()
Description copied from interface:PermissionLong description of the Permission- Specified by:
getDescriptionin interfacePermission
-
setDescription
public void setDescription(String description)
Description copied from interface:PermissionSet null- Specified by:
setDescriptionin interfacePermission
-
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.
-
getOperation
public Operation getOperation()
Description copied from interface:PermissionOperation that this permission is authorizing- Specified by:
getOperationin interfacePermission
-
setOperation
public void setOperation(Operation operation)
Description copied from interface:PermissionSet null- Specified by:
setOperationin interfacePermission
-
getResource
public Resource getResource()
Description copied from interface:PermissionThis is the resource associated with this permission. Implementors must always supply a Resource.- Specified by:
getResourcein interfacePermission- Returns:
- the Resource.
-
setResource
public void setResource(Resource resource)
- Specified by:
setResourcein interfacePermission
-
-