[pal-cvs 2510] [242] code alignment

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 7月 11日 (水) 14:06:33 JST


Revision: 242
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=242
Author:   shinsuke
Date:     2007-07-11 14:06:33 +0900 (Wed, 11 Jul 2007)

Log Message:
-----------
code alignment

Modified Paths:
--------------
    pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserManagementFilter.java


-------------- next part --------------
Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserManagementFilter.java
===================================================================
--- pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserManagementFilter.java	2007-07-11 04:59:24 UTC (rev 241)
+++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/filter/UserManagementFilter.java	2007-07-11 05:06:33 UTC (rev 242)
@@ -80,57 +80,45 @@
         if (!PALAdminConstants.DEBUG)
         {
             // securityProvider
-            securityProvider = (SecurityProvider) portletContext
-                    .getAttribute(PALAdminConstants.CPS_SECURITY_PROVIDER_COMPONENT);
+            securityProvider = (SecurityProvider) portletContext.getAttribute(PALAdminConstants.CPS_SECURITY_PROVIDER_COMPONENT);
             if (securityProvider == null)
             {
-                throw new PortletException(
-                        "Failed to find the Security Provider on portlet initialization");
+                throw new PortletException("Failed to find the Security Provider on portlet initialization");
             }
 
             // userManager
-            userManager = (UserManager) portletContext
-                    .getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
+            userManager = (UserManager) portletContext.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
             if (userManager == null)
             {
-                throw new PortletException(
-                        "Failed to find the User Manager on portlet initialization");
+                throw new PortletException("Failed to find the User Manager on portlet initialization");
             }
 
             // groupManager
-            groupManager = (GroupManager) portletContext
-                    .getAttribute(CommonPortletServices.CPS_GROUP_MANAGER_COMPONENT);
+            groupManager = (GroupManager) portletContext.getAttribute(CommonPortletServices.CPS_GROUP_MANAGER_COMPONENT);
             if (groupManager == null)
             {
-                throw new PortletException(
-                        "Failed to find the Group Manager on portlet initialization");
+                throw new PortletException("Failed to find the Group Manager on portlet initialization");
             }
 
             // roleManager
-            roleManager = (RoleManager) portletContext
-                    .getAttribute(CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
+            roleManager = (RoleManager) portletContext.getAttribute(CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
             if (roleManager == null)
             {
-                throw new PortletException(
-                        "Failed to find the Role Manager on portlet initialization");
+                throw new PortletException("Failed to find the Role Manager on portlet initialization");
             }
 
             // profiler
-            profiler = (Profiler) portletContext
-                    .getAttribute(CommonPortletServices.CPS_PROFILER_COMPONENT);
+            profiler = (Profiler) portletContext.getAttribute(CommonPortletServices.CPS_PROFILER_COMPONENT);
             if (null == profiler)
             {
-                throw new PortletException(
-                        "Failed to find the Profiler on portlet initialization");
+                throw new PortletException("Failed to find the Profiler on portlet initialization");
             }
 
             // pageManager
-            pageManager = (PageManager) portletContext
-                    .getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
+            pageManager = (PageManager) portletContext.getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
             if (null == pageManager)
             {
-                throw new PortletException(
-                        "Failed to find the Page Manager on portlet initialization");
+                throw new PortletException("Failed to find the Page Manager on portlet initialization");
             }
 
         }
@@ -143,21 +131,15 @@
      *      javax.portlet.ActionResponse,
      *      org.apache.portals.bridges.portletfilter.PortletFilterChain)
      */
-    public void processActionFilter(ActionRequest request,
-            ActionResponse response, PortletFilterChain chain)
+    public void processActionFilter(ActionRequest request, ActionResponse response, PortletFilterChain chain)
             throws PortletException, IOException
     {
-        request.setAttribute(PALAdminConstants.SECURITY_PROVIDER_COMPONENT,
-                securityProvider);
-        request.setAttribute(PALAdminConstants.USER_MANAGER_COMPONENT,
-                userManager);
-        request.setAttribute(PALAdminConstants.GROUP_MANAGER_COMPONENT,
-                groupManager);
-        request.setAttribute(PALAdminConstants.ROLE_MANAGER_COMPONENT,
-                roleManager);
+        request.setAttribute(PALAdminConstants.SECURITY_PROVIDER_COMPONENT, securityProvider);
+        request.setAttribute(PALAdminConstants.USER_MANAGER_COMPONENT, userManager);
+        request.setAttribute(PALAdminConstants.GROUP_MANAGER_COMPONENT, groupManager);
+        request.setAttribute(PALAdminConstants.ROLE_MANAGER_COMPONENT, roleManager);
         request.setAttribute(PALAdminConstants.PROFILER_COMPONENT, profiler);
-        request.setAttribute(PALAdminConstants.PAGE_MANAGER_COMPONENT,
-                pageManager);
+        request.setAttribute(PALAdminConstants.PAGE_MANAGER_COMPONENT, pageManager);
 
         chain.processActionFilter(request, response);
     }
@@ -169,20 +151,15 @@
      *      javax.portlet.RenderResponse,
      *      org.apache.portals.bridges.portletfilter.PortletFilterChain)
      */
-    public void renderFilter(RenderRequest request, RenderResponse response,
-            PortletFilterChain chain) throws PortletException, IOException
+    public void renderFilter(RenderRequest request, RenderResponse response, PortletFilterChain chain) throws PortletException,
+            IOException
     {
-        request.setAttribute(PALAdminConstants.SECURITY_PROVIDER_COMPONENT,
-                securityProvider);
-        request.setAttribute(PALAdminConstants.USER_MANAGER_COMPONENT,
-                userManager);
-        request.setAttribute(PALAdminConstants.GROUP_MANAGER_COMPONENT,
-                groupManager);
-        request.setAttribute(PALAdminConstants.ROLE_MANAGER_COMPONENT,
-                roleManager);
+        request.setAttribute(PALAdminConstants.SECURITY_PROVIDER_COMPONENT, securityProvider);
+        request.setAttribute(PALAdminConstants.USER_MANAGER_COMPONENT, userManager);
+        request.setAttribute(PALAdminConstants.GROUP_MANAGER_COMPONENT, groupManager);
+        request.setAttribute(PALAdminConstants.ROLE_MANAGER_COMPONENT, roleManager);
         request.setAttribute(PALAdminConstants.PROFILER_COMPONENT, profiler);
-        request.setAttribute(PALAdminConstants.PAGE_MANAGER_COMPONENT,
-                pageManager);
+        request.setAttribute(PALAdminConstants.PAGE_MANAGER_COMPONENT, pageManager);
 
         chain.renderFilter(request, response);
     }


pal-cvs メーリングリストの案内
Back to archive index