roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r521988 [2/2] - in /incubator/roller/trunk: ./ src/org/apache/roller/pojos/wrapper/
Date Sat, 24 Mar 2007 06:59:48 GMT
Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WebsiteDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WebsiteDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WebsiteDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WebsiteDataWrapper.java Fri
Mar 23 23:59:47 2007
@@ -0,0 +1,666 @@
+/*
+ * 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.pojos.wrapper;
+
+import org.apache.roller.pojos.WebsiteData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.WebsiteData
+ */
+public class WebsiteDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private WebsiteData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private WebsiteDataWrapper(WebsiteData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static WebsiteDataWrapper wrap(WebsiteData toWrap) {
+        if(toWrap != null)
+            return new WebsiteDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.TemplateWrapper getPageByAction(java.lang.String
action)
+        throws org.apache.roller.RollerException
+    {
+        return org.apache.roller.pojos.wrapper.TemplateWrapper.wrap(this.pojo.getPageByAction(action));
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.TemplateWrapper getPageByName(java.lang.String
name)
+        throws org.apache.roller.RollerException
+    {
+        return org.apache.roller.pojos.wrapper.TemplateWrapper.wrap(this.pojo.getPageByName(name));
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.TemplateWrapper getPageByLink(java.lang.String
link)
+        throws org.apache.roller.RollerException
+    {
+        return org.apache.roller.pojos.wrapper.TemplateWrapper.wrap(this.pojo.getPageByLink(link));
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getPages()
+    {
+        java.util.List initialCollection = this.pojo.getPages();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.TemplateWrapper.wrap((org.apache.roller.pojos.Template)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getHandle()
+    {   
+        return this.pojo.getHandle();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDescription()
+    {   
+        return this.pojo.getDescription();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.UserDataWrapper getCreator()
+    {
+        return org.apache.roller.pojos.wrapper.UserDataWrapper.wrap(this.pojo.getCreator());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDefaultPageId()
+    {   
+        return this.pojo.getDefaultPageId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getWeblogDayPageId()
+    {   
+        return this.pojo.getWeblogDayPageId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getEnableBloggerApi()
+    {   
+        return this.pojo.getEnableBloggerApi();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public org.apache.roller.pojos.WeblogCategoryData getBloggerCategory()
+    {   
+        return this.pojo.getBloggerCategory();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper getDefaultCategory()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap(this.pojo.getDefaultCategory());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getEditorPage()
+    {   
+        return this.pojo.getEditorPage();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getBlacklist()
+    {   
+        return this.pojo.getBlacklist();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getAllowComments()
+    {   
+        return this.pojo.getAllowComments();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getDefaultAllowComments()
+    {   
+        return this.pojo.getDefaultAllowComments();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public int getDefaultCommentDays()
+    {   
+        return this.pojo.getDefaultCommentDays();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getModerateComments()
+    {   
+        return this.pojo.getModerateComments();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getEmailComments()
+    {   
+        return this.pojo.getEmailComments();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getEmailFromAddress()
+    {   
+        return this.pojo.getEmailFromAddress();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getEmailAddress()
+    {   
+        return this.pojo.getEmailAddress();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getEditorTheme()
+    {   
+        return this.pojo.getEditorTheme();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getLocale()
+    {   
+        return this.pojo.getLocale();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTimeZone()
+    {   
+        return this.pojo.getTimeZone();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.Date getDateCreated()
+    {   
+        return this.pojo.getDateCreated();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDefaultPlugins()
+    {   
+        return this.pojo.getDefaultPlugins();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.Locale getLocaleInstance()
+    {   
+        return this.pojo.getLocaleInstance();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.TimeZone getTimeZoneInstance()
+    {   
+        return this.pojo.getTimeZoneInstance();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public int getEntryDisplayCount()
+    {   
+        return this.pojo.getEntryDisplayCount();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getEnabled()
+    {   
+        return this.pojo.getEnabled();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getActive()
+    {   
+        return this.pojo.getActive();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.Date getLastModified()
+    {   
+        return this.pojo.getLastModified();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean isEnableMultiLang()
+    {   
+        return this.pojo.isEnableMultiLang();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean isShowAllLangs()
+    {   
+        return this.pojo.isShowAllLangs();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getURL()
+    {   
+        return this.pojo.getURL();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getAbsoluteURL()
+    {   
+        return this.pojo.getAbsoluteURL();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public org.apache.roller.pojos.WeblogEntryData getWeblogEntry(java.lang.String anchor)
+    {   
+        return this.pojo.getWeblogEntry(anchor);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getWeblogCategories()
+    {
+        java.util.Set initialCollection = this.pojo.getWeblogCategories();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap((org.apache.roller.pojos.WeblogCategoryData)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getWeblogCategories(java.lang.String categoryPath)
+    {
+        java.util.Set initialCollection = this.pojo.getWeblogCategories(categoryPath);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap((org.apache.roller.pojos.WeblogCategoryData)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper getWeblogCategory(java.lang.String
categoryPath)
+    {
+        return org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap(this.pojo.getWeblogCategory(categoryPath));
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getRecentWeblogEntries(java.lang.String cat,int length)
+    {
+        java.util.List initialCollection = this.pojo.getRecentWeblogEntries(cat,length);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap((org.apache.roller.pojos.WeblogEntryData)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getRecentWeblogEntriesByTag(java.lang.String tag,int length)
+    {
+        java.util.List initialCollection = this.pojo.getRecentWeblogEntriesByTag(tag,length);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap((org.apache.roller.pojos.WeblogEntryData)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getRecentComments(int length)
+    {
+        java.util.List initialCollection = this.pojo.getRecentComments(length);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.CommentDataWrapper.wrap((org.apache.roller.pojos.CommentData)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.FolderDataWrapper getBookmarkFolder(java.lang.String
folderName)
+    {
+        return org.apache.roller.pojos.wrapper.FolderDataWrapper.wrap(this.pojo.getBookmarkFolder(folderName));
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getTodaysReferrers()
+    {
+        java.util.List initialCollection = this.pojo.getTodaysReferrers();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.RefererDataWrapper.wrap((org.apache.roller.pojos.RefererData)
it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public int getTodaysHits()
+    {   
+        return this.pojo.getTodaysHits();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.List getPopularTags(int sinceDays,int length)
+    {   
+        return this.pojo.getPopularTags(sinceDays,length);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public long getCommentCount()
+    {   
+        return this.pojo.getCommentCount();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public long getEntryCount()
+    {   
+        return this.pojo.getEntryCount();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.WebsiteData getPojo() {
+        return this.pojo;
+    }
+
+}



Mime
View raw message