001: /**
002: * Copyright 2002 Sun Microsystems, Inc. All
003: * rights reserved. Use of this product is subject
004: * to license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users
006: * Subject to Standard License Terms and
007: * Conditions.
008: *
009: * Sun, Sun Microsystems, the Sun logo, and iPlanet
010: * are trademarks or registered trademarks of Sun Microsystems,
011: * Inc. in the United States and other countries.
012: */package com.sun.portal.app.calendarcommon.common;
013:
014: import java.util.Set;
015: import javax.portlet.PortletRequest;
016: import javax.servlet.ServletContext;
017: import javax.servlet.http.HttpServletRequest;
018:
019: /**
020: * Dummy implementation of SharedServicesUtils for testing.
021: *
022: * @author Nigel Jacobs
023: * @created May 19, 2005
024: *
025: */
026: public class DummySharedServicesUtilsImpl implements
027: SharedServicesUtils {
028:
029: ServletContext _context;
030:
031: public DummySharedServicesUtilsImpl(ServletContext context) {
032: _context = context;
033: }
034:
035: /**
036: * Get the community id.
037: *
038: * @param request
039: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
040: * @return community id.
041: */
042: public String getCommunityID(PortletRequest request)
043: throws SharedServicesException {
044: return "";
045: }
046:
047: /**
048: * Get the ids of all the members of the community, as a set of Strings.
049: *
050: * @param communityID
051: * @return member id Strings.
052: */
053: public synchronized Set getMemberIDs(PortletRequest request)
054: throws SharedServicesException {
055: return null;
056: }
057:
058: /**
059: * Get the current users community member id.
060: *
061: * @param request
062: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
063: * @return member id.
064: */
065: public String getCurrentMemberID(HttpServletRequest request)
066: throws SharedServicesException {
067: return "";
068: }
069:
070: public String getCurrentMemberID(PortletRequest request)
071: throws SharedServicesException {
072: return "";
073: }
074:
075: /**
076: * Clean up the resources.
077: */
078: public void destroy() {
079:
080: }
081:
082: /**
083: * Get the ids of all the members of the community, as a set of Strings.
084: *
085: * @param context
086: * @return member id Strings.
087: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
088: */
089: public Set getMemberIDs(javax.faces.context.FacesContext context)
090: throws SharedServicesException {
091: return null;
092: }
093:
094: /**
095: * Get the current users community member id.
096: *
097: * @param request
098: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
099: * @return member id.
100: */
101: public String getCurrentMemberID(
102: javax.faces.context.FacesContext context)
103: throws SharedServicesException {
104: return "";
105: }
106:
107: /**
108: * Get the community id.
109: *
110: * @param context
111: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
112: * @return community id.
113: */
114: public String getCommunityID(
115: javax.faces.context.FacesContext context)
116: throws SharedServicesException {
117: return null;
118: }
119:
120: /**
121: * Get the URL of the community search server.
122: *
123: * @param request
124: * @return url String
125: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
126: */
127: public String getSearchServerURL(PortletRequest request)
128: throws SharedServicesException {
129: return null;
130: }
131:
132: /**
133: * Get the URL of the community search server.
134: *
135: * @param context
136: * @return url String
137: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
138: */
139: public String getSearchServerURL(
140: javax.faces.context.FacesContext context)
141: throws SharedServicesException {
142: return null;
143: }
144:
145: /**
146: * Get the community search database.
147: *
148: * @param request
149: * @return database name
150: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
151: */
152: public String getSearchDatabase(PortletRequest request)
153: throws SharedServicesException {
154: return null;
155: }
156:
157: /**
158: * Get the community search database.
159: *
160: * @param context
161: * @return database name
162: * @throws com.sun.portal.app.SharedServices.common.SharedServicesException
163: */
164: public String getSearchDatabase(
165: javax.faces.context.FacesContext context)
166: throws SharedServicesException {
167: return null;
168: }
169:
170: }
|