01: /**
02: * $Id: ProviderMembershipEvent.java,v 1.4 2005/06/12 16:49:53 mjain Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.providers.service.provision;
14:
15: import com.iplanet.sso.SSOToken;
16:
17: /**
18: * ProviderMembershipEvent represents the event
19: * when a member is added or removed from a community.
20: */
21: public class ProviderMembershipEvent {
22:
23: private String _communityPrincipalId;
24: private String _memberId;
25: private String _providerName;
26: private String _providerInstanceName;
27: private SSOToken _ssoToken;
28: private ProviderProvisionProperties _providerProvisionProperties;
29: private String _role;
30:
31: public ProviderMembershipEvent(String communityPrincipalId,
32: String providerName, String providerInstanceName,
33: String memberId,
34: ProviderProvisionProperties providerProvisionProperties,
35: String role, SSOToken ssoToken) {
36: _communityPrincipalId = communityPrincipalId;
37: _memberId = memberId;
38: _providerName = providerName;
39: _providerInstanceName = providerInstanceName;
40: _ssoToken = ssoToken;
41: _providerProvisionProperties = providerProvisionProperties;
42: _role = role;
43: }
44:
45: /**
46: * returns the id of
47: * the community to which the member is added/removed.
48: */
49: public String getCommunityPrincipalId() {
50: return _communityPrincipalId;
51: }
52:
53: /**
54: * Returns the member id added or removed.
55: */
56: public String getMemberId() {
57: return _memberId;
58: }
59:
60: /**
61: * returns the provider name listening to the event.
62: */
63: public String getProviderName() {
64: return _providerName;
65: }
66:
67: /**
68: * return the channel name used by the community for the provider
69: * intersting in listening the event.
70: */
71: public String getProviderInstanceName() {
72: return _providerInstanceName;
73: }
74:
75: /**
76: * returns the SSOToken
77: */
78: public SSOToken getSSOToken() {
79: return _ssoToken;
80: }
81:
82: /**
83: * returns read-only properties set for this channel for this role. Returns null if this service is not configured for this role.
84: * set methods on the returned object would throw exception.
85: */
86: public ProviderProvisionProperties getProviderProvisionProperties() {
87: return _providerProvisionProperties;
88: }
89:
90: public String getRole() {
91: return _role;
92: }
93: }
|