Class TurbineRoleImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.turbine.entity.impl.AbstractTurbineSecurityEntityImpl
org.apache.fulcrum.security.model.turbine.entity.impl.TurbineRoleImpl
- All Implemented Interfaces:
Serializable,Role,SecurityEntity,TurbineRole,TurbineUserGroupRoleEntity
public class TurbineRoleImpl extends AbstractTurbineSecurityEntityImpl implements TurbineRole
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: TurbineRole.java 437451 2006-08-27 20:20:44Z tv $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TurbineRoleImpl() -
Method Summary
Modifier and Type Method Description voidaddPermission(Permission permission)This method should only be used by a RoleManager.PermissionSetgetPermissions()Get the permission that are part of this role<T extends Permission>
Set<T>getPermissionsAsSet()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 class org.apache.fulcrum.security.model.turbine.entity.impl.AbstractTurbineSecurityEntityImpl
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSetMethods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, hashCode, setId, setName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
Constructor Details
-
TurbineRoleImpl
public TurbineRoleImpl()
-
-
Method Details
-
getPermissions
Get the permission that are part of this role- Specified by:
getPermissionsin interfaceTurbineRole- Returns:
- a set of permissions
-
getPermissionsAsSet
Get the permission that are part of this role as Set- Specified by:
getPermissionsAsSetin interfaceTurbineRole- Returns:
- a set of permissions
-
setPermissions
Set the permission that are part of this role- Specified by:
setPermissionsin interfaceTurbineRole- Parameters:
permissionSet- a set of permissions
-
setPermissionsAsSet
Set the permission that are part of this role as Set- Specified by:
setPermissionsAsSetin interfaceTurbineRole- Type Parameters:
T- Permission- Parameters:
permissions- a set of permissions
-
addPermission
This method should only be used by a RoleManager. Not directly.- Specified by:
addPermissionin interfaceTurbineRole- Parameters:
permission- the permission to add
-
removePermission
This method should only be used by a RoleManager. Not directly.- Specified by:
removePermissionin interfaceTurbineRole- Parameters:
permission- the permission to remove
-