01: /* Copyright 2001 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.channels.groupsmanager;
07:
08: import org.jasig.portal.security.IAuthorizationPrincipal;
09: import org.jasig.portal.security.IPerson;
10: import org.w3c.dom.Document;
11:
12: /**
13: * Session data that is a subset of CGroupsManagerSessionData.
14: *
15: * @author Don Fracapane
16: * @version $Revision: 35144 $
17: */
18: public class CGroupsManagerUnrestrictedSessionData implements
19: GroupsManagerConstants {
20: public Document model;
21: public IPerson user;
22: public boolean isAdminUser;
23: public IGroupsManagerPermissions gmPermissions;
24: public IAuthorizationPrincipal authPrincipal;
25:
26: /**
27: * Creates new CGroupsManagerUnrestrictedSessionData
28: */
29: public CGroupsManagerUnrestrictedSessionData() {
30: }
31:
32: /**
33: * Creates new CGroupsManagerUnrestrictedSessionData
34: * @param model Document
35: * @param user IPerson
36: * @param isAdminUser boolean
37: * @param gmPermissions IGroupsManagerPermissions
38: * @param authPrincipal IAuthorizationPrincipal
39: */
40: public CGroupsManagerUnrestrictedSessionData(Document model,
41: IPerson user, boolean isAdminUser,
42: IGroupsManagerPermissions gmPermissions,
43: IAuthorizationPrincipal authPrincipal) {
44: this .model = model;
45: this .user = user;
46: this .isAdminUser = isAdminUser;
47: this .gmPermissions = gmPermissions;
48: this .authPrincipal = authPrincipal;
49: }
50:
51: public String toString() {
52: StringBuffer sb = new StringBuffer();
53: sb.append("[");
54: sb
55: .append(CGroupsManagerUnrestrictedSessionData.class
56: .getName());
57: if (this .user != null) {
58: sb.append(" user=");
59: sb.append(this .user);
60: }
61: sb.append(" isAdminUser=");
62: sb.append(this .isAdminUser);
63: if (this .gmPermissions != null) {
64: sb.append(" gmPermissions=");
65: sb.append(this .gmPermissions);
66: }
67: if (this .authPrincipal != null) {
68: sb.append(" authPrincipal=");
69: sb.append(this .authPrincipal);
70: }
71: if (this .model != null) {
72: sb.append(" model=");
73: sb.append(this .model);
74: }
75: sb.append("]");
76: return sb.toString();
77: }
78: }
|