Interface TurbineRole
- All Superinterfaces:
Role,SecurityEntity,Serializable,TurbineUserGroupRoleEntity
- All Known Implementing Classes:
TurbineRoleImpl
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
Modifier and TypeMethodDescriptionvoidaddPermission(Permission permission) This method should only be used by a RoleManager.Get the permission that are part of this role<T extends Permission>
Set<T> Get the permission that are part of this role as SetvoidremovePermission(Permission permission) This method should only be used by a RoleManager.voidsetPermissions(PermissionSet permissionSet) Set the permission that are part of this role<T extends Permission>
voidsetPermissionsAsSet(Set<T> permissions) Set the permission that are part of this role as SetMethods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setNameMethods inherited from interface org.apache.fulcrum.security.model.turbine.entity.TurbineUserGroupRoleEntity
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSet
-
Method Details
-
getPermissions
PermissionSet getPermissions()Get the permission that are part of this role- Returns:
- a set of permissions
-
getPermissionsAsSet
Get the permission that are part of this role as Set- Returns:
- a set of permissions
-
setPermissions
Set the permission that are part of this role- Parameters:
permissionSet- a set of permissions
-
setPermissionsAsSet
Set the permission that are part of this role as Set- Type Parameters:
T- Permission- Parameters:
permissions- a set of permissions
-
addPermission
This method should only be used by a RoleManager. Not directly.- Parameters:
permission- perm to add
-
removePermission
This method should only be used by a RoleManager. Not directly.- Parameters:
permission- perm to remove
-