Interface TurbinePermission
-
- All Superinterfaces:
Permission
,SecurityEntity
,Serializable
- All Known Implementing Classes:
BaseTorqueTurbinePermission
,BaseTurbinePermission
,DefaultAbstractTurbinePermission
,FulcrumAbstractTurbinePermission
,TorqueTurbinePermission
,TurbinePermission
,TurbinePermissionImpl
public interface TurbinePermission extends Permission
Represents the "turbine" model where permissions are in a many to many relationship to roles, roles are related to groups are related to users, all in many to many relationships.- Version:
- $Id$
- Author:
- Eric Pugh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRole(Role role)
Add a role to this permissionRoleSet
getRoles()
Get the roles that this permission belongs to<T extends Role>
Set<T>getRolesAsSet()
Get the roles that this permission belongs to as Setvoid
removeRole(Role role)
Remove a role from this permissionvoid
setRoles(RoleSet roleSet)
Set the roles that this permission belongs to<T extends Role>
voidsetRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set-
Methods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
-
-
-
Method Detail
-
setRoles
void setRoles(RoleSet roleSet)
Set the roles that this permission belongs to- Parameters:
roleSet
- a set of roles
-
removeRole
void removeRole(Role role)
Remove a role from this permission- Parameters:
role
- the role to remove
-
setRolesAsSet
<T extends Role> void setRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set- Type Parameters:
T
- Role- Parameters:
roles
- a set of roles
-
getRolesAsSet
<T extends Role> Set<T> getRolesAsSet()
Get the roles that this permission belongs to as Set- Type Parameters:
T
-- Returns:
- a set of roles
-
-