01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/portal/tags/sakai_2-4-1/portal-api/api/src/java/org/sakaiproject/portal/api/StyleAbleProvider.java $
03: * $Id: StyleAbleProvider.java 29143 2007-04-19 01:10:38Z ajpoland@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006, 2007 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.portal.api;
21:
22: /**
23: * This interface should be implemented by a Stylable provider to control the portal in
24: * the browser either by CSS or by javascript manipulation of the DOM in the browser.
25: *
26: * @author ieb
27: * @since Sakai 2.4
28: * @version $Rev: 29143 $
29: *
30: */
31: public interface StyleAbleProvider {
32:
33: /**
34: * Generate the javascript in the header for the user
35: *
36: * @param userId
37: * @return
38: * @throws Exception
39: */
40: String generateJavaScript(String userId) throws Exception;
41:
42: /**
43: * Generate the StyleSheet in the header for the user
44: *
45: * @param userId
46: * @return
47: * @throws Exception
48: */
49: String generateStyleSheet(String userId) throws Exception;
50:
51: }
|