History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: BPM-32
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Wouter Zoons
Reporter: Carlos Cuenca
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
Bpm4Struts Cartridge

Session Object

Created: 12/Aug/04 01:38 PM   Updated: 11/Oct/04 02:56 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File SessionObject.vsl (2 kb)
2. Zip Archive controller.zip (3 kb)
3. Zip Archive templates.zip (40 kb)



 Description   
A Session Object could be modeled.
This object with handle all the session parameters and will be asociated to a Controller.
The Controller should have the accesor methods to create and use the Session Object.

 All   Comments   Change History      Sort Order:
Comment by Carlos Cuenca [12/Aug/04 01:41 PM]
templates with a solution (not to stable)

Comment by Carlos Cuenca [26/Aug/04 10:16 PM]
more stable template for the session

Comment by Carlos Cuenca [27/Aug/04 11:24 AM]
new controller templates with the accesor methods for the sessions. With more than one sessionObject, the accesor methods will have diferent signature

Comment by Carlos Cuenca [27/Aug/04 11:31 AM]
Method for the StrutsControllerLogicImpl

protected Collection handleGetSessionObjects() {
        final Collection sessionsList = new ArrayList();

final Collection associationEnds = getAssociationEnds();
        for (Iterator iterator = associationEnds.iterator(); iterator.hasNext();)
        {
            AssociationEndFacade associationEnd = (AssociationEndFacade) iterator.next();
            ClassifierFacade classifier = associationEnd.getOtherEnd().getType();
            if (classifier instanceof SessionObject)
                sessionsList.add(classifier);
        }

return sessionsList;
}

Comment by Wouter Zoons [28/Aug/04 03:19 PM]
it's done, can you check your are happy with the solution ?

I put all the logic in the interface (converted it to an abstract class), so from your controller you can access the protected method that will return the session objects for you

<<FrontEndSessionObject>> is the stereotype