info.magnolia.cms.security.auth
Interface Entity

All Superinterfaces:
Principal, Serializable
All Known Implementing Classes:
EntityImpl

public interface Entity
extends Principal, Serializable

A user entity. Defines some standard properties as user name or language.

Author:
Sameer Charles $Id: Entity.java 41137 2011-01-06 18:19:25Z gjoseph $

Field Summary
static String ADDRESS_LINE
           
static String EMAIL
           
static String FULL_NAME
           
static String LANGUAGE
           
static String LOCALE
           
static String NAME
           
static String PASSWORD
           
 
Method Summary
 void addProperty(String key, Object value)
           
 String getName()
           
 Object getProperty(String key)
           
 void setName(String name)
          Deprecated. not used - use addProperty(Entity.NAME)
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

FULL_NAME

static final String FULL_NAME
See Also:
Constant Field Values

NAME

static final String NAME
See Also:
Constant Field Values

EMAIL

static final String EMAIL
See Also:
Constant Field Values

LANGUAGE

static final String LANGUAGE
See Also:
Constant Field Values

LOCALE

static final String LOCALE
See Also:
Constant Field Values

ADDRESS_LINE

static final String ADDRESS_LINE
See Also:
Constant Field Values

PASSWORD

static final String PASSWORD
See Also:
Constant Field Values
Method Detail

getName

String getName()
Specified by:
getName in interface Principal
Returns:
the name of the entity, or a default value if no name was set.

setName

void setName(String name)
Deprecated. not used - use addProperty(Entity.NAME)


addProperty

void addProperty(String key,
                 Object value)

getProperty

Object getProperty(String key)
Returns:
the property's value, or null if undefined


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