roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r543951 [1/7] - in /roller/trunk/apps/weblogger: src/java/org/apache/roller/weblogger/business/ src/java/org/apache/roller/weblogger/business/hibernate/ src/java/org/apache/roller/weblogger/business/jpa/ src/java/org/apache/roller/weblogger...
Date Sun, 03 Jun 2007 18:16:11 GMT
Author: agilliland
Date: Sun Jun  3 11:16:02 2007
New Revision: 543951

URL: http://svn.apache.org/viewvc?view=rev&rev=543951
Log:
weblogger code should throw application specific WebloggerExceptions rather than generic RollerExceptions.  in order to accomplish this we need the hibernate and jpa PersistenceStrategy classes to be application specific.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/BookmarkManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/DatabaseProvider.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileIOException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileNotFoundException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FilePathException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/PropertiesManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/Roller.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/RollerFactory.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/UserManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogEntryPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateAutoPingManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateBookmarkManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateConnectionProvider.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePersistenceStrategy.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePingQueueManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePingTargetManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePropertiesManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateRefererManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateRollerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateThreadManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateUserManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateWeblogManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAAutoPingManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPABookmarkManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPingQueueManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPingTargetManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAPropertiesManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPARollerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAThreadManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAUserManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/JPAWeblogManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/AutoPingManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/PingQueueManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/PingQueueProcessor.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/PingQueueTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/PingTargetManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/referrers/RefererManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/referrers/ReferrerProcessingJob.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/referrers/ReferrerQueueManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/HitCountProcessingJob.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ResetHitCountsTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/RollerTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/RollerTaskWithLeasing.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ScheduledEntriesTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/TurnoverReferersTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/IndexManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/IndexManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/operations/AddEntryOperation.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/operations/ReIndexEntryOperation.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/operations/RebuildWebsiteIndexOperation.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/operations/RemoveEntryOperation.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/search/operations/RemoveWebsiteIndexOperation.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeTemplate.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/ThemeInitializationException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/ThemeManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/ThemeManagerImpl.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/ThemeNotFoundException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/ThemeParsingException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/WeblogCustomTheme.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/WeblogSharedTheme.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/utils/UpgradeDatabase.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/config/PingConfig.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/planet/tasks/RefreshRollerPlanetTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/planet/tasks/SyncWebsitesTask.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/Theme.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/User.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/Weblog.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogBookmarkFolder.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogCategory.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogEntry.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/WeblogTemplate.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/wrapper/FolderDataWrapper.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/wrapper/WeblogCategoryDataWrapper.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/pojos/wrapper/WebsiteDataWrapper.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/core/RollerContext.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/core/RollerSession.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/core/security/BasicUserAutoProvision.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/core/security/RollerUserDetailsService.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/core/tags/calendar/BigWeblogCalendarModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/core/tags/calendar/WeblogCalendarModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/RenderingException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/CalendarModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/ConfigModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/FeedModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/MenuModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/MessageModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/Model.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/ModelLoader.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/PageModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/PlanetModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/PreviewPageModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/PreviewURLModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/SearchResultsFeedModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/SearchResultsModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/SiteModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/URLModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/model/UtilitiesModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/pagers/WeblogEntriesPermalinkPager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/AcronymsPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/BookmarkPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/ConvertLineBreaksPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/ObfuscateEmailPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/SearchPluginBase.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/SmileysPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/plugins/TopicTagPlugin.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/CommentServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/FeedServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/PageServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/PlanetFeedServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/PreviewResourceServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/PreviewServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/RSDServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/ResourceServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/SearchServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/servlets/TrackbackServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/InvalidRequestException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/ParsedRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogCommentRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogFeedRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogPageRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogPreviewRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogPreviewResourceRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogSearchRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/WeblogTrackbackRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/cache/PlanetCache.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/util/cache/WeblogCacheWarmupJob.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/RollerResourceLoader.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/ThemeResourceLoader.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldFeedRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageRequest.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldWeblogPageModel.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/admin/CommonPingTargets.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/admin/CreateUser.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/admin/GlobalCommentManagement.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/admin/GlobalConfig.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/admin/ModifyUser.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/ajax/UserDataServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/common/PingTargetEditBase.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/common/PingTargetsBase.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/CreateWeblog.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/MainMenu.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Profile.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Register.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/core/Setup.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/BookmarkAdd.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/BookmarkEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Bookmarks.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Categories.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryAdd.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryBean.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/CategoryRemove.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Comments.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargets.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Entries.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/EntryAdd.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/EntryBase.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/EntryBean.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/EntryEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/EntryRemove.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/FolderAdd.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/FolderBean.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/FolderEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/MembersInvite.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Pings.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/StylesheetEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/TemplateEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/TemplateEditBean.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/TemplateRemove.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/Templates.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/ThemeEdit.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/struts2/editor/WeblogConfigBean.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/util/MailUtil.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/util/MediacastException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/util/TimeZoneComparator.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/util/Trackback.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/util/TrackbackNotAllowedException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/util/cache/CacheManager.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/Authenticator.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/BasicAuthenticator.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/Handler.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/RollerMemberHandler.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/RollerUserHandler.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/adminprotocol/RollerWeblogHandler.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/AtomException.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/json/TagStatsServlet.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/BloggerAPIHandler.java
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/xmlrpc/MetaWeblogAPIHandler.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/TestUtils.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/BookmarkTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/CommentTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/FolderFunctionalityTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/FolderParentDeletesTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/RefererTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/WeblogCategoryCRUDTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/business/WeblogCategoryParentDeletesTest.java
    roller/trunk/apps/weblogger/test/java/org/apache/roller/weblogger/webservices/xmlrpc/RollerXmlRpcServerTest.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/BookmarkManager.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/BookmarkManager.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/BookmarkManager.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/BookmarkManager.java Sun Jun  3 11:16:02 2007
@@ -19,7 +19,7 @@
 package org.apache.roller.weblogger.business;
 
 import java.util.List;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.WeblogBookmark;
 import org.apache.roller.weblogger.pojos.WeblogBookmarkFolder;
 import org.apache.roller.weblogger.pojos.Weblog;
@@ -39,9 +39,9 @@
      * fact that a weblog cannot have 2 folders with the same path.
      *
      * @param folder The folder to be saved.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void saveFolder(WeblogBookmarkFolder folder) throws RollerException;
+    public void saveFolder(WeblogBookmarkFolder folder) throws WebloggerException;
     
     
     /**
@@ -50,9 +50,9 @@
      * Also removes any subfolders and bookmarks.
      *
      * @param folder The folder to be removed.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void removeFolder(WeblogBookmarkFolder folder) throws RollerException;
+    public void removeFolder(WeblogBookmarkFolder folder) throws WebloggerException;
     
     
     /**
@@ -64,7 +64,7 @@
 
     WeblogBookmarkFolder dest
 )
-            throws RollerException;
+            throws WebloggerException;
     
     
     /**
@@ -72,9 +72,9 @@
      *
      * @param id The id of the folder to lookup.
      * @returns FolderData The folder, or null if not found.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public WeblogBookmarkFolder getFolder(String id) throws RollerException;
+    public WeblogBookmarkFolder getFolder(String id) throws WebloggerException;
     
     
     /** 
@@ -82,9 +82,9 @@
      *
      * @param weblog The weblog we want the folders from.
      * @returns List The list of FolderData objects from the weblog.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public List getAllFolders(Weblog weblog) throws RollerException;
+    public List getAllFolders(Weblog weblog) throws WebloggerException;
     
     
     /** 
@@ -93,9 +93,9 @@
      *
      * @param weblog The weblog we want the root folder from.
      * @returns FolderData The root folder, or null if not found.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public WeblogBookmarkFolder getRootFolder(Weblog weblog) throws RollerException;
+    public WeblogBookmarkFolder getRootFolder(Weblog weblog) throws WebloggerException;
     
     
     /** 
@@ -104,28 +104,28 @@
      * @param weblog The weblog we want the folder from.
      * @param path The full path of the folder.
      * @returns FolderData The folder from the given path, or null if not found.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
     public WeblogBookmarkFolder getFolder(Weblog weblog, String path)
-            throws RollerException;
+            throws WebloggerException;
     
     
     /**
      * Save a Bookmark.
      *
      * @param bookmark The bookmark to be saved.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void saveBookmark(WeblogBookmark bookmark) throws RollerException;
+    public void saveBookmark(WeblogBookmark bookmark) throws WebloggerException;
     
     
     /**
      * Remove a Bookmark.
      *
      * @param bookmark The bookmark to be removed.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void removeBookmark(WeblogBookmark bookmark) throws RollerException;
+    public void removeBookmark(WeblogBookmark bookmark) throws WebloggerException;
     
     
     /** 
@@ -133,9 +133,9 @@
      *
      * @param id The id of the bookmark to lookup.
      * @returns BookmarkData The bookmark, or null if not found.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public WeblogBookmark getBookmark(String id) throws RollerException;
+    public WeblogBookmark getBookmark(String id) throws WebloggerException;
     
     
     /** 
@@ -144,10 +144,10 @@
      * @param folder The folder to get the bookmarks from.
      * @param recurse True if bookmarks should be included.
      * @returns List The list of bookmarks found.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
     public List getBookmarks(WeblogBookmarkFolder folder, boolean recurse)
-            throws RollerException;
+            throws WebloggerException;
     
     
     /** 
@@ -158,7 +158,7 @@
      * @param opml OPML data to be imported.
      */
     public void importBookmarks(Weblog weblog, String folder, String opml)
-            throws RollerException;
+            throws WebloggerException;
     
     
     /**

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/DatabaseProvider.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/DatabaseProvider.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/DatabaseProvider.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/DatabaseProvider.java Sun Jun  3 11:16:02 2007
@@ -9,7 +9,7 @@
 import javax.sql.DataSource;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.config.RollerConfig;
 
 /**
@@ -52,7 +52,7 @@
      * Reads configuraiton, loads driver or locates data-source and attempts
      * to get test connecton so that we can fail early.
      */ 
-    private DatabaseProvider() throws RollerException {
+    private DatabaseProvider() throws WebloggerException {
         String connectionTypeString = 
                 RollerConfig.getProperty("database.configurationType"); 
         if ("jdbc".equals(connectionTypeString)) {
@@ -70,7 +70,7 @@
             try {
                 Class.forName(getJdbcDriverClass());
             } catch (ClassNotFoundException ex) {
-                throw new RollerException(
+                throw new WebloggerException(
                    "Cannot load specified JDBC driver class [" +getJdbcDriverClass()+ "]", ex);
             }
             if (getJdbcUsername() != null || getJdbcPassword() != null) {
@@ -85,7 +85,7 @@
                 InitialContext ic = new InitialContext();
                 dataSource = (DataSource)ic.lookup(name);
             } catch (NamingException ex) {
-                throw new RollerException(
+                throw new WebloggerException(
                     "ERROR looking up data-source with JNDI name: " + name, ex);
             }            
         }
@@ -93,14 +93,14 @@
             Connection testcon = getConnection();
             testcon.close();
         } catch (Throwable t) {
-            throw new RollerException("ERROR unable to obtain connection", t);
+            throw new WebloggerException("ERROR unable to obtain connection", t);
         }
     }
     
     /**
      * Get global database provider singlton, instantiating if necessary.
      */
-    public static DatabaseProvider getDatabaseProvider() throws RollerException {
+    public static DatabaseProvider getDatabaseProvider() throws WebloggerException {
         if (singletonInstance == null) {
             singletonInstance = new DatabaseProvider();
         }

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileIOException.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileIOException.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileIOException.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileIOException.java Sun Jun  3 11:16:02 2007
@@ -18,14 +18,14 @@
 
 package org.apache.roller.weblogger.business;
 
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 
 
 /**
  * Thrown from the FileManager if there is some kind of IO exception while
  * working on a file, such as during a save or delete.
  */
-public class FileIOException extends RollerException {
+public class FileIOException extends WebloggerException {
     
     public FileIOException(String s) {
         super(s);

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileNotFoundException.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileNotFoundException.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileNotFoundException.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FileNotFoundException.java Sun Jun  3 11:16:02 2007
@@ -18,13 +18,13 @@
 
 package org.apache.roller.weblogger.business;
 
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 
 
 /**
  * Thrown from the FileManager if a file path does not exist.
  */
-public class FileNotFoundException extends RollerException {
+public class FileNotFoundException extends WebloggerException {
     
     public FileNotFoundException(String s) {
         super(s);

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FilePathException.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FilePathException.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FilePathException.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/FilePathException.java Sun Jun  3 11:16:02 2007
@@ -18,14 +18,14 @@
 
 package org.apache.roller.weblogger.business;
 
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 
 
 /**
  * Thrown from the FileManager if a file path is considered invalid for some
  * reason, like it represents a directory instead of a file.
  */
-public class FilePathException extends RollerException {
+public class FilePathException extends WebloggerException {
     
     public FilePathException(String s) {
         super(s);

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/MailProvider.java Sun Jun  3 11:16:02 2007
@@ -10,7 +10,7 @@
 import javax.naming.NamingException;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.config.RollerConfig;
 
 /**
@@ -34,7 +34,7 @@
 
         
     /** Creates a new instance of MailProvider */
-    public MailProvider() throws RollerException {
+    public MailProvider() throws WebloggerException {
         String connectionTypeString = RollerConfig.getProperty("mail.configurationType"); 
         if ("properties".equals(connectionTypeString)) {
             type = ConfigurationType.MAIL_PROPERTIES;
@@ -56,7 +56,7 @@
                 Context ctx = (Context) new InitialContext().lookup(name);
                 session = (Session)ctx.lookup(name);        
             } catch (NamingException ex) {
-                throw new RollerException("ERROR looking up mail-session with JNDI name: " + name);
+                throw new WebloggerException("ERROR looking up mail-session with JNDI name: " + name);
             }
         } else {
             Properties props = new Properties();
@@ -69,12 +69,12 @@
             Transport transport = getTransport();
             transport.close();
         } catch (Throwable t) {
-            throw new RollerException("ERROR connecting to mail server", t);
+            throw new WebloggerException("ERROR connecting to mail server", t);
         }
         
     }
     
-    public static MailProvider getMailProvider() throws RollerException {
+    public static MailProvider getMailProvider() throws WebloggerException {
         if (singletonInstance == null) {
             singletonInstance = new MailProvider();
         }

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/PropertiesManager.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/PropertiesManager.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/PropertiesManager.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/PropertiesManager.java Sun Jun  3 11:16:02 2007
@@ -24,7 +24,7 @@
 package org.apache.roller.weblogger.business;
 
 import java.util.Map;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.RuntimeConfigProperty;
 
 
@@ -42,24 +42,24 @@
     /** 
      * Save a single property 
      */
-    public void saveProperty(RuntimeConfigProperty property) throws RollerException;
+    public void saveProperty(RuntimeConfigProperty property) throws WebloggerException;
     
     
     /** 
      * Save a list of properties 
      */
-    public void saveProperties(Map properties) throws RollerException;
+    public void saveProperties(Map properties) throws WebloggerException;
     
     
     /** 
      * Retrieve a single property by name 
      */
-    public RuntimeConfigProperty getProperty(String name) throws RollerException;
+    public RuntimeConfigProperty getProperty(String name) throws WebloggerException;
     
     
     /** 
      * Retrieve a list of all properties 
      */
-    public Map getProperties() throws RollerException;
+    public Map getProperties() throws WebloggerException;
     
 }

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/Roller.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/Roller.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/Roller.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/Roller.java Sun Jun  3 11:16:02 2007
@@ -20,7 +20,7 @@
 
 import java.io.Serializable;
 import java.sql.Connection;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.business.pings.AutoPingManager;
 import org.apache.roller.weblogger.business.pings.PingQueueManager;
 import org.apache.roller.weblogger.business.pings.PingTargetManager;
@@ -124,7 +124,7 @@
     /**
      * Flush object states.
      */
-    public void flush() throws RollerException;
+    public void flush() throws WebloggerException;
     
     
     /**

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/RollerFactory.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/RollerFactory.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/RollerFactory.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/RollerFactory.java Sun Jun  3 11:16:02 2007
@@ -20,7 +20,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.config.PingConfig;
 import org.apache.roller.weblogger.config.RollerConfig;
 
@@ -84,7 +84,7 @@
                 log.info("Ping usage has been disabled.  Removing any existing auto ping configurations.");
                 RollerFactory.getRoller().getAutopingManager().removeAllAutoPings();
             }
-        } catch (RollerException e) {
+        } catch (WebloggerException e) {
             log.error("ERROR configing ping managers", e);
         }
     }

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/UserManager.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/UserManager.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/UserManager.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/UserManager.java Sun Jun  3 11:16:02 2007
@@ -21,7 +21,7 @@
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.WeblogTemplate;
 import org.apache.roller.weblogger.pojos.WeblogPermission;
 import org.apache.roller.weblogger.pojos.User;
@@ -41,27 +41,27 @@
      * if the new user is the first user and give that user the admin role if so.
      *
      * @param newUser User object to be added.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void addUser(User newUser) throws RollerException;
+    public void addUser(User newUser) throws WebloggerException;
     
     
     /**
      * Save a user.
      *
      * @param user User to be saved.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void saveUser(User user) throws RollerException;
+    public void saveUser(User user) throws WebloggerException;
     
     
     /**
      * Remove a user.
      *
      * @param user User to be removed.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public void removeUser(User user) throws RollerException;
+    public void removeUser(User user) throws WebloggerException;
     
     
     /**
@@ -69,9 +69,9 @@
      * 
      * @param id ID of user to lookup.
      * @returns UsUserhe user, or null if not found.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public User getUser(String id) throws RollerException;
+    public User getUser(String id) throws WebloggerException;
     
     
     /**
@@ -82,9 +82,9 @@
      * 
      * @param userName User Name of user to lookup.
      * @returns UsUserhe user, or null if not found or is disabled.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
-    public User getUserByUserName(String userName) throws RollerException;
+    public User getUserByUserName(String userName) throws WebloggerException;
     
     
     /**
@@ -93,10 +93,10 @@
      * @param userName User Name of user to lookup.
      * @returns UsUserhe user, or null if not found or doesn't match 
      *   the proper enabled status.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
     public User getUserByUserName(String userName, Boolean enabled)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -113,7 +113,7 @@
      * @param offset The index of the first result to return.
      * @param length The number of results to return.
      * @returns List A list of UserDatUsers which match the criteria.
-     * @throws RollerException If there is a problem.
+     * @throws WebloggerException If there is a problem.
      */
     public List getUsers(
             Weblog weblog,
@@ -121,7 +121,7 @@
             Date    startDate,
             Date    endDate,
             int     offset,
-            int     length) throws RollerException;
+            int     length) throws WebloggerException;
     
     
     /**
@@ -134,7 +134,7 @@
      * @return List of (up to length) users that match startsWith string
      */
     public List getUsersStartingWith(String startsWith,
-            Boolean enabled, int offset, int length) throws RollerException;
+            Boolean enabled, int offset, int length) throws WebloggerException;
     
     
     /**
@@ -142,14 +142,14 @@
      * containing integers reflecting the number of users whose
      * names start with each letter.
      */
-    public Map getUserNameLetterMap() throws RollerException;
+    public Map getUserNameLetterMap() throws WebloggerException;
     
     
     /** 
      * Get collection of users whose names begin with specified letter 
      */
     public List getUsersByLetter(char letter, int offset, int length) 
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -157,32 +157,32 @@
      * creates categories and other objects required for new website.
      * @param newWebsite New website to be created, must have creator.
      */
-    public void addWebsite(Weblog newWebsite) throws RollerException;
+    public void addWebsite(Weblog newWebsite) throws WebloggerException;
     
     
     /**
      * Store a single weblog.
      */
-    public void saveWebsite(Weblog data) throws RollerException;
+    public void saveWebsite(Weblog data) throws WebloggerException;
     
     
     /**
      * Remove website object.
      */
-    public void removeWebsite(Weblog website) throws RollerException;
+    public void removeWebsite(Weblog website) throws WebloggerException;
     
     
     /**
      * Get website object by name.
      */
-    public Weblog getWebsite(String id) throws RollerException;
+    public Weblog getWebsite(String id) throws WebloggerException;
     
     
     /**
      * Get website specified by handle (or null if enabled website not found).
      * @param handle  Handle of website
      */
-    public Weblog getWebsiteByHandle(String handle) throws RollerException;
+    public Weblog getWebsiteByHandle(String handle) throws WebloggerException;
     
     
     /**
@@ -190,7 +190,7 @@
      * @param handle  Handle of website
      */
     public Weblog getWebsiteByHandle(String handle, Boolean enabled)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -212,7 +212,7 @@
             Date     endDate,
             int      offset,
             int      length)
-            throws RollerException;
+            throws WebloggerException;
     
     
     /**
@@ -228,7 +228,7 @@
             Date endDate,
             int  offset,
             int  length)
-            throws RollerException;
+            throws WebloggerException;
     
     
     /**
@@ -236,32 +236,32 @@
      * containing integers reflecting the number of weblogs whose
      * names start with each letter.
      */
-    public Map getWeblogHandleLetterMap() throws RollerException;
+    public Map getWeblogHandleLetterMap() throws WebloggerException;
     
     
     /** 
      * Get collection of weblogs whose handles begin with specified letter 
      */
     public List getWeblogsByLetter(char letter, int offset, int length) 
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
      * Save permissions object.
      */
-    public void savePermissions(WeblogPermission perms) throws RollerException;
+    public void savePermissions(WeblogPermission perms) throws WebloggerException;
     
     
     /**
      * Remove permissions object.
      */
-    public void removePermissions(WeblogPermission perms) throws RollerException;
+    public void removePermissions(WeblogPermission perms) throws WebloggerException;
     
     
     /**
      * Get permissions object by id.
      */
-    public WeblogPermission getPermissions(String id) throws RollerException;
+    public WeblogPermission getPermissions(String id) throws WebloggerException;
     
     
     /**
@@ -269,7 +269,7 @@
      * @param user User (not null)
      * @returns List of PermissionsData objects.
      */
-    public List getPendingPermissions(User user) throws RollerException;
+    public List getPendingPermissions(User user) throws WebloggerException;
     
     
     /**
@@ -277,7 +277,7 @@
      * @param website Website (not null)
      * @returns List of PermissionsData objects.
      */
-    public List getPendingPermissions(Weblog user) throws RollerException;
+    public List getPendingPermissions(Weblog user) throws WebloggerException;
     
     
     /**
@@ -287,7 +287,7 @@
      * @return        PermissionsData object
      */
     public WeblogPermission getPermissions(Weblog website, User user)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -295,7 +295,7 @@
      * @param website Website (not null)
      * @return        PermissionsData object
      */
-    public List getAllPermissions(Weblog website) throws RollerException;
+    public List getAllPermissions(Weblog website) throws WebloggerException;
     
     
     /**
@@ -303,7 +303,7 @@
      * @param user User (not null)
      * @return     PermissionsData object
      */
-    public List getAllPermissions(User user) throws RollerException;
+    public List getAllPermissions(User user) throws WebloggerException;
     
     
     /**
@@ -314,7 +314,7 @@
      * @return        New PermissionsData object, with pending=true
      */
     public WeblogPermission inviteUser(Weblog website, User user, short perms)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -323,7 +323,7 @@
      * @param user    User to be retired (persistent instance)
      */
     public void retireUser(Weblog website, User user)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -332,61 +332,61 @@
      * @param user    User for whom the role is to be revoked
      */
     public void revokeRole(String roleName, User user)
-        throws RollerException;
+        throws WebloggerException;
 
     /**
      * Store page.
      */
-    public void savePage(WeblogTemplate data) throws RollerException;
+    public void savePage(WeblogTemplate data) throws WebloggerException;
     
     
     /**
      * Remove page.
      */
-    public void removePage(WeblogTemplate page) throws RollerException;
+    public void removePage(WeblogTemplate page) throws WebloggerException;
     
     
     /**
      * Get page by id.
      */
-    public WeblogTemplate getPage(String id) throws RollerException;
+    public WeblogTemplate getPage(String id) throws WebloggerException;
     
     
     /**
      * Get user's page by action.
      */
-    public WeblogTemplate getPageByAction(Weblog w, String a) throws RollerException;
+    public WeblogTemplate getPageByAction(Weblog w, String a) throws WebloggerException;
     
     
     /**
      * Get user's page by name.
      */
-    public WeblogTemplate getPageByName(Weblog w, String p) throws RollerException;
+    public WeblogTemplate getPageByName(Weblog w, String p) throws WebloggerException;
     
     
     /**
      * Get website's page by link.
      */
     public WeblogTemplate getPageByLink(Weblog w, String p)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
      * Get website's pages
      */
-    public List getPages(Weblog w) throws RollerException;
+    public List getPages(Weblog w) throws WebloggerException;
    
     
     /**
      * Get count of active weblogs
      */    
-    public long getWeblogCount() throws RollerException;
+    public long getWeblogCount() throws WebloggerException;
 
     
     /**
      * Get count of enabled users
      */    
-    public long getUserCount() throws RollerException; 
+    public long getUserCount() throws WebloggerException; 
     
     
     /**
@@ -399,17 +399,17 @@
      * get a user by activation code
      * @param activationCode
      * @return
-     * @throws RollerException
+     * @throws WebloggerException
      */
-    public User getUserByActivationCode(String activationCode) throws RollerException;
+    public User getUserByActivationCode(String activationCode) throws WebloggerException;
     
     /**
      * get a user by password request code
      * @param passwordRequestCode
      * @return
-     * @throws RollerException
+     * @throws WebloggerException
      */
-    //public User getUserByPasswordRequestCode(String passwordRequestCode) throws RollerException;
+    //public User getUserByPasswordRequestCode(String passwordRequestCode) throws WebloggerException;
 
 
 }

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogEntryPlugin.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogEntryPlugin.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogEntryPlugin.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogEntryPlugin.java Sun Jun  3 11:16:02 2007
@@ -19,7 +19,7 @@
 package org.apache.roller.weblogger.business;
 
 import java.util.Map;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.WeblogEntry;
 import org.apache.roller.weblogger.pojos.Weblog;
 
@@ -50,7 +50,7 @@
      * @param weblog     Weblog being processed
      * @param model      Rendering model where objects can be placed
      */
-    public void init(Weblog weblog) throws RollerException;
+    public void init(Weblog weblog) throws WebloggerException;
     
     
     /**

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogManager.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogManager.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogManager.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/WeblogManager.java Sun Jun  3 11:16:02 2007
@@ -21,7 +21,7 @@
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.WeblogEntryComment;
 import org.apache.roller.weblogger.pojos.WeblogHitCount;
 import org.apache.roller.weblogger.pojos.User;
@@ -42,23 +42,23 @@
     /**
      * Save weblog entry.
      */
-    public void saveWeblogEntry(WeblogEntry entry) throws RollerException;
+    public void saveWeblogEntry(WeblogEntry entry) throws WebloggerException;
        
     /**
      * Remove weblog entry.
      */
-    public void removeWeblogEntry(WeblogEntry entry) throws RollerException;    
+    public void removeWeblogEntry(WeblogEntry entry) throws WebloggerException;    
     
     /**
      * Get weblog entry by id.
      */
-    public WeblogEntry getWeblogEntry(String id) throws RollerException;
+    public WeblogEntry getWeblogEntry(String id) throws WebloggerException;
     
     /** 
      * Get weblog entry by anchor. 
      */
     public WeblogEntry getWeblogEntryByAnchor(Weblog website, String anchor) 
-            throws RollerException;
+            throws WebloggerException;
         
     /**
      * Get WeblogEntries by offset/length as list in reverse chronological order.
@@ -75,7 +75,7 @@
      * @param offset     Offset into results for paging
      * @param length     Max comments to return (or -1 for no limit)
      * @return List of WeblogEntryData objects in reverse chrono order.
-     * @throws RollerException
+     * @throws WebloggerException
      */
     public List getWeblogEntries(
             Weblog website,
@@ -91,7 +91,7 @@
             String      locale,             
             int         offset,
             int         range)
-            throws RollerException;
+            throws WebloggerException;
        
     /**
      * Get Weblog Entries grouped by day. This method returns a Map that
@@ -105,7 +105,7 @@
      * @param offset     Offset into results for paging
      * @param length     Max comments to return (or -1 for no limit)
      * @return Map of Lists, keyed by Date, and containing WeblogEntryData.
-     * @throws RollerException
+     * @throws WebloggerException
      */
     public Map getWeblogEntryObjectMap(
             Weblog website,
@@ -117,7 +117,7 @@
             String      locale,
             int         offset,
             int         range)
-            throws RollerException;
+            throws WebloggerException;
         
     /**
      * Get Weblog Entry date strings grouped by day. This method returns a Map
@@ -131,7 +131,7 @@
      * @param offset     Offset into results for paging
      * @param length     Max comments to return (or -1 for no limit)
      * @return Map of Lists, keyed by Date, and containing date strings.
-     * @throws RollerException
+     * @throws WebloggerException
      */
     public Map getWeblogEntryStringMap(
             Weblog website,
@@ -143,7 +143,7 @@
             String      locale,
             int         offset,
             int         range)
-            throws RollerException;    
+            throws WebloggerException;    
     
     /**
      * Get weblog entries with given category or, optionally, any sub-category
@@ -153,7 +153,7 @@
      * @return        List of weblog entries in category
      */
     public List getWeblogEntries(WeblogCategory cat, boolean subcats) 
-            throws RollerException; 
+            throws WebloggerException; 
     
     /** 
      * Get weblog enties ordered by descending number of comments.
@@ -170,7 +170,7 @@
             Date        endDate,
             int         offset, 
             int         length)
-            throws RollerException;
+            throws WebloggerException;
     
     /**
      * Get the WeblogEntry following, chronologically, the current entry.
@@ -179,7 +179,7 @@
      * @param catName The value of the requested Category Name
      */
     public WeblogEntry getNextEntry(WeblogEntry current, 
-            String catName, String locale) throws RollerException;    
+            String catName, String locale) throws WebloggerException;    
     
     /**
      * Get the WeblogEntry prior to, chronologically, the current entry.
@@ -188,7 +188,7 @@
      * @param catName The value of the requested Category Name.
      */
     public WeblogEntry getPreviousEntry(WeblogEntry current, 
-            String catName, String locale) throws RollerException;
+            String catName, String locale) throws WebloggerException;
       
     
     /**
@@ -196,36 +196,36 @@
      * @param max Maximum number to return.
      * @return Collection of WeblogEntryData objects.
      */
-    public List getWeblogEntriesPinnedToMain(Integer max) throws RollerException;
+    public List getWeblogEntriesPinnedToMain(Integer max) throws WebloggerException;
 
     /**
      * Remove attribute with given name from given WeblogEntryData
      * @param name Name of attribute to be removed
      */
     public void removeWeblogEntryAttribute(String name,WeblogEntry entry)
-            throws RollerException;
+            throws WebloggerException;
 
     /**
      * Remove tag with given name from given WeblogEntryData
      * @param name Name of tag to be removed
      */
     public void removeWeblogEntryTag(String name,WeblogEntry entry)
-            throws RollerException;
+            throws WebloggerException;
 
     /**
      * Save weblog category.
      */
-    public void saveWeblogCategory(WeblogCategory cat) throws RollerException;
+    public void saveWeblogCategory(WeblogCategory cat) throws WebloggerException;
     
     /**
      * Remove weblog category.
      */
-    public void removeWeblogCategory(WeblogCategory cat) throws RollerException;
+    public void removeWeblogCategory(WeblogCategory cat) throws WebloggerException;
         
     /**
      * Get category by id.
      */
-    public WeblogCategory getWeblogCategory(String id) throws RollerException;
+    public WeblogCategory getWeblogCategory(String id) throws WebloggerException;
     
     
     /**
@@ -234,20 +234,20 @@
      * This moves the src category itself and all children and associated entries.
      */
     public void moveWeblogCategory(WeblogCategory src, WeblogCategory dest)
-            throws RollerException;
+            throws WebloggerException;
     
     
     /**
      * Recategorize all entries with one category to another.
      */
     public void moveWeblogCategoryContents(WeblogCategory srcCat, WeblogCategory destCat) 
-            throws RollerException;
+            throws WebloggerException;
     
     /**
      * Get top level categories for a website.
      * @param website Website.
      */
-    public WeblogCategory getRootWeblogCategory(Weblog website) throws RollerException;
+    public WeblogCategory getRootWeblogCategory(Weblog website) throws WebloggerException;
     
     
     /**
@@ -256,30 +256,30 @@
      * @param categoryPath Path of WeblogCategory, relative to category root.
      */
     public WeblogCategory getWeblogCategoryByPath(Weblog website, 
-            String categoryPath) throws RollerException;
+            String categoryPath) throws WebloggerException;
     
     
     /** 
      * Get WebLogCategory objects for a website. 
      */
     public List getWeblogCategories(Weblog website, boolean includeRoot)
-            throws RollerException;
+            throws WebloggerException;
     
                
     /**
      * Save comment.
      */
-    public void saveComment(WeblogEntryComment comment) throws RollerException;
+    public void saveComment(WeblogEntryComment comment) throws WebloggerException;
     
     /**
      * Remove comment.
      */
-    public void removeComment(WeblogEntryComment comment) throws RollerException;
+    public void removeComment(WeblogEntryComment comment) throws WebloggerException;
    
     /**
      * Get comment by id.
      */
-    public WeblogEntryComment getComment(String id) throws RollerException;
+    public WeblogEntryComment getComment(String id) throws WebloggerException;
        
     /**
      * Generic comments query method.
@@ -303,7 +303,7 @@
             int             offset,
             int             length
             
-            ) throws RollerException;
+            ) throws WebloggerException;
 
     /**
      * Deletes comments that match paramters.
@@ -322,31 +322,31 @@
             Date            endDate,
             String          status
             
-            ) throws RollerException;
+            ) throws WebloggerException;
         
     /**
      * Create unique anchor for weblog entry.
      */
-    public String createAnchor(WeblogEntry data) throws RollerException;    
+    public String createAnchor(WeblogEntry data) throws WebloggerException;    
     
     /**
      * Check for duplicate category name.
      */
     public boolean isDuplicateWeblogCategoryName(WeblogCategory data)
-            throws RollerException;  
+            throws WebloggerException;  
     
     /**
      * Check if weblog category is in use.
      */
     public boolean isWeblogCategoryInUse(WeblogCategory data)
-            throws RollerException;    
+            throws WebloggerException;    
     
     
     /**
      * Apply comment default settings from website to all of website's entries.
      */
     public void applyCommentDefaultsToEntries(Weblog website) 
-        throws RollerException;
+        throws WebloggerException;
     
     /**
      * Release all resources held by manager.
@@ -359,10 +359,10 @@
      * @param startDate     Date or null of the most recent time a tag was used.
      * @param limit         Max TagStats to return (or -1 for no limit)
      * @return
-     * @throws RollerException
+     * @throws WebloggerException
      */
     public List getPopularTags(Weblog website, Date startDate, int limit)
-            throws RollerException;
+            throws WebloggerException;
     
     /**
      * Get list of TagStat. There's no offset/length params just a limit.
@@ -371,10 +371,10 @@
      * @param startsWith    Prefix for tags to be returned (null or a string of length > 0)
      * @param limit         Max TagStats to return (or -1 for no limit)
      * @return
-     * @throws RollerException
+     * @throws WebloggerException
      */
     public List getTags(Weblog website, String sortBy, String startsWith, int limit)
-            throws RollerException;    
+            throws WebloggerException;    
     
     /**
      * Does the specified tag combination exist?  Optionally confined to a specific weblog.
@@ -387,10 +387,10 @@
      * @param tags The List of tags to check for.
      * @param weblog The weblog to confine the check to.
      * @return True if tags exist, false otherwise.
-     * @throws RollerException If there is any problem doing the operation.
+     * @throws WebloggerException If there is any problem doing the operation.
      */
     public boolean getTagComboExists(List tags, Weblog weblog) 
-        throws RollerException;
+        throws WebloggerException;
     
     /**
      * This method maintains the tag aggregate table up-to-date with total counts. More
@@ -401,10 +401,10 @@
      * @param name      The tag name
      * @param website   The website to used when updating the stats.
      * @param amount    The amount to increment the tag count (it can be positive or negative).
-     * @throws RollerException
+     * @throws WebloggerException
      */
     public void updateTagCount(String name, Weblog website, int amount)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -412,9 +412,9 @@
      *
      * @param id The HitCountData id.
      * @return The HitCountData object, or null if it wasn't found.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
-    public WeblogHitCount getHitCount(String id) throws RollerException;
+    public WeblogHitCount getHitCount(String id) throws WebloggerException;
     
     
     /**
@@ -422,10 +422,10 @@
      *
      * @param weblog The WebsiteData that you want the hit count for.
      * @return The HitCountData object, or null if it wasn't found.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
     public WeblogHitCount getHitCountByWeblog(Weblog weblog)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
@@ -441,28 +441,28 @@
      * @param offset What index in the results to begin from.
      * @param length The number of results to return.
      * @return The list of HitCountData objects ranked by hit count, descending.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
     public List getHotWeblogs(int sinceDays, int offset, int length)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
      * Save a HitCountData object.
      *
      * @param hitCount The HitCountData object to save.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
-    public void saveHitCount(WeblogHitCount hitCount) throws RollerException;
+    public void saveHitCount(WeblogHitCount hitCount) throws WebloggerException;
     
     
     /**
      * Remove a HitCountData object.
      *
      * @param hitCount The HitCountData object to remove.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
-    public void removeHitCount(WeblogHitCount hitCount) throws RollerException;
+    public void removeHitCount(WeblogHitCount hitCount) throws WebloggerException;
     
     
     /**
@@ -473,51 +473,51 @@
      *
      * @param weblog The WebsiteData object to increment the count for.
      * @param amount How much to increment by.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
     public void incrementHitCount(Weblog weblog, int amount)
-        throws RollerException;
+        throws WebloggerException;
     
     
     /**
      * Reset the hit counts for all weblogs.  This sets the counts back to 0.
      *
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
-    public void resetAllHitCounts() throws RollerException;
+    public void resetAllHitCounts() throws WebloggerException;
     
     
     /**
      * Reset the hit counts for a single weblog.  This sets the count to 0.
      *
      * @param weblog The WebsiteData object to reset the count for.
-     * @throws RollerException If there was a problem with the backend.
+     * @throws WebloggerException If there was a problem with the backend.
      */
-    public void resetHitCount(Weblog weblog) throws RollerException;
+    public void resetHitCount(Weblog weblog) throws WebloggerException;
 
     
     /**
      * Get site-wide comment count 
      */
-    public long getCommentCount() throws RollerException;
+    public long getCommentCount() throws WebloggerException;
 
     
     /**
      * Get weblog comment count 
      */    
-    public long getCommentCount(Weblog websiteData) throws RollerException;
+    public long getCommentCount(Weblog websiteData) throws WebloggerException;
 
     
     /**
      * Get site-wide entry count 
      */    
-    public long getEntryCount() throws RollerException;
+    public long getEntryCount() throws WebloggerException;
 
     
     /**
      * Get weblog entry count 
      */    
-    public long getEntryCount(Weblog websiteData) throws RollerException;
+    public long getEntryCount(Weblog websiteData) throws WebloggerException;
     
 }
 

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateAutoPingManagerImpl.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateAutoPingManagerImpl.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateAutoPingManagerImpl.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateAutoPingManagerImpl.java Sun Jun  3 11:16:02 2007
@@ -22,7 +22,7 @@
 import org.hibernate.HibernateException;
 import org.hibernate.Session;
 import org.hibernate.criterion.Expression;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.AutoPing;
 import org.apache.roller.weblogger.pojos.PingTarget;
 import org.apache.roller.weblogger.pojos.WeblogEntry;
@@ -58,23 +58,23 @@
     }
     
     
-    public AutoPing getAutoPing(String id) throws RollerException {
+    public AutoPing getAutoPing(String id) throws WebloggerException {
         return (AutoPing) strategy.load(id, AutoPing.class);
     }
     
     
-    public void saveAutoPing(AutoPing autoPing) throws RollerException {
+    public void saveAutoPing(AutoPing autoPing) throws WebloggerException {
         strategy.store(autoPing);
     }
     
     
-    public void removeAutoPing(AutoPing autoPing)  throws RollerException {
+    public void removeAutoPing(AutoPing autoPing)  throws WebloggerException {
         //TODO: first remove all related category restrictions (category restrictions are not yet implemented)
         strategy.remove(autoPing);
     }
     
     
-    public void removeAutoPing(PingTarget pingTarget, Weblog website) throws RollerException {
+    public void removeAutoPing(PingTarget pingTarget, Weblog website) throws WebloggerException {
         try {
             Session session = strategy.getSession();
             Criteria criteria = session.createCriteria(AutoPing.class);
@@ -88,12 +88,12 @@
             // This should have at most one element, but we remove them all regardless.
             this.removeAutoPings(matches);
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
     
-    public void removeAutoPings(Collection autopings) throws RollerException {
+    public void removeAutoPings(Collection autopings) throws WebloggerException {
         
         // just go through the list and remove each auto ping
         Iterator pings = autopings.iterator();
@@ -103,19 +103,19 @@
     }
     
     
-    public void removeAllAutoPings() throws RollerException {
+    public void removeAllAutoPings() throws WebloggerException {
         try {
             Session session = ((HibernatePersistenceStrategy) strategy).getSession();
             Criteria criteria = session.createCriteria(AutoPing.class);
             List allAutoPings = criteria.list();
             this.removeAutoPings(allAutoPings);
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
     
-    public void queueApplicableAutoPings(WeblogEntry changedWeblogEntry) throws RollerException {
+    public void queueApplicableAutoPings(WeblogEntry changedWeblogEntry) throws WebloggerException {
         if (PingConfig.getSuspendPingProcessing()) {
             if (log.isDebugEnabled()) log.debug("Ping processing is suspended.  No auto pings will be queued.");
             return;
@@ -131,7 +131,7 @@
     }
     
     
-    public List getAutoPingsByWebsite(Weblog website) throws RollerException {
+    public List getAutoPingsByWebsite(Weblog website) throws WebloggerException {
         try {
             Session session = ((HibernatePersistenceStrategy) strategy).getSession();
             Criteria criteria = session.createCriteria(AutoPing.class);
@@ -140,12 +140,12 @@
             criteria.add(Expression.eq("website", website));
             return criteria.list();
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
     
-    public List getAutoPingsByTarget(PingTarget pingTarget) throws RollerException {
+    public List getAutoPingsByTarget(PingTarget pingTarget) throws WebloggerException {
         try {
             Session session = ((HibernatePersistenceStrategy) strategy).getSession();
             Criteria criteria = session.createCriteria(AutoPing.class);
@@ -154,12 +154,12 @@
             criteria.add(Expression.eq("pingTarget", pingTarget));
             return criteria.list();
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
     
-    public List getApplicableAutoPings(WeblogEntry changedWeblogEntry) throws RollerException {
+    public List getApplicableAutoPings(WeblogEntry changedWeblogEntry) throws WebloggerException {
         try {
             Session session = ((HibernatePersistenceStrategy) strategy).getSession();
             Criteria criteria = session.createCriteria(AutoPing.class);
@@ -168,12 +168,12 @@
             criteria.add(Expression.eq("website", changedWeblogEntry.getWebsite()));
             return criteria.list();
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
     
-    public List getCategoryRestrictions(AutoPing autoPing) throws RollerException {
+    public List getCategoryRestrictions(AutoPing autoPing) throws WebloggerException {
         return Collections.EMPTY_LIST;
     }
     

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateBookmarkManagerImpl.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateBookmarkManagerImpl.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateBookmarkManagerImpl.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateBookmarkManagerImpl.java Sun Jun  3 11:16:02 2007
@@ -23,7 +23,7 @@
 import org.hibernate.HibernateException;
 import org.hibernate.Session;
 import org.hibernate.criterion.Expression;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.pojos.WeblogBookmark;
 import org.apache.roller.weblogger.pojos.WeblogBookmarkFolder;
 import org.apache.roller.weblogger.pojos.Weblog;
@@ -63,7 +63,7 @@
     }
     
     
-    public void saveBookmark(WeblogBookmark bookmark) throws RollerException {
+    public void saveBookmark(WeblogBookmark bookmark) throws WebloggerException {
         this.strategy.store(bookmark);
         
         // update weblog last modified date.  date updated by saveWebsite()
@@ -71,7 +71,7 @@
     }
     
     
-    public WeblogBookmark getBookmark(String id) throws RollerException {
+    public WeblogBookmark getBookmark(String id) throws WebloggerException {
         WeblogBookmark bd = (WeblogBookmark)
         strategy.load(id,WeblogBookmark.class);
         // TODO: huh?  why do we do this?
@@ -80,7 +80,7 @@
     }
     
     
-    public void removeBookmark(WeblogBookmark bookmark) throws RollerException {
+    public void removeBookmark(WeblogBookmark bookmark) throws WebloggerException {
         //Remove the bookmark from its parent folder
         bookmark.getFolder().getBookmarks().remove(bookmark);
         //Now remove it from database
@@ -91,11 +91,11 @@
     }
     
     
-    public void saveFolder(WeblogBookmarkFolder folder) throws RollerException {
+    public void saveFolder(WeblogBookmarkFolder folder) throws WebloggerException {
         
         WeblogBookmarkFolder existingFolder = getFolder(folder.getId());        
         if(existingFolder == null && isDuplicateFolderName(folder)) {
-            throw new RollerException("Duplicate folder name");
+            throw new WebloggerException("Duplicate folder name");
         }
         
         this.strategy.store(folder);
@@ -105,7 +105,7 @@
     }
     
     
-    public void removeFolder(WeblogBookmarkFolder folder) throws RollerException {
+    public void removeFolder(WeblogBookmarkFolder folder) throws WebloggerException {
         
         this.strategy.remove(folder);
         
@@ -118,11 +118,11 @@
 
     WeblogBookmarkFolder destFolder
 )
-            throws RollerException {
+            throws WebloggerException {
         
         // TODO: this check should be made before calling this method?
         if (destFolder.descendentOf(srcFolder)) {
-            throw new RollerException(
+            throw new WebloggerException(
                     "ERROR cannot move parent folder into it's own child");
         }
         
@@ -145,13 +145,13 @@
     /**
      * Retrieve folder and lazy-load it's sub-folders and bookmarks.
      */
-    public WeblogBookmarkFolder getFolder(String id) throws RollerException {
+    public WeblogBookmarkFolder getFolder(String id) throws WebloggerException {
         return (WeblogBookmarkFolder)strategy.load(id,WeblogBookmarkFolder.class);
     }
     
     
     public void importBookmarks(Weblog website, String folderName, String opml)
-            throws RollerException {
+            throws WebloggerException {
         
         String msg = "importBookmarks";
         try {
@@ -176,7 +176,7 @@
             }
             
         } catch (Exception ex) {
-            throw new RollerException(ex);
+            throw new WebloggerException(ex);
         }
     }
     
@@ -185,7 +185,7 @@
     private void importOpmlElement(
             
             Weblog website, Element elem,WeblogBookmarkFolder parent)
-            throws RollerException {
+            throws WebloggerException {
         String text = elem.getAttributeValue("text");
         String title = elem.getAttributeValue("title");
         String desc = elem.getAttributeValue("description");
@@ -238,7 +238,7 @@
     
     
     public WeblogBookmarkFolder getFolder(Weblog website, String path)
-            throws RollerException {
+            throws WebloggerException {
         
         if (path == null || path.trim().equals("/")) {
             return getRootFolder(website);
@@ -267,7 +267,7 @@
      *      org.apache.roller.weblogger.pojos.FolderData, boolean)
      */
     public List getBookmarks(WeblogBookmarkFolder folder, boolean subfolders)
-            throws RollerException {
+            throws WebloggerException {
         
         try {
             Session session = ((HibernatePersistenceStrategy)this.strategy).getSession();
@@ -287,15 +287,15 @@
             return criteria.list();
             
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
     
-    public WeblogBookmarkFolder getRootFolder(Weblog website) throws RollerException {
+    public WeblogBookmarkFolder getRootFolder(Weblog website) throws WebloggerException {
         
         if (website == null)
-            throw new RollerException("website is null");
+            throw new WebloggerException("website is null");
         
         try {
             Session session = ((HibernatePersistenceStrategy)this.strategy).getSession();
@@ -308,13 +308,13 @@
             return (WeblogBookmarkFolder) criteria.uniqueResult();
             
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
     }
     
-    public List getAllFolders(Weblog website) throws RollerException {
+    public List getAllFolders(Weblog website) throws WebloggerException {
         if (website == null)
-            throw new RollerException("Website is null");
+            throw new WebloggerException("Website is null");
         
         try {
             Session session = ((HibernatePersistenceStrategy) strategy).getSession();
@@ -322,7 +322,7 @@
             criteria.add(Expression.eq("website", website));
             return criteria.list();
         } catch (HibernateException e) {
-            throw new RollerException(e);
+            throw new WebloggerException(e);
         }
         
     }
@@ -331,7 +331,7 @@
     /**
      * make sure the given folder doesn't already exist.
      */
-    private boolean isDuplicateFolderName(WeblogBookmarkFolder folder) throws RollerException {
+    private boolean isDuplicateFolderName(WeblogBookmarkFolder folder) throws WebloggerException {
         
         // ensure that no sibling categories share the same name
         WeblogBookmarkFolder parent = folder.getParent();

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateConnectionProvider.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateConnectionProvider.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateConnectionProvider.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernateConnectionProvider.java Sun Jun  3 11:16:02 2007
@@ -5,7 +5,7 @@
 import java.util.Properties;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.apache.roller.weblogger.business.DatabaseProvider;
 import org.hibernate.HibernateException;
 import org.hibernate.connection.ConnectionProvider;
@@ -29,7 +29,7 @@
     public Connection getConnection() throws SQLException {
         try {
             return DatabaseProvider.getDatabaseProvider().getConnection();
-        } catch (RollerException ex) {
+        } catch (WebloggerException ex) {
             // The DatabaseProvider should have been constructed long before 
             // we get to this point, so this should never ever happen
             throw new RuntimeException("ERROR getting database provider", ex);

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePersistenceStrategy.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePersistenceStrategy.java?view=diff&rev=543951&r1=543950&r2=543951
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePersistenceStrategy.java (original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/hibernate/HibernatePersistenceStrategy.java Sun Jun  3 11:16:02 2007
@@ -27,7 +27,7 @@
 import org.hibernate.SessionFactory;
 import org.hibernate.Transaction;
 import org.hibernate.cfg.Configuration;
-import org.apache.roller.RollerException;
+import org.apache.roller.weblogger.WebloggerException;
 import org.hibernate.cfg.Environment;
 import org.xml.sax.EntityResolver;
 import org.xml.sax.InputSource;
@@ -96,7 +96,7 @@
     }
     
     
-    public void flush() throws RollerException {
+    public void flush() throws WebloggerException {
         
         Session session = getSession();
         try {
@@ -113,7 +113,7 @@
             release();
             
             // wrap and rethrow so caller knows something bad happened
-            throw new RollerException(t);
+            throw new WebloggerException(t);
         }
     }
     
@@ -164,10 +164,10 @@
     /**
      * Retrieve object.  We return null if the object is not found.
      */
-    public Object load(String id, Class clazz) throws RollerException {
+    public Object load(String id, Class clazz) throws WebloggerException {
         
         if(id == null || clazz == null) {
-            throw new RollerException("Cannot load objects when value is null");
+            throw new WebloggerException("Cannot load objects when value is null");
         }
         
         return (Object) getSession().get(clazz, id);



Mime
View raw message