01: /**
02: * Copyright 2005 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */package com.sun.portal.admin.console.communities;
13:
14: import java.util.*;
15:
16: import com.sun.portal.admin.console.common.PSBaseBean;
17:
18: public class CommunityUserBean extends PSBaseBean {
19:
20: public String dn = "";
21: public String name = "";
22: public String roles = "";
23:
24: public void initialize(Properties p) {
25: this .dn = p.getProperty("dn");
26: this .roles = p.getProperty("roles");
27:
28: String[] parts1 = dn.split(",");
29: String[] parts2 = parts1[0].split("=");
30: this .name = parts2[1];
31: }
32:
33: public String getDn() {
34: return dn;
35: }
36:
37: public void setDn(String dn) {
38: this .dn = dn;
39: }
40:
41: public String getName() {
42: return name;
43: }
44:
45: public void setName(String name) {
46: this .name = name;
47: }
48:
49: public String getRoles() {
50: return roles;
51: }
52:
53: public void setRoles(String roles) {
54: this.roles = roles;
55: }
56:
57: }
|