01: /* Copyright 2005 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: import org.apache.pluto.om.common.PreferenceSet;
09:
10: /**
11: * Stub implementation of IPortletPreferencesStore used in unit testing.
12: * @version $Revision: 35817 $ $Date: 2005-05-18 11:28:05 -0700 (Wed, 18 May 2005) $
13: */
14: public class StubPortletPreferencesStore implements
15: IPortletPreferencesStore {
16:
17: public void setDefinitionPreferences(int chanId, PreferenceSet prefs)
18: throws Exception {
19: // do nothing
20: }
21:
22: public PreferenceSet getDefinitionPreferences(int chanId)
23: throws Exception {
24: return null;
25: }
26:
27: public void setEntityPreferences(int userId, int layoutId,
28: String chanDescId, PreferenceSet prefs) throws Exception {
29: // do nothing
30: }
31:
32: public PreferenceSet getEntityPreferences(int userId, int layoutId,
33: String chanDescId) throws Exception {
34: return null;
35: }
36:
37: public void deletePortletPreferencesByUser(int userId)
38: throws Exception {
39: // do nothing
40: }
41:
42: public void deletePortletPreferencesByInstance(int userId,
43: int layoutId, String chanDescId) throws Exception {
44: // do nothing
45: }
46:
47: }
|