|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openfjord.business.workflow.ElementManagerDelegate
Title: openFJORD
Description: open Flexible Java Online Research Designer
Copyright: Copyright (c) by Ingo Düppe 2003
Company: University of Muenster
Implementation of the business delegate pattern.
Usage:
ElementManager manager = new ElementManagerDelegate();
ElementManager
,
ElementManagerBean
Constructor Summary | |
ElementManagerDelegate()
Constructor, initialize the delegate class |
Method Summary | |
SurveyElementContainer |
addElement(SurveyElement element,
SurveyElementContainer parent)
This method will create a new server side element and will add it to the parent element. |
SurveyElementContainer |
deleteElement(SurveyElement element)
Deletes a specific service side element specified by the primary key information of the value object |
SurveyElementContainer |
getContainer(java.lang.String elementId)
Returning a survey element container with his sub elements defined by his primary key. |
SurveyElementContainer |
getContainer(SurveyElement element)
Returning a survey element container with his sub elements defined by his value object. |
SurveyElementContainer |
moveElement(SurveyElement element,
int offset)
Moves the element to a new position in the same container |
SurveyElementContainer |
moveElement(SurveyElement element,
SurveyElementContainer destination)
Moves the element from the current parent container to the new parent container |
SurveyElementContainer |
updateContainer(SurveyElementContainer container)
Updates the server side element container with new data. |
SurveyElementContainer |
updateElement(SurveyElement element)
Updates the server side element with new data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElementManagerDelegate()
Method Detail |
public SurveyElementContainer getContainer(SurveyElement element) throws NoElementContainerException
ElementManager
getContainer
in interface ElementManager
NoElementContainerException
public SurveyElementContainer getContainer(java.lang.String elementId)
ElementManager
getContainer
in interface ElementManager
elementId
- the primary key of the element container
public SurveyElementContainer updateContainer(SurveyElementContainer container)
ElementManager
updateContainer
in interface ElementManager
container
- value object with the new data
public SurveyElementContainer addElement(SurveyElement element, SurveyElementContainer parent)
ElementManager
addElement
in interface ElementManager
element
- the new elementparent
- element will add to the parent container object
public SurveyElementContainer updateElement(SurveyElement element)
ElementManager
updateElement
in interface ElementManager
element
- value object with new data.
public SurveyElementContainer deleteElement(SurveyElement element)
ElementManager
deleteElement
in interface ElementManager
element
- value object containing primary key information
public SurveyElementContainer moveElement(SurveyElement element, int offset)
ElementManager
moveElement
in interface ElementManager
element
- the value objectoffset
- new position relative to the old
public SurveyElementContainer moveElement(SurveyElement element, SurveyElementContainer destination)
ElementManager
moveElement
in interface ElementManager
element
- the value object of the server side element with primary key informationdestination
- new parent container object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |