001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. The ASF licenses this file to You
004: * under the Apache License, Version 2.0 (the "License"); you may not
005: * use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License. For additional information regarding
015: * copyright in this work, please see the NOTICE file in the top level
016: * directory of this distribution.
017: */
018:
019: package org.apache.roller.business;
020:
021: import java.io.Serializable;
022: import java.sql.Connection;
023: import org.apache.roller.RollerException;
024: import org.apache.roller.business.pings.AutoPingManager;
025: import org.apache.roller.business.pings.PingQueueManager;
026: import org.apache.roller.business.pings.PingTargetManager;
027: import org.apache.roller.business.referrers.RefererManager;
028: import org.apache.roller.business.referrers.ReferrerQueueManager;
029: import org.apache.roller.business.runnable.ThreadManager;
030: import org.apache.roller.business.search.IndexManager;
031: import org.apache.roller.planet.business.PlanetManager;
032:
033: /**
034: * The main entry point interface of the Roller business tier.
035: */
036: public interface Roller {
037:
038: /**
039: * Get UserManager associated with this Roller instance.
040: */
041: public UserManager getUserManager() throws RollerException;
042:
043: /**
044: * Get BookmarkManager associated with this Roller instance.
045: */
046: public BookmarkManager getBookmarkManager() throws RollerException;
047:
048: /**
049: * Get WeblogManager associated with this Roller instance.
050: */
051: public WeblogManager getWeblogManager() throws RollerException;
052:
053: /**
054: * Get RefererManager associated with this Roller instance.
055: */
056: public RefererManager getRefererManager() throws RollerException;
057:
058: /**
059: * Get ReferrerQueueManager.
060: */
061: public ReferrerQueueManager getReferrerQueueManager();
062:
063: /**
064: * Get RefererManager associated with this Roller instance.
065: */
066: public ConfigManager getConfigManager() throws RollerException;
067:
068: /**
069: * Get the AutoPingManager associated with this Roller instance.
070: */
071: public AutoPingManager getAutopingManager() throws RollerException;
072:
073: /**
074: * Get the PingTargetManager associated with this Roller instance.
075: */
076: public PingTargetManager getPingTargetManager()
077: throws RollerException;
078:
079: /**
080: * Get the PingQueueManager associated with this Roller instance.
081: */
082: public PingQueueManager getPingQueueManager()
083: throws RollerException;
084:
085: /**
086: * Get PropertiesManager associated with this Roller instance.
087: */
088: public PropertiesManager getPropertiesManager()
089: throws RollerException;
090:
091: /**
092: * Get FileManager associated with this Roller instance.
093: */
094: public FileManager getFileManager() throws RollerException;
095:
096: /**
097: * Get ThreadManager associated with this Roller instance.
098: */
099: public ThreadManager getThreadManager() throws RollerException;
100:
101: /**
102: * Get IndexManager associated with this Roller instance.
103: */
104: public IndexManager getIndexManager() throws RollerException;
105:
106: /**
107: * Get PlanetManager associated with this Roller instance.
108: */
109: public PlanetManager getPlanetManager() throws RollerException;
110:
111: /**
112: * Get ThemeManager associated with this Roller instance.
113: */
114: public ThemeManager getThemeManager() throws RollerException;
115:
116: /**
117: * Get PluginManager associated with this Roller instance.
118: */
119: public PluginManager getPagePluginManager() throws RollerException;
120:
121: /**
122: * Flush object states.
123: */
124: public void flush() throws RollerException;
125:
126: /**
127: * Release all resources associated with Roller session.
128: */
129: public void release();
130:
131: /**
132: * Release all resources necessary for this instance of Roller.
133: */
134: public void shutdown();
135:
136: }
|