Class SecurityEntityImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
- All Implemented Interfaces:
Serializable
,SecurityEntity
- Direct Known Subclasses:
AbstractTurbineSecurityEntityImpl
,BasicGroupImpl
,BasicUserImpl
,DynamicPermissionImpl
,DynamicRoleImpl
,TurbinePermissionImpl
Base class for all objects implementing SecurityEnitity. This class
automatically lowercases the name. So the permission "EDIT" will equal "eDit"
and "edit";
- Version:
- $Id$
- Author:
- Eric Pugh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this object is equal to anothergetId()
Get the Id of the SecurityEntity.getName()
Get the Name of the SecurityEntity.int
hashCode()
Calculate a hash code for this objectvoid
Sets the Id of the SecurityEntity.void
Pass in the name for this entity.toString()
-
Constructor Details
-
SecurityEntityImpl
public SecurityEntityImpl()
-
-
Method Details
-
getId
Description copied from interface:SecurityEntity
Get the Id of the SecurityEntity.- Specified by:
getId
in interfaceSecurityEntity
- Returns:
- object id
-
setId
Description copied from interface:SecurityEntity
Sets the Id of the SecurityEntity.- Specified by:
setId
in interfaceSecurityEntity
- Parameters:
id
- the object id
-
getName
Description copied from interface:SecurityEntity
Get the Name of the SecurityEntity.- Specified by:
getName
in interfaceSecurityEntity
- Returns:
- object name
-
setName
Pass in the name for this entity. Also lowercases it.- Specified by:
setName
in interfaceSecurityEntity
- Parameters:
name
- name of entity- Throws:
IllegalArgumentException
- must provide a name
-
toString
-
equals
Check if this object is equal to another -
hashCode
public int hashCode()Calculate a hash code for this object
-