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.driver.services.portal;
18:
19: /**
20: * Allows clients to see if a particular WindowState is supported by
21: * the portal, a particular portlet, or both.
22: *
23: * @since Feb 27, 2007
24: * @version $Id: SupportedWindowStateService.java 516329 2007-03-09 08:43:46Z cziegeler $
25: * @see javax.portlet.WindowState
26: */
27: public interface SupportedWindowStateService extends
28: DriverConfigurationService {
29:
30: /**
31: * Returns true if the portlet and the portal support the supplied
32: * window state.
33: * @param portletId the id uniquely identifying the portlet
34: * @param state the portlet window state
35: * @return true if the portlet and portal both support the supplied window state
36: */
37: public boolean isWindowStateSupported(String portletId, String state);
38:
39: /**
40: * Returns true if the portal supports the supplied window state.
41: * @param state the portlet window state
42: * @return true if the portal supports the supplied window state
43: */
44: public boolean isWindowStateSupportedByPortal(String state);
45:
46: /**
47: * Returns true if the portlet supports the supplied window state.
48: * @param portletId the id uniquely identifying the portlet
49: * @param state the window state
50: * @return true if the portlet support the supplied state
51: */
52: public boolean isWindowStateSupportedByPortlet(String portletId,
53: String state);
54:
55: }
|