info.magnolia.jaas.principal
Class EntityImpl

java.lang.Object
  extended by info.magnolia.jaas.principal.EntityImpl
All Implemented Interfaces:
Entity, Serializable, Principal

public class EntityImpl
extends Object
implements Entity

Implementation fo the security entity.

Author:
Sameer Charles $Id: EntityImpl.java 41137 2011-01-06 18:19:25Z gjoseph $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface info.magnolia.cms.security.auth.Entity
ADDRESS_LINE, EMAIL, FULL_NAME, LANGUAGE, LOCALE, NAME, PASSWORD
 
Constructor Summary
EntityImpl()
           
 
Method Summary
 void addProperty(String key, Object value)
           
 String getName()
          Gets name given to this principal.
 Object getProperty(String key)
           
 void setName(String name)
          Deprecated. use addProperty(NAME, name)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Constructor Detail

EntityImpl

public EntityImpl()
Method Detail

getName

public String getName()
Gets name given to this principal.

Specified by:
getName in interface Entity
Specified by:
getName in interface Principal
Returns:
name

setName

public void setName(String name)
Deprecated. use addProperty(NAME, name)

Specified by:
setName in interface Entity

addProperty

public void addProperty(String key,
                        Object value)
Specified by:
addProperty in interface Entity

getProperty

public Object getProperty(String key)
Specified by:
getProperty in interface Entity
Returns:
the property's value, or null if undefined

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.