View Javadoc

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 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  
17  package org.apache.jetspeed.services.security;
18  
19  import org.apache.turbine.util.RunData;
20  import org.apache.jetspeed.portal.Portlet;
21  import org.apache.jetspeed.om.registry.RegistryEntry;
22  
23  /***
24   * <P>Interface defines access control methods specific to Jetspeed for
25   * accessing portal resources such as portlets and panes</P>
26   * 
27   * @see org.apache.jetspeed.services.security.JetspeedSecurityService
28   * @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   */
31  
32  public interface AccessControl {
33  
34      boolean checkPermission(RunData runData, String permission, Portlet portlet);
35      boolean checkPermission(RunData runData, String action, RegistryEntry entry);
36      boolean checkPermission(String user, String action, Portlet portlet);
37  
38      // TODO: get requirements for controlling access to other OM elements
39      // boolean checkPermission(User user, String action, Profile profile);
40  
41  }