01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.pluto.spi.optional;
18:
19: import org.apache.pluto.PortletWindow;
20:
21: /**
22: * Callback service which makes it possible to customize
23: * portlet info. This is specifically useful when a
24: * portlet administration tool enables customization
25: * during deployment.
26: *
27: * @since 1.1.0
28: *
29: */
30: public interface PortletInfoService {
31:
32: /**
33: * Retrieve the title for the specificed
34: * portlet window.
35: *
36: * @param window
37: * @return
38: */
39: String getTitle(PortletWindow window);
40:
41: /**
42: * Retrieve the shorttitle for the specified
43: * portlet window.
44: *
45: * @param window
46: * @return
47: */
48: String getShortTitle(PortletWindow window);
49:
50: /**
51: * Retrieve the keywords for the specified
52: * portlet window.
53: *
54: * @param window
55: * @return
56: */
57: String getKeywords(PortletWindow window);
58:
59: }
|