[jboss-cvs] JBossAS SVN: r59231 - projects/security/security-spi/trunk/src/main/org/jboss/security/authorization

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 26 16:07:44 EST 2006


Author: anil.saldhana at jboss.com
Date: 2006-12-26 16:07:44 -0500 (Tue, 26 Dec 2006)
New Revision: 59231

Added:
   projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/ResourceType.java
Modified:
   projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/Resource.java
Log:
pull out resource types

Modified: projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/Resource.java
===================================================================
--- projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/Resource.java	2006-12-26 21:07:17 UTC (rev 59230)
+++ projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/Resource.java	2006-12-26 21:07:44 UTC (rev 59231)
@@ -32,14 +32,9 @@
  *  @version $Revision$
  */
 public interface Resource
-{
-   // Web Resource
-   String WEB = "web";
-   //EJB Resource
-   String EJB = "ejb";
-   
+{ 
    //Get the Layer (Web/EJB etc)
-   public String getLayer();
+   public ResourceType getLayer();
    
    //Return the contextual map
    public Map getMap(); 

Added: projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/ResourceType.java
===================================================================
--- projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/ResourceType.java	2006-12-26 21:07:17 UTC (rev 59230)
+++ projects/security/security-spi/trunk/src/main/org/jboss/security/authorization/ResourceType.java	2006-12-26 21:07:44 UTC (rev 59231)
@@ -0,0 +1,35 @@
+/*
+  * JBoss, Home of Professional Open Source
+  * Copyright 2006, 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.authorization;
+
+//$Id$
+
+/**
+ *  Type of Resource for Authorization
+ *  @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
+ *  @since  Dec 13, 2006 
+ *  @version $Revision$
+ */
+public enum ResourceType
+{
+   WEB,EJB;
+}




More information about the jboss-cvs-commits mailing list