KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > pluto > DynamicTitleServiceImpl


1 /*
2  * Copyright 2004,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.pluto;
17
18 import javax.servlet.http.HttpServletRequest JavaDoc;
19
20 import org.apache.cocoon.portal.pluto.om.PortletEntityImpl;
21 import org.apache.pluto.om.window.PortletWindow;
22 import org.apache.pluto.services.title.DynamicTitleService;
23
24 /**
25  * Our own dynamic title service
26  *
27  * @author <a HREF="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
28  *
29  * @version CVS $Id: DynamicTitleServiceImpl.java 53792 2004-10-05 13:36:38Z cziegeler $
30  */

31 public class DynamicTitleServiceImpl
32 implements DynamicTitleService {
33
34     /* (non-Javadoc)
35      * @see org.apache.pluto.services.title.DynamicTitleService#setDynamicTitle(org.apache.pluto.om.window.PortletWindow, javax.servlet.http.HttpServletRequest, java.lang.String)
36      */

37     public void setDynamicTitle(PortletWindow window,
38                                 HttpServletRequest JavaDoc request,
39                                 String JavaDoc dynamicTitle) {
40         ((PortletEntityImpl)window.getPortletEntity()).getCopletInstanceData().setTemporaryAttribute("dynamic-title", dynamicTitle);
41     }
42                                 
43 }
44
Popular Tags