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 booleanequals(Object other)Method equals.StringgetDescription()Get the description field.StringgetId()Get the id field.StringgetName()Get the name field.StringgetOperation()Get the id of the operation for this permission.StringgetResource()Get the id of the resource for this permission, can accept ${resource} for templates.inthashCode()Method hashCode.booleanisPermanent()Get this permission should persist even if referring roles are removed.voidsetDescription(String description)Set the description field.voidsetId(String id)Set the id field.voidsetName(String name)Set the name field.voidsetOperation(String operation)Set the id of the operation for this permission.voidsetPermanent(boolean permanent)Set this permission should persist even if referring roles are removed.voidsetResource(String resource)Set the id of the resource for this permission, can accept ${resource} for templates.StringtoString()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-
-
-