01: /**
02: * $Id: TasksDispatcher.java,v 1.3 2007/01/26 03:50:14 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.portlet;
14:
15: import com.sun.portal.service.ProvisionRequest;
16: import com.sun.portal.service.ProvisionResponse;
17: import com.sun.portal.service.MembershipRequest;
18: import com.sun.portal.service.MembershipResponse;
19: import com.sun.portal.service.ServiceException;
20:
21: /**
22: *
23: * @author mjain
24: */
25: public interface TasksDispatcher {
26:
27: // Portlet system would put the singlton instance of TasksDispatcher
28: // in the servletContext during bootstrap using this key.
29:
30: final public static String TASKS_DISPATCHER = "TASKS_DISPATCHER";
31:
32: public void handleProvisionEvent(String appName,
33: String portletName, ProvisionRequest request,
34: ProvisionResponse response) throws ServiceException;
35:
36: public void memberAdded(String appName, String providerName,
37: MembershipRequest request, MembershipResponse response)
38: throws ServiceException;
39:
40: public void memberRemoved(String appName, String providerName,
41: MembershipRequest request, MembershipResponse response)
42: throws ServiceException;
43:
44: }
|