org.apache.cocoon.portal.tools.userManagement
Class UserBean

java.lang.Object
  extended by org.apache.cocoon.portal.tools.userManagement.UserBean

public class UserBean
extends Object

Object storing information of an user context.

Version:
CVS $Id: UserBean.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
UserBean()
           
 
Method Summary
 void addContext(String key, String value)
          Add a single context information
 Collection getContext()
          Get the whole context of the current user
 String getContextItem(String key)
          return specified context value
 String getPicture()
          Special Attribute for the cocoon portal tool example: you can store even extra attributes in the bean
 void setPicture(String string)
          Special Attribute for the cocoon portal tool example: you can store even extra attributes in the bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserBean

public UserBean()
Method Detail

addContext

public void addContext(String key,
                       String value)
Add a single context information

Parameters:
key - name of the context
value - value of the context

getContext

public Collection getContext()
Get the whole context of the current user

Returns:
Collection of the whole context

getContextItem

public String getContextItem(String key)
return specified context value

Parameters:
key -

getPicture

public String getPicture()
Special Attribute for the cocoon portal tool example: you can store even extra attributes in the bean

Returns:
name of the picture file

setPicture

public void setPicture(String string)
Special Attribute for the cocoon portal tool example: you can store even extra attributes in the bean

Parameters:
string - name of the picture file


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.