org.apache.cocoon.portal.profile.impl
Class AbstractPortalUser
java.lang.Object
org.apache.cocoon.portal.profile.impl.AbstractPortalUser
- All Implemented Interfaces:
- PortalUser, Serializable
- Direct Known Subclasses:
- StaticProfileManager.StaticPortalUser, User
- public abstract class AbstractPortalUser
- extends Object
- implements PortalUser, Serializable
Information about the current user.
This data object is used for loading the profile. It decouples the
portal from the used authentication method.
- Version:
- $Id: MapProfileLS.java 30941 2004-07-29 19:56:58Z vgritsenko $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userName
protected String userName
- The unique name of the user.
group
protected String group
userInfo
protected Map userInfo
anonymous
protected boolean anonymous
- Is this an anonymous user.
AbstractPortalUser
public AbstractPortalUser()
isAnonymous
public boolean isAnonymous()
- Description copied from interface:
PortalUser
- Is this user an anonymous user?
- Specified by:
isAnonymous
in interface PortalUser
- See Also:
PortalUser.isAnonymous()
setAnonymous
public void setAnonymous(boolean anonymous)
getGroup
public String getGroup()
- Specified by:
getGroup
in interface PortalUser
- Returns:
- Returns the group.
setGroup
public void setGroup(String group)
- Parameters:
group
- The group to set.
getUserName
public String getUserName()
- Specified by:
getUserName
in interface PortalUser
- Returns:
- Returns the userName.
setUserName
public void setUserName(String userName)
- Parameters:
userName
- The userName to set.
getUserInfo
public Object getUserInfo(String key)
- Specified by:
getUserInfo
in interface PortalUser
- See Also:
PortalUser.getUserInfo(java.lang.String)
getUserInfos
public Map getUserInfos()
- Specified by:
getUserInfos
in interface PortalUser
- See Also:
PortalUser.getUserInfos()
setUserInfos
public void setUserInfos(Map infos)
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.