01: /**
02: * $Id: ProviderProvisionEvent.java,v 1.3 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: import java.util.Map;
18:
19: /**
20: *
21: * @author mjain
22: */
23: public class ProviderProvisionEvent {
24:
25: private String _communityPrincipalId;
26: private String _providerName;
27: private String _providerInstanceName;
28: private Map _provisionPropertiesForRoles;
29: private SSOToken _ssoToken;
30:
31: public ProviderProvisionEvent(String communityPrincipalId,
32: String providerName, String providerInstanceName,
33: Map provisionPropertiesForRoles, SSOToken ssoToken) {
34: _communityPrincipalId = communityPrincipalId;
35: _providerName = providerName;
36: _providerInstanceName = providerInstanceName;
37: _provisionPropertiesForRoles = provisionPropertiesForRoles;
38:
39: }
40:
41: public String getComunityPrincipalId() {
42: return _communityPrincipalId;
43: }
44:
45: public String getProviderName() {
46: return _providerName;
47: }
48:
49: public String getProviderInstanceName() {
50: return _providerInstanceName;
51: }
52:
53: /**
54: * Returns handle to the properties for this channel for a given role. Returns null if the channel
55: * is not configured for the role.
56: */
57: public ProviderProvisionProperties getProviderProvisionProperties(
58: String role) {
59: if (_provisionPropertiesForRoles != null) {
60: return (ProviderProvisionProperties) _provisionPropertiesForRoles
61: .get(role);
62: } else {
63: return null;
64: }
65:
66: }
67:
68: public SSOToken getSSOToken() {
69: return _ssoToken;
70: }
71:
72: }
|