portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services JetspeedSecurity.java
Date Sat, 01 Jun 2002 20:37:40 GMT
paulsp      2002/06/01 13:37:40

  Modified:    src/java/org/apache/jetspeed/services Tag: security_14
                        JetspeedSecurity.java
  Log:
  Add checkPermission() with PortalResource field
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.3  +6 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/services/JetspeedSecurity.java
  
  Index: JetspeedSecurity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/JetspeedSecurity.java,v
  retrieving revision 1.10.2.2
  retrieving revision 1.10.2.3
  diff -u -r1.10.2.2 -r1.10.2.3
  --- JetspeedSecurity.java	30 May 2002 07:04:10 -0000	1.10.2.2
  +++ JetspeedSecurity.java	1 Jun 2002 20:37:40 -0000	1.10.2.3
  @@ -72,6 +72,7 @@
   import org.apache.jetspeed.om.profile.Entry;
   import org.apache.jetspeed.om.security.JetspeedUser;
   import org.apache.jetspeed.services.JetspeedPortalAccessController;
  +import org.apache.jetspeed.services.security.PortalResource;
   import org.apache.turbine.util.Log;
   
   /**
  @@ -80,7 +81,7 @@
    * 
    * @see org.apache.jetspeed.services.security.JetspeedSecurityService
    * @author <a href="mailto:david@bluesunrise.com">David Sean Taylor</a>
  - * @version $Id: JetspeedSecurity.java,v 1.10.2.2 2002/05/30 07:04:10 taylor Exp $
  + * @version $Id: JetspeedSecurity.java,v 1.10.2.3 2002/06/01 20:37:40 paulsp Exp $
    */
   
   abstract public class JetspeedSecurity extends TurbineSecurity
  @@ -115,6 +116,10 @@
       public static boolean checkPermission(JetspeedUser user, int resourceType, String resource,
String action)
       {
           return JetspeedPortalAccessController.checkPermission(user, resourceType, resource,
action);
  +    }
  +    public static boolean checkPermission(JetspeedUser user, PortalResource resource, String
action)
  +    {
  +        return JetspeedPortalAccessController.checkPermission(user, resource, action);
       }
       /**
        * @see JetspeedSecurityService#checkPermission
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message