roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r414687 - in /incubator/roller/branches/roller_3.0/src/org/apache/roller/model: PagePlugin.java PagePluginManager.java
Date Thu, 15 Jun 2006 21:30:53 GMT
Author: agilliland
Date: Thu Jun 15 14:30:53 2006
New Revision: 414687

URL: http://svn.apache.org/viewvc?rev=414687&view=rev
Log:
code reformatting.


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePlugin.java
    incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePluginManager.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePlugin.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePlugin.java?rev=414687&r1=414686&r2=414687&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePlugin.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePlugin.java Thu Jun
15 14:30:53 2006
@@ -1,23 +1,21 @@
 /*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-*  contributor license agreements.  The ASF licenses this file to You
-* under the Apache License, Version 2.0 (the "License"); you may not
-* use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.  For additional information regarding
-* copyright in this work, please see the NOTICE file in the top level
-* directory of this distribution.
-*/
-/*
- * Created on May 26, 2003
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  The ASF licenses this file to You
+ * under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
  */
+
 package org.apache.roller.model;
 
 import org.apache.velocity.context.Context;
@@ -25,21 +23,22 @@
 import org.apache.roller.pojos.WeblogEntryData;
 import org.apache.roller.pojos.WebsiteData;
 
+
 /**
  * Interface for Roller weblog entry page plugins, which can transform
  * entry summary or text fields.
- *
- * @author David M Johnson
  */
 public interface PagePlugin {
+    
     public String name = "PagePlugin";
     
+    
     /**
      * Plugins can this as an opportunity to add any required objects
      * to the RollerRequest and the VelocityContext.
      * @param website     Website being processed
      * @param config      javax.servlet.ServletContext (or null if running outside webapp)
-     * @param baseURL     Base URL of Roller site 
+     * @param baseURL     Base URL of Roller site
      * @param ctx         Plugins may place objects into the Velocity Context.
      */
     public void init(
@@ -88,4 +87,5 @@
     
     /** Returns true if this plugin should be skipped on single entry pages. */
     public boolean getSkipOnSingleEntry();
+    
 }

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePluginManager.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePluginManager.java?rev=414687&r1=414686&r2=414687&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePluginManager.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/model/PagePluginManager.java
Thu Jun 15 14:30:53 2006
@@ -1,18 +1 @@
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-*  contributor license agreements.  The ASF licenses this file to You
-* under the Apache License, Version 2.0 (the "License"); you may not
-* use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-*     http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.  For additional information regarding
-* copyright in this work, please see the NOTICE file in the top level
-* directory of this distribution.
-*/
-/* Created on Nov. 26, 2005 */

package org.apache.roller.model;

import java.util.Map;
import
java.io.Serializable;
import org.apache.velocity.context.Context;
import org.apache.roller.pojos.WeblogEntryData;
import
org.apache.roller.pojos.WebsiteData;

/**
 * Manages Roller page plugins
 */
public interface
PagePluginManager extends Serializable {
    
    /** 
     * Returns true if plugins are
present 
     */
    public boolean hasPagePlugins();
    
    /**
     * Create and init
plugins for processing entries in a specified website. 
     * @param website        Website
being processed 
     * @param servletContext ServetContext or null if running outside webapp
    * @param contextURL     Absolute URL of webapp    
     * @param ctx            Velocity
context 
     */
    public Map createAndInitPagePlugins(
            WebsiteData website,
           Object servletContext,
            String contextPath,
            Context ctx);
   
    /**
     * Accepts weblog
  entry, creates copy, applies plugins to copy and
     * returns the results.
     * @param
entry       Original weblog entry
     * @param plugins     Map of plugins to apply
     *
@param str         String to which to apply plugins
     * @param singleEntry Rendering for
single entry page?
     * @return        Copy of weblog entry with plugins applied
     */
   public String applyPagePlugins(
       WeblogEntryData entry, Map pagePlugins, String str,
boolean singleEntry);
    
    /** 
     * Release all resources associated with Roller session.

     */
    public void release();      
}
\ No newline at end of file
+/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor
license agreements.  The ASF licenses this file to You
 * under the Apache License, Version
2.0 (the "License"); you may not
 * use this file except in compliance with the License.
* You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
*
 * Unless required by applicable law or agreed to in writing, software
 * distributed under
the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.
 * See the License for the specific language governing permissions
and
 * limitations under the License.  For additional information regarding
 * copyright in
this work, please see the NOTICE file in the top level
 * directory of this distribution.
*/

package org.apache.roller.model;

import java.util.Map;
import java.io.Serializable;
import
org.apache.velocity.context.Context;
import org.apache.rol
 ler.pojos.WeblogEntryData;
import org.apache.roller.pojos.WebsiteData;


/**
 * Manages Roller
page plugins
 */
public interface PagePluginManager extends Serializable {
    
    /**
 
   * Returns true if plugins are present
     */
    public boolean hasPagePlugins();
   

    /**
     * Create and init plugins for processing entries in a specified website.
  
  * @param website        Website being processed
     * @param servletContext ServetContext
or null if running outside webapp
     * @param contextURL     Absolute URL of webapp
   
 * @param ctx            Velocity context
     */
    public Map createAndInitPagePlugins(
           WebsiteData website,
            Object servletContext,
            String contextPath,
           Context ctx);
    
    /**
     * Accepts weblog entry, creates copy, applies plugins
to copy and
     * returns the results.
     * @param entry       Original weblog entry
 
   * @param plugins     Map of plugins to apply
     * @param 
 str         String to which to apply plugins
     * @param singleEntry Rendering for single
entry page?
     * @return        Copy of weblog entry with plugins applied
     */
    public
String applyPagePlugins(
            WeblogEntryData entry, Map pagePlugins, String str, boolean
singleEntry);
    
    /**
     * Release all resources associated with Roller session.
 
   */
    public void release();
}
\ No newline at end of file



Mime
View raw message