Source Code Cross Referenced for ModelActivityToDoList.java in  » Workflow-Engines » bonita-v3.1 » mc » formgenerator » servlets » bonita » 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 » Workflow Engines » bonita v3.1 » mc.formgenerator.servlets.bonita 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Created on 03 mai 2004 by the Message Center Team
003:         *
004:         */
005:        package mc.formgenerator.servlets.bonita;
006:
007:        import java.rmi.RemoteException;
008:        import java.util.ArrayList;
009:        import java.util.Collection;
010:
011:        import javax.ejb.CreateException;
012:        import javax.naming.NamingException;
013:
014:        import hero.interfaces.UserSessionHome;
015:        import hero.interfaces.UserSession;
016:        import hero.util.HeroException;
017:
018:        /**
019:         * Model for servlet ServletActivityToDoList to give ToDo List to display.
020:         * 
021:         */
022:        public class ModelActivityToDoList {
023:
024:            //The project name
025:            private String projectName = null;
026:
027:            //The todo list as a collection
028:            private Collection toDoList = null;
029:
030:            /**
031:             * Default constructor
032:             * Creates an instance of ModelActivityToDoList
033:             */
034:            public ModelActivityToDoList() {
035:            };
036:
037:            /**
038:             * Gets the ToDoList
039:             * @return the ToDoList as collection
040:             */
041:            public Collection getToDoList() {
042:                //Return the todo list
043:                return this .toDoList;
044:            }
045:
046:            /**
047:             * Sets the ToDoList
048:             * @param collection : The collection to set
049:             */
050:            public void setToDoList(Collection collection) {
051:                //Set the todo list
052:                this .toDoList = collection;
053:            }
054:
055:            /**
056:             * Gets the project name
057:             * @return the project name as stringection
058:             */
059:            public String getProjectName() {
060:                //Return the name of the project
061:                return this .projectName;
062:            }
063:
064:            /**
065:             * Sets the project name
066:             * @param theProjectName : The name of the project
067:             */
068:            public void setProjectName(String theProjectName) {
069:                //Set the todo list
070:                this .projectName = theProjectName;
071:            }
072:
073:            /**
074:             * Gets the to do list for the authentified user
075:             * @param projectName : The name of the project
076:             * @return The todo list for this project
077:             * @throws HeroException
078:             * @throws RemoteException
079:             * @throws CreateException
080:             * @throws NamingException
081:             * @throws LoginException
082:             */
083:            private Collection getBonitaToDoList(String projectName)
084:                    throws HeroException, RemoteException, CreateException,
085:                    NamingException {
086:
087:                //Connection to Bonita via API
088:                UserSessionHome userh = (UserSessionHome) hero.interfaces.UserSessionUtil
089:                        .getHome();
090:                UserSession usersession = userh.create();
091:
092:                //Collection as ToDo list
093:                Collection collectionToDoList = new ArrayList();
094:                try {
095:                    collectionToDoList = usersession.getToDoList(projectName);
096:                } catch (HeroException e) {
097:                }
098:
099:                return collectionToDoList;
100:            }
101:
102:            /**
103:             * For the MVC corresponds to the work the object has to do
104:             * @param projectName : The project on which the object opers
105:             * @throws RemoteException
106:             * @throws LoginException
107:             * @throws HeroException
108:             * @throws CreateException
109:             * @throws NamingException
110:             */
111:            public void process(String theProjectName) throws RemoteException,
112:                    HeroException, CreateException, NamingException {
113:
114:                //Setting attributes
115:                this.setProjectName(theProjectName);
116:                this.setToDoList(this.getBonitaToDoList(theProjectName));
117:            }
118:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.