org.openfjord.business.workflow
Class SurveyManagerDelegate

java.lang.Object
  |
  +--org.openfjord.business.workflow.SurveyManagerDelegate
All Implemented Interfaces:
SurveyManager

public class SurveyManagerDelegate
extends java.lang.Object
implements SurveyManager

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:

SurveyManager manager = new SurveyManagerDelegate();

Version:
1.0
Author:
Ingo Düppe
See Also:
SurveyManager

Constructor Summary
SurveyManagerDelegate()
          construtor try to receive a remote object of the SurveyManager
 
Method Summary
 Survey createSurvey(Survey survey)
          Creates a new survey.
 void deleteSurvey(java.lang.String surveyId)
          Deletes the specified survey object
 void deleteSurvey(Survey survey)
          Deletes the specified survey object
 Survey getSurvey(java.lang.String surveyId)
          Look up for a special survey defined by its id.
 java.util.Collection getSurveys()
          Gives back a collection of survey objects belonging to the researcher
 Survey updateSurvey(Survey survey)
          Updates a survey specified by his given primary key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurveyManagerDelegate

public SurveyManagerDelegate()
construtor try to receive a remote object of the SurveyManager

Method Detail

getSurveys

public java.util.Collection getSurveys()
Description copied from interface: SurveyManager
Gives back a collection of survey objects belonging to the researcher

Specified by:
getSurveys in interface SurveyManager
Returns:
Collection containing survey objects with no related sub elements.

getSurvey

public Survey getSurvey(java.lang.String surveyId)
                 throws SurveyManagerException
Description copied from interface: SurveyManager
Look up for a special survey defined by its id.

Specified by:
getSurvey in interface SurveyManager
Parameters:
surveyId - - primary key of the survey
Returns:
survey object with sub objects
Throws:
SurveyManagerException - - no survey with this given id

createSurvey

public Survey createSurvey(Survey survey)
Description copied from interface: SurveyManager
Creates a new survey.

Specified by:
createSurvey in interface SurveyManager
Parameters:
survey - - optional parameter defining an template structure for the new template
Returns:
the new survey object, containing sub objects and his primary key

updateSurvey

public Survey updateSurvey(Survey survey)
                    throws SurveyManagerException
Description copied from interface: SurveyManager
Updates a survey specified by his given primary key. The function will trace the whole tree of sub objects. Existing serverside objects will be updated and new ones will be created. No objects will be deleted.

Specified by:
updateSurvey in interface SurveyManager
Parameters:
survey - containing the new data for survey.
Returns:
the updated survey object
Throws:
SurveyManagerException - - specified survey not found or could not update the survey

deleteSurvey

public void deleteSurvey(Survey survey)
                  throws SurveyManagerException
Description copied from interface: SurveyManager
Deletes the specified survey object

Specified by:
deleteSurvey in interface SurveyManager
Parameters:
survey - the survey to be deleted
Throws:
SurveyManagerException - could not find or delete the survey

deleteSurvey

public void deleteSurvey(java.lang.String surveyId)
                  throws SurveyManagerException
Description copied from interface: SurveyManager
Deletes the specified survey object

Specified by:
deleteSurvey in interface SurveyManager
Parameters:
surveyId - primary key of the survey
Throws:
SurveyManagerException - could not find or delete the survey


openFJORD Copyright © 2003 University of Muenster.