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
public class SecurityEntityImpl extends Object implements SecurityEntity
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecurityEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherObject
getId()
Get the Id of the SecurityEntity.String
getName()
Get the Name of the SecurityEntity.int
hashCode()
Calculate a hash code for this objectvoid
setId(Object id)
Sets the Id of the SecurityEntity.void
setName(String name)
Pass in the name for this entity.String
toString()
-
-
-
Constructor Detail
-
SecurityEntityImpl
public SecurityEntityImpl()
-
-
Method Detail
-
getId
public Object getId()
Description copied from interface:SecurityEntity
Get the Id of the SecurityEntity.- Specified by:
getId
in interfaceSecurityEntity
- Returns:
- object id
-
setId
public void setId(Object id)
Description copied from interface:SecurityEntity
Sets the Id of the SecurityEntity.- Specified by:
setId
in interfaceSecurityEntity
- Parameters:
id
- the object id
-
getName
public String getName()
Description copied from interface:SecurityEntity
Get the Name of the SecurityEntity.- Specified by:
getName
in interfaceSecurityEntity
- Returns:
- object name
-
setName
public void setName(String name) throws IllegalArgumentException
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
-
equals
public boolean equals(Object o)
Check if this object is equal to another- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Calculate a hash code for this object- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
-