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 determine if a particular PortletMode is supported
21: * by the portal, a particular portlet, or both.
22: *
23: * @version $Id: SupportedModesService.java 516329 2007-03-09 08:43:46Z cziegeler $
24: * @since September 9, 2006
25: * @see javax.portlet.PortletMode
26: */
27: public interface SupportedModesService extends
28: DriverConfigurationService {
29:
30: /**
31: * Returns true if the portlet and the portal support the supplied mode.
32: * @param portletId the id uniquely identifiying the portlet
33: * @param mode the portlet mode
34: * @return true if the portlet and portal both support the supplied mode
35: */
36: boolean isPortletModeSupported(String portletId, String mode);
37:
38: /**
39: * Returns true if the portal supports the supplied mode.
40: * @param mode the portlet mode
41: * @return true if the portal supports the supplied mode
42: */
43: boolean isPortletModeSupportedByPortal(String mode);
44:
45: /**
46: * Returns true if the portlet supports the supplied mode.
47: * @param portletId the id uniquely identifying the portlet
48: * @param mode the portlet mode
49: * @return true if the portlet supports the supplied mode.
50: */
51: boolean isPortletModeSupportedByPortlet(String portletId,
52: String mode);
53:
54: }
|