1/*2 * Copyright 2000-2001,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 at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.services.security;
1819import org.apache.turbine.util.RunData;
20import org.apache.jetspeed.portal.Portlet;
21import org.apache.jetspeed.om.registry.RegistryEntry;
2223/***24 * <P>Interface defines access control methods specific to Jetspeed for25 * accessing portal resources such as portlets and panes</P>26 * 27 * @see org.apache.jetspeed.services.security.JetspeedSecurityService28 * @author <a href="mailto:david@bluesunrise.com">David Sean Taylor</a>29 * @version $Id: AccessControl.java,v 1.6 2004/02/23 03:58:11 jford Exp $30 */3132publicinterfaceAccessControl {
3334boolean checkPermission(RunData runData, String permission, Portlet portlet);
35boolean checkPermission(RunData runData, String action, RegistryEntry entry);
36boolean checkPermission(String user, String action, Portlet portlet);
3738// TODO: get requirements for controlling access to other OM elements39// boolean checkPermission(User user, String action, Profile profile);4041 }