01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.om.portlet;
07:
08: import java.io.Serializable;
09: import java.util.HashMap;
10: import java.util.Iterator;
11: import java.util.Map;
12:
13: /**
14: * Implementation of Apache Pluto object model.
15: * @author Ken Weiner, kweiner@unicon.net
16: * @version $Revision: 34757 $
17: */
18: public class UserAttributeListImpl implements Serializable {
19:
20: private Map userAttributes = null;
21:
22: public UserAttributeListImpl() {
23: userAttributes = new HashMap();
24: }
25:
26: public Iterator iterator() {
27: return userAttributes.values().iterator();
28: }
29:
30: public UserAttributeImpl get(String name) {
31: return (UserAttributeImpl) userAttributes.get(name);
32: }
33:
34: public void add(UserAttributeImpl userAttributeImpl) {
35: userAttributes.put(userAttributeImpl.getName(),
36: userAttributeImpl);
37: }
38:
39: }
|