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 SummaryConstructors Constructor Description SecurityEntityImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Check if this object is equal to anotherObjectgetId()Get the Id of the SecurityEntity.StringgetName()Get the Name of the SecurityEntity.inthashCode()Calculate a hash code for this objectvoidsetId(Object id)Sets the Id of the SecurityEntity.voidsetName(String name)Pass in the name for this entity.StringtoString()
 
- 
- 
- 
Constructor Detail- 
SecurityEntityImplpublic SecurityEntityImpl() 
 
- 
 - 
Method Detail- 
getIdpublic Object getId() Description copied from interface:SecurityEntityGet the Id of the SecurityEntity.- Specified by:
- getIdin interface- SecurityEntity
- Returns:
- object id
 
 - 
setIdpublic void setId(Object id) Description copied from interface:SecurityEntitySets the Id of the SecurityEntity.- Specified by:
- setIdin interface- SecurityEntity
- Parameters:
- id- the object id
 
 - 
getNamepublic String getName() Description copied from interface:SecurityEntityGet the Name of the SecurityEntity.- Specified by:
- getNamein interface- SecurityEntity
- Returns:
- object name
 
 - 
setNamepublic void setName(String name) throws IllegalArgumentException Pass in the name for this entity. Also lowercases it.- Specified by:
- setNamein interface- SecurityEntity
- Parameters:
- name- name of entity
- Throws:
- IllegalArgumentException- must provide a name
 
 - 
equalspublic boolean equals(Object o) Check if this object is equal to another- Overrides:
- equalsin class- Object
- See Also:
- Object.equals(java.lang.Object)
 
 - 
hashCodepublic int hashCode() Calculate a hash code for this object- Overrides:
- hashCodein class- Object
- See Also:
- Object.hashCode()
 
 
- 
 
-