01: /**
02: * $Id: ProvisionRequest.java,v 1.6 2007/01/26 03:50:13 portalbld 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.service;
14:
15: import javax.servlet.http.HttpServletRequest;
16:
17: import com.sun.portal.desktop.dp.DPRoot;
18: import com.iplanet.sso.SSOToken;
19: import java.util.HashMap;
20: import java.util.Map;
21:
22: /**
23: * ProvisionRequest a simple javabean class holding information
24: * needed for provisioning.
25: */
26: public class ProvisionRequest {
27:
28: public static final String EVENT_TYPE_CREATED = "CREATED";
29: public static final String EVENT_TYPE_DELETED = "DELETED";
30: public static final String EVENT_TYPE_DISABLED = "DISABLED";
31: public static final String EVENT_TYPE_ENABLED = "ENABLED";
32: public static final String EVENT_TYPE_UNDELETED = "UNDELETED";
33: public static final String EVENT_TYPE_DESTROYED = "DESTROYED";
34:
35: public static final String DP_OWNER = "owner";
36: public static final String DP_MEMBER = "member";
37: public static final String DP_VISITOR = "visitor";
38: public static final String DP_INVITED = "invited";
39: public static final String DP_REJECTED = "rejected";
40: public static final String DP_PENDING = "pending";
41: public static final String DP_BANNED = "banned";
42: public static final String DP_DISABLED_COMMUNITY = "disabled_community";
43: public static final String DP_DELETED_COMMUNITY = "deleted_community";
44:
45: private String _communityPrincipalId;
46: private String _serviceInstanceName;
47: private HttpServletRequest _origRequest;
48: private Map _dpRoots;
49: private SSOToken _ssoToken;
50: private String _eventType;
51:
52: public ProvisionRequest(String eventType,
53: HttpServletRequest origRequest, SSOToken ssoToken,
54: Map dpRoots, String communityPrincipalId,
55: String serviceInstanceName) {
56:
57: _communityPrincipalId = communityPrincipalId;
58: _serviceInstanceName = serviceInstanceName;
59: _origRequest = origRequest;
60: _dpRoots = dpRoots;
61: _ssoToken = ssoToken;
62: _eventType = eventType;
63:
64: }
65:
66: public String getCommunityPrincipalId() {
67: return _communityPrincipalId;
68: }
69:
70: public String getServiceInstanceName() {
71: return _serviceInstanceName;
72: }
73:
74: public HttpServletRequest getHttpServletRequest() {
75: return _origRequest;
76: }
77:
78: public Map getDPRoots() {
79: if (_dpRoots == null) {
80: return new HashMap();
81: } else {
82: return _dpRoots;
83: }
84: }
85:
86: public SSOToken getSSOToken() {
87: return _ssoToken;
88: }
89:
90: public String getEventType() {
91: return _eventType;
92: }
93:
94: }
|