Source Code Cross Referenced for PookaManager.java in  » Mail-Clients » pooka » net » suberic » pooka » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Mail Clients » pooka » net.suberic.pooka 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.suberic.pooka;
002:
003:        import net.suberic.pooka.gui.*;
004:        import net.suberic.util.VariableBundle;
005:        import net.suberic.pooka.resource.*;
006:        import net.suberic.pooka.messaging.PookaMessageListener;
007:
008:        import java.awt.*;
009:        import javax.swing.*;
010:        import java.util.Vector;
011:        import javax.help.*;
012:        import java.util.logging.*;
013:
014:        /**
015:         * This keeps track of all of the various managers and settings for an
016:         * instance of Pooka.
017:         */
018:        public class PookaManager {
019:
020:            // the resources for Pooka
021:
022:            /** The Resources for this instance of Pooka.*/
023:            net.suberic.util.VariableBundle mResources;
024:
025:            /** Gets the Resources for this instance of Pooka.*/
026:            public VariableBundle getResources() {
027:                return mResources;
028:            }
029:
030:            /**  Sets the Resources for this instance of Pooka.*/
031:            public void setResources(VariableBundle pResources) {
032:                mResources = pResources;
033:            }
034:
035:            /** the log manager. */
036:            PookaLogManager mLogManager;
037:
038:            /** Gets the logManager for this instance of Pooka.*/
039:            public PookaLogManager getLogManager() {
040:                return mLogManager;
041:            }
042:
043:            /**  Sets the logManager for this instance of Pooka.*/
044:            public void setLogManager(PookaLogManager pLogManager) {
045:                mLogManager = pLogManager;
046:            }
047:
048:            // the startup/configuration file
049:            String mLocalrc = null;
050:
051:            /** Gets the localrc for this instance of Pooka.*/
052:            public String getLocalrc() {
053:                return mLocalrc;
054:            }
055:
056:            /**  Sets the localrc for this instance of Pooka.*/
057:            public void setLocalrc(String pLocalrc) {
058:                mLocalrc = pLocalrc;
059:            }
060:
061:            // mail globals
062:            /** The default mail Session for Pooka. */
063:            javax.mail.Session mDefaultSession;
064:
065:            /** Gets the default mail Session for Pooka. */
066:            public javax.mail.Session getDefaultSession() {
067:                return mDefaultSession;
068:            }
069:
070:            /** Sets the default mail Session for Pooka. */
071:            public void setDefaultSession(javax.mail.Session pDefaultSession) {
072:                mDefaultSession = pDefaultSession;
073:            }
074:
075:            /**
076:             * The mailcap command map.  This is what is used to determine
077:             * which external programs are used to handle files of various MIME
078:             * types.
079:             */
080:            javax.activation.CommandMap mMailcap;
081:
082:            /**
083:             * Returns the mailcap command map.  This is what is used to determine
084:             * which external programs are used to handle files of various MIME
085:             * types.
086:             */
087:            public javax.activation.CommandMap getMailcap() {
088:                return mMailcap;
089:            }
090:
091:            /**
092:             * Sets the mailcap command map.  This is what is used to determine
093:             * which external programs are used to handle files of various MIME
094:             * types.
095:             */
096:            public void setMailcap(javax.activation.CommandMap pMailcap) {
097:                mMailcap = pMailcap;
098:            }
099:
100:            /** The Mime Types map.  This is used to map file extensions to MIME types. */
101:            javax.activation.MimetypesFileTypeMap mMimeTypesMap = new javax.activation.MimetypesFileTypeMap();
102:
103:            /**
104:             * Returns the Mime Types map.  This is used to map file extensions to
105:             * MIME types.
106:             */
107:            public javax.activation.MimetypesFileTypeMap getMimeTypesMap() {
108:                return mMimeTypesMap;
109:            }
110:
111:            /** Set the Mime Types map.  This is used to map file extensions to
112:                MIME types. */
113:            public void setMimeTypesMap(
114:                    javax.activation.MimetypesFileTypeMap pMimeTypesMap) {
115:                mMimeTypesMap = pMimeTypesMap;
116:            }
117:
118:            /** The defaultAuthenticator for this instance of Pooka.*/
119:            javax.mail.Authenticator mDefaultAuthenticator = null;
120:
121:            /** Gets the defaultAuthenticator for this instance of Pooka.*/
122:            public javax.mail.Authenticator getDefaultAuthenticator() {
123:                return mDefaultAuthenticator;
124:            }
125:
126:            /**  Sets the defaultAuthenticator for this instance of Pooka.*/
127:            public void setDefaultAuthenticator(
128:                    javax.mail.Authenticator pDefaultAuthenticator) {
129:                mDefaultAuthenticator = pDefaultAuthenticator;
130:            }
131:
132:            // the DateFormatter, which we cache for convenience.
133:            DateFormatter mDateFormatter;
134:
135:            /** Gets the dateFormatter for this instance of Pooka.*/
136:            public DateFormatter getDateFormatter() {
137:                return mDateFormatter;
138:            }
139:
140:            /**  Sets the dateFormatter for this instance of Pooka.*/
141:            public void setDateFormatter(DateFormatter pDateFormatter) {
142:                mDateFormatter = pDateFormatter;
143:            }
144:
145:            // threads
146:
147:            /** The Search Thread.  This is the thread that folder searches are done on.
148:             */
149:            net.suberic.util.thread.ActionThread mSearchThread = null;
150:
151:            /** Returns the thread that folder searches are done on.*/
152:            public net.suberic.util.thread.ActionThread getSearchThread() {
153:                return mSearchThread;
154:            }
155:
156:            /** Sets the thread that folder searches are done on.*/
157:            public void setSearchThread(
158:                    net.suberic.util.thread.ActionThread pSearchThread) {
159:                mSearchThread = pSearchThread;
160:            }
161:
162:            /**
163:             * The Folder Tracker thread.  This is the thread that monitors the
164:             * individual folders and checks to make sure that they stay connected,
165:             * checks for new email, etc.
166:             */
167:            net.suberic.pooka.thread.FolderTracker mFolderTracker;
168:
169:            /** Gets the Folder Tracker thread.  */
170:            public net.suberic.pooka.thread.FolderTracker getFolderTracker() {
171:                return mFolderTracker;
172:            }
173:
174:            /**
175:             * Sets the Folder Tracker thread. */
176:            public void setFolderTracker(
177:                    net.suberic.pooka.thread.FolderTracker pFolderTracker) {
178:                mFolderTracker = pFolderTracker;
179:            }
180:
181:            // Pooka managers and factories
182:            /**
183:             * The Address Book Manager keeps track of all of the configured Address 
184:             * Books.
185:             */
186:            AddressBookManager mAddressBookManager = null;
187:
188:            /** Returns the Address Book Manager. */
189:            public AddressBookManager getAddressBookManager() {
190:                return mAddressBookManager;
191:            }
192:
193:            /** Sets the Address Book Manager. */
194:            public void setAddressBookManager(
195:                    AddressBookManager pAddressBookManager) {
196:                mAddressBookManager = pAddressBookManager;
197:            }
198:
199:            /** The Store Manager tracks all of the Mail Stores that Pooka knows about.*/
200:            StoreManager mStoreManager;
201:
202:            /** Returns the Store Manager. */
203:            public StoreManager getStoreManager() {
204:                return mStoreManager;
205:            }
206:
207:            /** Sets the Store Manager. */
208:            public void setStoreManager(StoreManager pStoreManager) {
209:                mStoreManager = pStoreManager;
210:            }
211:
212:            /** The UserProfile Manager tracks all of the User Profiles that Pooka knows about.*/
213:            UserProfileManager mUserProfileManager;
214:
215:            /** Returns the UserProfile Manager. */
216:            public UserProfileManager getUserProfileManager() {
217:                return mUserProfileManager;
218:            }
219:
220:            /** Sets the UserProfile Manager. */
221:            public void setUserProfileManager(
222:                    UserProfileManager pUserProfileManager) {
223:                mUserProfileManager = pUserProfileManager;
224:            }
225:
226:            /**
227:             * The UIFactory for Pooka.  This is used to create just about all of the
228:             * graphical UI components for Pooka.  Usually this is either an instance
229:             * of PookaDesktopPaneUIFactory or PookaPreviewPaneUIFactory, for the
230:             * Desktop and Preview UI styles, respectively.
231:             */
232:            PookaUIFactory mUiFactory;
233:
234:            /**
235:             * The UIFactory for Pooka.  This is used to create just about all of the
236:             * graphical UI components for Pooka.  Usually this is either an instance
237:             * of PookaDesktopPaneUIFactory or PookaPreviewPaneUIFactory, for the
238:             * Desktop and Preview UI styles, respectively.
239:             */
240:            public PookaUIFactory getUIFactory() {
241:                return mUiFactory;
242:            }
243:
244:            /**
245:             * The UIFactory for Pooka.  This is used to create just about all of the
246:             * graphical UI components for Pooka.  Usually this is either an instance
247:             * of PookaDesktopPaneUIFactory or PookaPreviewPaneUIFactory, for the
248:             * Desktop and Preview UI styles, respectively.
249:             */
250:            public void setUIFactory(PookaUIFactory pUIFactory) {
251:                mUiFactory = pUIFactory;
252:            }
253:
254:            /**
255:             * The Search Manager.  This manages the Search Terms that Pooka knows 
256:             * about, and also can be used to construct Search queries from sets
257:             * of properties.
258:             */
259:            SearchTermManager mSearchManager;
260:
261:            /**
262:             * The Search Manager.  This manages the Search Terms that Pooka knows 
263:             * about, and also can be used to construct Search queries from sets
264:             * of properties.
265:             */
266:            public SearchTermManager getSearchManager() {
267:                return mSearchManager;
268:            }
269:
270:            /**
271:             * The Search Manager.  This manages the Search Terms that Pooka knows 
272:             * about, and also can be used to construct Search queries from sets
273:             * of properties.
274:             */
275:            public void setSearchManager(SearchTermManager pSearchTermManager) {
276:                mSearchManager = pSearchTermManager;
277:            }
278:
279:            /** The ConnectionManager tracks the configured Network Connections. */
280:            NetworkConnectionManager mConnectionManager;
281:
282:            /** The ConnectionManager tracks the configured Network Connections. */
283:            public NetworkConnectionManager getConnectionManager() {
284:                return mConnectionManager;
285:            }
286:
287:            /** The ConnectionManager tracks the configured Network Connections. */
288:            public void setConnectionManager(
289:                    NetworkConnectionManager pConnectionManager) {
290:                mConnectionManager = pConnectionManager;
291:            }
292:
293:            /**
294:             * The OutgoingMailManager tracks the various SMTP server that Pooka can
295:             * use to send mail.
296:             */
297:            OutgoingMailServerManager mOutgoingMailManager;
298:
299:            /**
300:             * The OutgoingMailManager tracks the various SMTP server that Pooka can
301:             * use to send mail.
302:             */
303:            public OutgoingMailServerManager getOutgoingMailManager() {
304:                return mOutgoingMailManager;
305:            }
306:
307:            /**
308:             * The OutgoingMailManager tracks the various SMTP server that Pooka can
309:             * use to send mail.
310:             */
311:            public void setOutgoingMailManager(
312:                    OutgoingMailServerManager pOutgoingMailManager) {
313:                mOutgoingMailManager = pOutgoingMailManager;
314:            }
315:
316:            /**
317:             * The EncryptionManager, not surprisingly, manages Pooka's encryption
318:             * facilities.
319:             */
320:            PookaEncryptionManager mCryptoManager;
321:
322:            /**
323:             * The EncryptionManager, not surprisingly, manages Pooka's encryption
324:             * facilities.
325:             */
326:            public PookaEncryptionManager getCryptoManager() {
327:                return mCryptoManager;
328:            }
329:
330:            /**
331:             * The EncryptionManager, not surprisingly, manages Pooka's encryption
332:             * facilities.
333:             */
334:            public void setCryptoManager(PookaEncryptionManager pCryptoManager) {
335:                mCryptoManager = pCryptoManager;
336:            }
337:
338:            net.suberic.pooka.resource.ResourceManager mResourceManager;
339:
340:            /** The ResourceManager controls access to resource files. */
341:            public ResourceManager getResourceManager() {
342:                return mResourceManager;
343:            }
344:
345:            /** The ResourceManager controls access to resource files. */
346:            public void setResourceManager(
347:                    net.suberic.pooka.resource.ResourceManager pResourceManager) {
348:                mResourceManager = pResourceManager;
349:            }
350:
351:            net.suberic.pooka.ssl.PookaTrustManager mTrustManager = null;
352:
353:            /** Gets the SSL Trust Manager. */
354:            public net.suberic.pooka.ssl.PookaTrustManager getTrustManager() {
355:                return mTrustManager;
356:            }
357:
358:            /** Sets the SSL Trust Manager. */
359:            public void setTrustManager(
360:                    net.suberic.pooka.ssl.PookaTrustManager pTrustManager) {
361:                mTrustManager = pTrustManager;
362:            }
363:
364:            // the main Pooka panel.
365:            net.suberic.pooka.gui.MainPanel mPanel;
366:
367:            /** Gets the Pooka Main Panel.  This is the root of the entire Pooka UI.*/
368:            public MainPanel getMainPanel() {
369:                return mPanel;
370:            }
371:
372:            /** Sets the Pooka Main Panel.  This is the root of the entire Pooka UI.*/
373:            public void setMainPanel(MainPanel pPanel) {
374:                mPanel = pPanel;
375:            }
376:
377:            String mPookaHome = null;
378:
379:            /** Gets the pookaHome for this instance of Pooka.*/
380:            public String getPookaHome() {
381:                return mPookaHome;
382:            }
383:
384:            /**  Sets the pookaHome for this instance of Pooka.*/
385:            public void setPookaHome(String pPookaHome) {
386:                mPookaHome = pPookaHome;
387:            }
388:
389:            /** The HelpBroker is used to bring up the Pooka help system. */
390:            HelpBroker mHelpBroker;
391:
392:            /** The HelpBroker is used to bring up the Pooka help system. */
393:            public HelpBroker getHelpBroker() {
394:                return mHelpBroker;
395:            }
396:
397:            /** The HelpBroker is used to bring up the Pooka help system. */
398:            public void setHelpBroker(HelpBroker pHelpBroker) {
399:                mHelpBroker = pHelpBroker;
400:            }
401:
402:            /** The MessageListener for this server. */
403:            PookaMessageListener mMessageListener = null;
404:
405:            /** The MessageListener for this server. */
406:            public PookaMessageListener getMessageListener() {
407:                return mMessageListener;
408:            }
409:
410:            /** The MessageListener for this server. */
411:            public void setMessageListener(PookaMessageListener pMessageListener) {
412:                mMessageListener = pMessageListener;
413:            }
414:
415:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.