[jboss-cvs] JBossAS SVN: r68046 - projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 7 12:36:06 EST 2007


Author: sguilhen at redhat.com
Date: 2007-12-07 12:36:06 -0500 (Fri, 07 Dec 2007)
New Revision: 68046

Added:
   projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLPermission.java
Removed:
   projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/Permission.java
Modified:
   projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java
   projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLEntry.java
Log:
Renamed Permission class to ACLPermission to avoid clashes with JDK classes.



Modified: projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java
===================================================================
--- projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java	2007-12-07 17:30:41 UTC (rev 68045)
+++ projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java	2007-12-07 17:36:06 UTC (rev 68046)
@@ -94,5 +94,5 @@
     * @return   <code>true</code> if the specified permission is assigned to the identity;
     * <code>false</code> otherwise.
     */
-   public boolean isGranted(Permission permission, Identity identity);
+   public boolean isGranted(ACLPermission permission, Identity identity);
 }

Modified: projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLEntry.java
===================================================================
--- projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLEntry.java	2007-12-07 17:30:41 UTC (rev 68045)
+++ projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLEntry.java	2007-12-07 17:36:06 UTC (rev 68046)
@@ -50,5 +50,5 @@
     * 
     * @return a reference to the <code>Permission</code> contained in this entry.
     */
-   public Permission getPermission();
+   public ACLPermission getPermission();
 }

Copied: projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLPermission.java (from rev 68045, projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/Permission.java)
===================================================================
--- projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLPermission.java	                        (rev 0)
+++ projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACLPermission.java	2007-12-07 17:36:06 UTC (rev 68046)
@@ -0,0 +1,35 @@
+/*
+  * JBoss, Home of Professional Open Source
+  * Copyright 2005, JBoss Inc., and individual contributors as indicated
+  * by the @authors tag. See the copyright.txt in the distribution for a
+  * full listing of individual contributors.
+  *
+  * This is free software; you can redistribute it and/or modify it
+  * under the terms of the GNU Lesser General Public License as
+  * published by the Free Software Foundation; either version 2.1 of
+  * the License, or (at your option) any later version.
+  *
+  * This software is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  * Lesser General Public License for more details.
+  *
+  * You should have received a copy of the GNU Lesser General Public
+  * License along with this software; if not, write to the Free
+  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  */
+package org.jboss.security.acl;
+
+/**
+ * <p>
+ * A <code>Permission</code> represents privileges held by an <code>Identity</code>, and is used to
+ * grant or deny access to a <code>Resource</code>. 
+ * </p>
+ * 
+ * @author <a href="mailto:sguilhen at redhat.com">Stefan Guilhen</a>
+ */
+public interface ACLPermission
+{
+
+}

Deleted: projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/Permission.java
===================================================================
--- projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/Permission.java	2007-12-07 17:30:41 UTC (rev 68045)
+++ projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/Permission.java	2007-12-07 17:36:06 UTC (rev 68046)
@@ -1,35 +0,0 @@
-/*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
-package org.jboss.security.acl;
-
-/**
- * <p>
- * A <code>Permission</code> represents privileges held by an <code>Identity</code>, and is used to
- * grant or deny access to a <code>Resource</code>. 
- * </p>
- * 
- * @author <a href="mailto:sguilhen at redhat.com">Stefan Guilhen</a>
- */
-public interface Permission
-{
-
-}




More information about the jboss-cvs-commits mailing list