Examples of WeblogEntryDataWrapper


Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

   
    /**
     * Get the next occurring Entry.
     */
    public WeblogEntryDataWrapper getNextEntry() {
        WeblogEntryDataWrapper currentEntry = getWeblogEntry();
        if (mFirstEntry != null) currentEntry = mFirstEntry;
        if (mNextEntry == null && currentEntry != null) {
            String catName = null;
            if (mRollerReq.getWeblogCategory() != null) {
                catName = mRollerReq.getWeblogCategory().getName();
            }
            try {
                WeblogEntryData nextEntry =
                        mWeblogMgr.getNextEntry(currentEntry.getPojo(), catName);
               
                if(nextEntry != null)
                    mNextEntry = WeblogEntryDataWrapper.wrap(nextEntry);
               
                // make sure that mNextEntry is not published to future
View Full Code Here

Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

   
    /**
     * Get the previous occurring Entry.
     */
    public WeblogEntryDataWrapper getPreviousEntry() {
        WeblogEntryDataWrapper currentEntry = getWeblogEntry();
        if (mLastEntry != null) currentEntry = mLastEntry;
        if (mPreviousEntry == null && currentEntry != null ) {
            String catName = null;
            if (mRollerReq.getWeblogCategory() != null) {
                catName = mRollerReq.getWeblogCategory().getName();
            }
            try {
                WeblogEntryData prevEntry =
                        mWeblogMgr.getPreviousEntry(currentEntry.getPojo(), catName);
               
                if(prevEntry != null)
                    mPreviousEntry = WeblogEntryDataWrapper.wrap(prevEntry);
            } catch (RollerException e) {
                mLogger.error("PageModel.getPreviousEntry)", e);
View Full Code Here

Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

   
    /**
     * Get the next occurring Entry.
     */
    public WeblogEntryDataWrapper getNextEntry() {
        WeblogEntryDataWrapper currentEntry = getWeblogEntry();
        if (mFirstEntry != null) currentEntry = mFirstEntry;
        if (mNextEntry == null && currentEntry != null) {
            String catName = null;
            if (mCategory != null) {
                catName = mCategory.getName();
            }
            try {
                WeblogEntryData nextEntry =
                        mWeblogMgr.getNextEntry(currentEntry.getPojo(), catName, mLocale);
               
                if(nextEntry != null)
                    mNextEntry = WeblogEntryDataWrapper.wrap(nextEntry);
               
                // make sure that mNextEntry is not published to future
View Full Code Here

Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

   
    /**
     * Get the previous occurring Entry.
     */
    public WeblogEntryDataWrapper getPreviousEntry() {
        WeblogEntryDataWrapper currentEntry = getWeblogEntry();
        if (mLastEntry != null) currentEntry = mLastEntry;
        if (mPreviousEntry == null && currentEntry != null ) {
            String catName = null;
            if (mCategory != null) {
                catName = mCategory.getName();
            }
            try {
                WeblogEntryData prevEntry =
                        mWeblogMgr.getPreviousEntry(currentEntry.getPojo(), catName, mLocale);
               
                if(prevEntry != null)
                    mPreviousEntry = WeblogEntryDataWrapper.wrap(prevEntry);
            } catch (RollerException e) {
                mLogger.error("PageModel.getPreviousEntry)", e);
View Full Code Here

Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

   
    /**
     * Get the next occurring Entry.
     */
    public WeblogEntryDataWrapper getNextEntry() {
        WeblogEntryDataWrapper currentEntry = getWeblogEntry();
        if (mFirstEntry != null) currentEntry = mFirstEntry;
        if (mNextEntry == null && currentEntry != null) {
            String catName = null;
            if (mCategory != null) {
                catName = mCategory.getName();
            }
            try {
                WeblogEntryData nextEntry =
                        mWeblogMgr.getNextEntry(currentEntry.getPojo(), catName, mLocale);
               
                if(nextEntry != null)
                    mNextEntry = WeblogEntryDataWrapper.wrap(nextEntry);
               
                // make sure that mNextEntry is not published to future
View Full Code Here

Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

   
    /**
     * Get the previous occurring Entry.
     */
    public WeblogEntryDataWrapper getPreviousEntry() {
        WeblogEntryDataWrapper currentEntry = getWeblogEntry();
        if (mLastEntry != null) currentEntry = mLastEntry;
        if (mPreviousEntry == null && currentEntry != null ) {
            String catName = null;
            if (mCategory != null) {
                catName = mCategory.getName();
            }
            try {
                WeblogEntryData prevEntry =
                        mWeblogMgr.getPreviousEntry(currentEntry.getPojo(), catName, mLocale);
               
                if(prevEntry != null)
                    mPreviousEntry = WeblogEntryDataWrapper.wrap(prevEntry);
            } catch (RollerException e) {
                mLogger.error("PageModel.getPreviousEntry)", e);
View Full Code Here

Examples of org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper

    static final long serialVersionUID = -9067148992322255150L;
   
    public int compare(Object val1, Object val2)
    throws ClassCastException
    {
        WeblogEntryDataWrapper entry1 = (WeblogEntryDataWrapper)val1;
        WeblogEntryDataWrapper entry2 = (WeblogEntryDataWrapper)val2;
        long pubTime1 = entry1.getPubTime().getTime();
        long pubTime2 = entry2.getPubTime().getTime();

        if (pubTime1 > pubTime2)
        {
            return -1;
        }
        else if (pubTime1 < pubTime2)
        {
            return 1;
        }

        // if pubTimes are the same, return
        // results of String.compareTo() on Title
        return entry1.getTitle().compareTo(entry2.getTitle());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.