portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity JetspeedPowerTool.java
Date Tue, 01 Mar 2005 23:32:16 GMT
taylor      2005/03/01 15:32:16

  Modified:    portal/src/java/org/apache/jetspeed/velocity
                        JetspeedPowerTool.java
  Log:
  make data members protected, methods overrideable by subclasses as requested by end user
  
  Revision  Changes    Path
  1.42      +22 -22    jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java
  
  Index: JetspeedPowerTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- JetspeedPowerTool.java	18 Feb 2005 00:45:06 -0000	1.41
  +++ JetspeedPowerTool.java	1 Mar 2005 23:32:15 -0000	1.42
  @@ -92,32 +92,32 @@
       protected static final String PORTLET_CONFIG_ATTR = "javax.portlet.config";
       protected static final String RENDER_RESPONSE_ATTR = "javax.portlet.response";
       protected static final String RENDER_REQUEST_ATTR = "javax.portlet.request";
  -    private static final String COLUMNS_ATTR = "columns";
  -    private static final String COLUMN_SIZES = "columnSizes";
  +    protected static final String COLUMNS_ATTR = "columns";
  +    protected static final String COLUMN_SIZES = "columnSizes";
   
  -    private RenderRequest renderRequest;
  +    protected RenderRequest renderRequest;
   
  -    private RenderResponse renderResponse;
  +    protected RenderResponse renderResponse;
   
  -    private PortletConfig portletConfig;
  +    protected PortletConfig portletConfig;
   
  -    private Writer templateWriter;
  +    protected Writer templateWriter;
   
  -    private static final String POWER_TOOL_SESSION_ACTIONS = "org.apache.jetspeed.powertool.actions";
  +    protected static final String POWER_TOOL_SESSION_ACTIONS = "org.apache.jetspeed.powertool.actions";
   
  -    private static final Log log = LogFactory.getLog(JetspeedPowerTool.class);
  +    protected static final Log log = LogFactory.getLog(JetspeedPowerTool.class);
   
  -    private CapabilityMap capabilityMap;
  -    private Locale locale;
  -    private LocatorDescriptor templateLocatorDescriptor;
  -    private TemplateLocator templateLocator;
  -    private PortletEntityAccessComponent entityAccess;
  -    private TemplateLocator decorationLocator;
  -    private LocatorDescriptor decorationLocatorDescriptor;
  -    private PortletWindowAccessor windowAccess;
  +    protected CapabilityMap capabilityMap;
  +    protected Locale locale;
  +    protected LocatorDescriptor templateLocatorDescriptor;
  +    protected TemplateLocator templateLocator;
  +    protected PortletEntityAccessComponent entityAccess;
  +    protected TemplateLocator decorationLocator;
  +    protected LocatorDescriptor decorationLocatorDescriptor;
  +    protected PortletWindowAccessor windowAccess;
   
  -    private RequestContext requestContext;
  -    private Context velocityContext;
  +    protected RequestContext requestContext;
  +    protected Context velocityContext;
       public static final String GENERIC_TEMPLATE_TYPE = "generic";
       public static final String FRAGMENT_PROCESSING_ERROR_PREFIX = "fragment.processing.error.";
       public static final String FRAGMENT_ATTR = "fragment";
  @@ -505,7 +505,7 @@
        *                  Portlet fragment to "decorate"
        * @throws Exception
        */
  -    private String decorateAndIncludePortlet( Fragment f ) throws Exception
  +    protected String decorateAndIncludePortlet( Fragment f ) throws Exception
       {
           // make sure that any previous content has been written to
           // preserve natural HTML rendering order
  @@ -739,7 +739,7 @@
           }
       }
   
  -    private boolean checkAccess(String action)
  +    protected boolean checkAccess(String action)
       {
           boolean access = true;
           try
  @@ -874,7 +874,7 @@
        *                  max, min...)
        * @return true if the action is allowed, false if it is not
        */
  -    private boolean checkPermission( String resource, String action )
  +    protected boolean checkPermission( String resource, String action )
       {
           try
           {
  
  
  

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


Mime
View raw message