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 boolean
equals(Object o)
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.int
hashCode()
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)
-
-
-
Constructor Detail
-
JpaPermission
public JpaPermission()
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Permission
Get the short name of the permission. NOTE: This field is considered the Primary Key for this object.- Specified by:
getName
in interfacePermission
- Returns:
- the short name for this permission.
-
setName
public void setName(String name)
Description copied from interface:Permission
Set the short name for this permission.- Specified by:
setName
in interfacePermission
-
getDescription
public String getDescription()
Description copied from interface:Permission
Long description of the Permission- Specified by:
getDescription
in interfacePermission
-
setDescription
public void setDescription(String description)
Description copied from interface:Permission
Set null- Specified by:
setDescription
in interfacePermission
-
isPermanent
public boolean isPermanent()
Description copied from interface:Permission
Test to see if the object is a permanent object or not.- Specified by:
isPermanent
in interfacePermission
- Returns:
- true if the object is permanent.
-
setPermanent
public void setPermanent(boolean permanent)
Description copied from interface:Permission
Set flag indicating if the object is a permanent object or not.- Specified by:
setPermanent
in interfacePermission
- Parameters:
permanent
- true if the object is permanent.
-
getOperation
public Operation getOperation()
Description copied from interface:Permission
Operation that this permission is authorizing- Specified by:
getOperation
in interfacePermission
-
setOperation
public void setOperation(Operation operation)
Description copied from interface:Permission
Set null- Specified by:
setOperation
in interfacePermission
-
getResource
public Resource getResource()
Description copied from interface:Permission
This is the resource associated with this permission. Implementors must always supply a Resource.- Specified by:
getResource
in interfacePermission
- Returns:
- the Resource.
-
setResource
public void setResource(Resource resource)
- Specified by:
setResource
in interfacePermission
-
-