Class ModelPermission
- java.lang.Object
-
- org.apache.archiva.redback.role.model.ModelPermission
-
- All Implemented Interfaces:
Serializable
public class ModelPermission extends Object implements Serializable
Class ModelPermission.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModelPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Method equals.String
getDescription()
Get the description field.String
getId()
Get the id field.String
getName()
Get the name field.String
getOperation()
Get the id of the operation for this permission.String
getResource()
Get the id of the resource for this permission, can accept ${resource} for templates.int
hashCode()
Method hashCode.boolean
isPermanent()
Get this permission should persist even if referring roles are removed.void
setDescription(String description)
Set the description field.void
setId(String id)
Set the id field.void
setName(String name)
Set the name field.void
setOperation(String operation)
Set the id of the operation for this permission.void
setPermanent(boolean permanent)
Set this permission should persist even if referring roles are removed.void
setResource(String resource)
Set the id of the resource for this permission, can accept ${resource} for templates.String
toString()
Method toString.
-
-
-
Constructor Detail
-
ModelPermission
public ModelPermission()
-
-
Method Detail
-
getDescription
public String getDescription()
Get the description field.- Returns:
- String
-
getOperation
public String getOperation()
Get the id of the operation for this permission.- Returns:
- String
-
getResource
public String getResource()
Get the id of the resource for this permission, can accept ${resource} for templates.- Returns:
- String
-
isPermanent
public boolean isPermanent()
Get this permission should persist even if referring roles are removed.- Returns:
- boolean
-
setDescription
public void setDescription(String description)
Set the description field.- Parameters:
description
-
-
setOperation
public void setOperation(String operation)
Set the id of the operation for this permission.- Parameters:
operation
-
-
setPermanent
public void setPermanent(boolean permanent)
Set this permission should persist even if referring roles are removed.- Parameters:
permanent
-
-
setResource
public void setResource(String resource)
Set the id of the resource for this permission, can accept ${resource} for templates.- Parameters:
resource
-
-
-