KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > PortalACL


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portal;
6
7 import org.exoplatform.services.portal.model.*;
8 /**
9  * Apr 20, 2004
10  * @author: Tuan Nguyen
11  * @email: tuan08@users.sourceforge.net
12  * @version: $Id: PortalACL.java,v 1.3 2004/09/28 15:13:51 tuan08 Exp $
13  **/

14 public interface PortalACL {
15   final static public String JavaDoc ANY_PERMISSION = "any" ;
16   final static public String JavaDoc OWNER_PERMISSION = "owner" ;
17   final static public String JavaDoc NOONE_PERMISSION = "noone" ;
18   final static public String JavaDoc ADMIN_PERMISSION = "admin" ;
19    
20     public boolean hasViewPagePermission(Page page, String JavaDoc user) ;
21   public boolean hasEditPagePermission(Page page, String JavaDoc user) ;
22   
23     public boolean hasViewPortalPermission(PortalConfig portal, String JavaDoc user) ;
24   public boolean hasEditPortalPermission(PortalConfig portal, String JavaDoc user) ;
25   
26   public boolean hasViewNodePermission(Node node, String JavaDoc portalOwner, String JavaDoc user) ;
27   public boolean hasEditNodePermission(Node node, String JavaDoc portalOwner, String JavaDoc user) ;
28   
29   public String JavaDoc[] getPermissionList() ;
30     
31 }
Popular Tags