[jboss-svn-commits] JBL Code SVN: r7754 - in labs/jbossforums/branches/forums26/forums/src: main/org/jboss/portlet/forums/auth resources/portal-forums-sar/META-INF

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Nov 21 19:09:06 EST 2006


Author: unibrew
Date: 2006-11-21 19:08:58 -0500 (Tue, 21 Nov 2006)
New Revision: 7754

Modified:
   labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/Authorization.java
   labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContext.java
   labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContextImpl.java
   labs/jbossforums/branches/forums26/forums/src/resources/portal-forums-sar/META-INF/jboss-service.xml
Log:
[JBFORUMS-143] I fixed authorization mbean's xml conflict when using JDK1.4.

Modified: labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/Authorization.java
===================================================================
--- labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/Authorization.java	2006-11-22 00:08:34 UTC (rev 7753)
+++ labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/Authorization.java	2006-11-22 00:08:58 UTC (rev 7754)
@@ -31,7 +31,8 @@
 /*
  * Created on May 19, 2006
  *
- * @author <a href="mailto:sohil.shah at jboss.com">Sohil Shah</a>
+ * @author <a href="mailto:sohil.shah at jboss.com">Sohil Shah</a>
+ * @author <a href="maitlo:ryszard.kozmik at jboss.com">Ryszard Kozmik</a>
  */
 public class Authorization 
 {
@@ -63,7 +64,7 @@
     {
         AuthorizationInterface provider = null;
         
-        provider = getContext().getProvider();
+        provider = getContext().provider();
         
         return provider;
     }

Modified: labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContext.java
===================================================================
--- labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContext.java	2006-11-22 00:08:34 UTC (rev 7753)
+++ labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContext.java	2006-11-22 00:08:58 UTC (rev 7754)
@@ -24,7 +24,8 @@
 /*
  * Created on May 19, 2006
  *
- * @author <a href="mailto:sohil.shah at jboss.com">Sohil Shah</a>
+ * @author <a href="mailto:sohil.shah at jboss.com">Sohil Shah</a>
+ * @author <a href="maitlo:ryszard.kozmik at jboss.com">Ryszard Kozmik</a>
  */
 public interface AuthorizationContext 
 {    
@@ -32,5 +33,5 @@
      * 
      *
      */
-    public AuthorizationInterface getProvider();
+    public AuthorizationInterface provider();
 }

Modified: labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContextImpl.java
===================================================================
--- labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContextImpl.java	2006-11-22 00:08:34 UTC (rev 7753)
+++ labs/jbossforums/branches/forums26/forums/src/main/org/jboss/portlet/forums/auth/AuthorizationContextImpl.java	2006-11-22 00:08:58 UTC (rev 7754)
@@ -28,7 +28,8 @@
 /*
  * Created on May 19, 2006
  *
- * @author <a href="mailto:sohil.shah at jboss.com">Sohil Shah</a>
+ * @author <a href="mailto:sohil.shah at jboss.com">Sohil Shah</a>
+ * @author <a href="maitlo:ryszard.kozmik at jboss.com">Ryszard Kozmik</a>
  */
 public class AuthorizationContextImpl implements AuthorizationContext
 {
@@ -64,7 +65,7 @@
     /**
     * @return Returns the provider.
     */
-    public AuthorizationInterface getProvider() 
+    public AuthorizationInterface provider() 
     {
        return provider;
     }

Modified: labs/jbossforums/branches/forums26/forums/src/resources/portal-forums-sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbossforums/branches/forums26/forums/src/resources/portal-forums-sar/META-INF/jboss-service.xml	2006-11-22 00:08:34 UTC (rev 7753)
+++ labs/jbossforums/branches/forums26/forums/src/resources/portal-forums-sar/META-INF/jboss-service.xml	2006-11-22 00:08:58 UTC (rev 7754)
@@ -40,21 +40,15 @@
 			<name>providerImpl</name>
 			<type>java.lang.String</type>					 
 		</attribute>
-		<attribute access="read" getMethod="getProvider">
+		<attribute access="read-only" >
 			<name>provider</name>
 			<type>org.jboss.portlet.forums.auth.AuthorizationInterface</type>					 
 		</attribute>
 		<operation impact="INFO">
 			<description>Method for getting Provider</description>
-			<name>getProvider</name>
+			<name>provider</name>
 			<return-type>org.jboss.portlet.forums.auth.AuthorizationInterface</return-type>
 		</operation>
-		<!--operation impact="ACTION">
-			<description>Method for setting Provider</description>
-			<name>setProviderImpl</name>
-			<parameter>java.lang.String</parameter>
-			<return-type></return-type>
-		</operation-->
 		<operation>
 			<description>The start lifecycle operation</description>
 			<name>start</name>
@@ -65,4 +59,4 @@
 		</operation>		    
 	</xmbean>
 </mbean>   
-</server>
\ No newline at end of file
+</server>




More information about the jboss-svn-commits mailing list