org.apache.cocoon.portal.profile.impl
Class AbstractPortalUser

java.lang.Object
  extended byorg.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

Field Summary
protected  boolean anonymous
          Is this an anonymous user.
protected  String group
           
protected  Map userInfo
           
protected  String userName
          The unique name of the user.
 
Constructor Summary
AbstractPortalUser()
           
 
Method Summary
 String getGroup()
           
 Object getUserInfo(String key)
           
 Map getUserInfos()
           
 String getUserName()
           
 boolean isAnonymous()
          Is this user an anonymous user?
 void setAnonymous(boolean anonymous)
           
 void setGroup(String group)
           
 void setUserInfos(Map infos)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.portal.profile.PortalUser
isUserInRole
 

Field Detail

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.

Constructor Detail

AbstractPortalUser

public AbstractPortalUser()
Method Detail

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.