templates with a solution (not to stable)
more stable template for the session
new controller templates with the accesor methods for the sessions. With more than one sessionObject, the accesor methods will have diferent signature
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;
}
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