Portlet template based on a state design pattern
First Claim
1. A method for designing object-oriented software for implementing portlets of a portal, said portlets adapted to be available to a user of the software during a session in which the user clicks on a link of a first page to identify an action object of an Action class and a state object of a State class, said method comprising designing the software followed by storing the designed software in a computer usable medium from which the software may be executed on a processor of a computer system to implement portlets of a portal, said designing the software comprising:
- including in the software a Portlet Template that comprises the State class, the Action class, and program code;
including in the State class a perform view method for displaying a view of a page;
including in the Action class an action performed method for performing an action and a set state method for setting the state object into the session;
adapting the program code to execute;
(a) the action performed method of the action object to perform the action,(b) the set state method of the action object to set the state object into the session, and(c) the perform view method of the state object to display a view of a second page that is associated with the action;
including a portlet code module and a controller code module in the program code, wherein the portlet code module and a controller code module are different modules, wherein the portlet code module is adapted to execute the action performed method and the set state method, and wherein the controller code module is adapted to execute the perform view method;
including a BasePortlet class and a TemplatePortlet class in the portlet code module, wherein the BasePortlet class does not include a portlet specific method and includes the action performed method and the set state method, and wherein the TemplatePortlet class is a child of the BasePortlet class and includes at least one portlet specific method; and
including a BaseController class and a TemplateControllerForHtml class in the controller code module,wherein the BaseController class does not include a portlet specific method and includes the perform view method,wherein the TemplateControllerForHtml class is a child of the BaseController class and includes at least one portlet specific method, andwherein the BasePortlet class and the BaseController class are different classes.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for designing object-oriented software for implementing portlets, and an associated computer system and computer program product. The portlets are available to a user of the software who clicks on a link of a first page to identify an action object of an Action class and a state object of a State class. The software includes the State class, the Action class, and program code. The State class includes a method for displaying a view of a page. The Action class includes an actionPerformed method for performing an action and a setState method for setting the state object into the session. The program code is adapted to execute: the actionPerformed method of the action object to perform the action; the setState method of the second page.
37 Citations
18 Claims
-
1. A method for designing object-oriented software for implementing portlets of a portal, said portlets adapted to be available to a user of the software during a session in which the user clicks on a link of a first page to identify an action object of an Action class and a state object of a State class, said method comprising designing the software followed by storing the designed software in a computer usable medium from which the software may be executed on a processor of a computer system to implement portlets of a portal, said designing the software comprising:
-
including in the software a Portlet Template that comprises the State class, the Action class, and program code; including in the State class a perform view method for displaying a view of a page; including in the Action class an action performed method for performing an action and a set state method for setting the state object into the session; adapting the program code to execute; (a) the action performed method of the action object to perform the action, (b) the set state method of the action object to set the state object into the session, and (c) the perform view method of the state object to display a view of a second page that is associated with the action; including a portlet code module and a controller code module in the program code, wherein the portlet code module and a controller code module are different modules, wherein the portlet code module is adapted to execute the action performed method and the set state method, and wherein the controller code module is adapted to execute the perform view method; including a BasePortlet class and a TemplatePortlet class in the portlet code module, wherein the BasePortlet class does not include a portlet specific method and includes the action performed method and the set state method, and wherein the TemplatePortlet class is a child of the BasePortlet class and includes at least one portlet specific method; and including a BaseController class and a TemplateControllerForHtml class in the controller code module, wherein the BaseController class does not include a portlet specific method and includes the perform view method, wherein the TemplateControllerForHtml class is a child of the BaseController class and includes at least one portlet specific method, and wherein the BasePortlet class and the BaseController class are different classes. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer system comprising a processor and a computer readable memory unit coupled to the processor, said memory unit containing object-oriented software adapted to be executed by the processor to implement portlets of a portal,
said portlets adapted to be available to a user of the software during a session in which the user clicks on a link of a first page to identify an action object of an Action class and a state object of a State class; -
said software including a Portlet Template that includes the State class, the Action class, and program code; said State class comprising a perform view method for displaying a view of a page; said Action class comprising an action performed method for performing an action and a set state method for setting the state object into the session; said program code adapted to execute; (a) the action performed method of the action object to perform the action, (b) the set state method of the action object to set the state object into the session, and (c) the perform view method of the state object to display a view of a second page that is associated with the action, wherein the program code includes a portlet code module and a controller code module, wherein the portlet code module and a controller code module are different modules, wherein the portlet code module is adapted to execute the action performed method and the set state method, wherein the controller code module is adapted to execute the perform view method, wherein the portlet code module comprises a BasePortlet class and a TemplatePortlet class, wherein the BasePortlet class does not include a portlet specific method and includes the action performed method and the set state method, wherein the TemplatePortlet class is a child of the BasePortlet class and includes at least one portlet specific method, wherein the controller code module comprises a BaseController class and a TemplateControllerForHtml class, wherein the BaseController class does not include a portlet specific method and includes the perform view method, wherein the TemplateControllerForHtml class is a child of the BaseController class and includes at least one portlet specific method, and wherein the BasePortlet class and the BaseController class are different classes. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product, comprising a computer usable medium having computer readable object-oriented software embodied therein, said computer readable object-oriented software containing program code that when executed by a processor of a computer system implements portlets of a portal,
said portlets adapted to be available to a user of the software during a session in which the user clicks on a link of a first page to identify an action object of an Action class and a state object of a State class; -
said software including a Portlet Template that includes the State class, the Action class, and program code; said State class comprising a perform view method for displaying a view of a page; said Action class comprising an action performed method for performing an action and a set state method for setting the state object into the session; said program code adapted to execute; (a) the action performed method of the action object to perform the action, (b) the set state method of the action object to set the state object into the session, and (c) the perform view method of the state object to display a view of a second page that is associated with the action, wherein the program code includes a portlet code module and a controller code module, wherein the portlet code module and a controller code module are different modules, wherein the portlet code module is adapted to execute the action performed method and the set state method, wherein the controller code module is adapted to execute the perform view method, wherein the portlet code module comprises a BasePortlet class and a TemplatePortlet class, wherein the BasePortlet class does not include a portlet specific method and includes the action performed method and the set state method, and wherein the TemplatePortlet class is a child of the BasePortlet class and includes at least one portlet specific methods, wherein the controller code module comprises a BaseController class and a TemplateControllerForHtml class, wherein the BaseController class does not include a portlet specific method and includes the perform view method, wherein the TemplateControllerForHtml class is a child of the BaseController class and includes at least one portlet specific method, and wherein the BasePortlet class and the BaseController class are different classes. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification