Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

au.edu.educationau.belts.command.lesson.action
Class MoveLessonItemDownAction  view MoveLessonItemDownAction download MoveLessonItemDownAction.java

java.lang.Object
  extended byau.edu.educationau.belts.command.AbstractCommand
      extended byau.edu.educationau.belts.command.container.AbstractContainerCommand
          extended byau.edu.educationau.belts.command.lesson.AbstractLessonItemCommand
              extended byau.edu.educationau.belts.command.lesson.action.MoveLessonItemDownAction
All Implemented Interfaces:
au.edu.educationau.belts.command.Action, au.edu.educationau.belts.command.Command, au.edu.educationau.belts.container.Containable, java.io.Serializable

public class MoveLessonItemDownAction
extends au.edu.educationau.belts.command.lesson.AbstractLessonItemCommand
implements au.edu.educationau.belts.command.Action

This class performs the action of moving a Lesson Item in the list

Required Parameters:

lesson-id
the id of the lesson containing the item
position
the position of the lesson item to move
new-position
the position to move the new item to

Outcomes

OK
the lesson item was moved OK
ERROR
an error occurred during lesson item move
VALIDATION
a validation error occurred

The following errors may occur during lesson item move:

Lesson Item Not Found
a lesson item with that id was not found
Not Allowed to move Lesson Items
the current user is not allowed to move lesson items

Results

No results are returned from this action.

Version:
$Revision: 1.5 $ - $Date: 2003/02/28 06:48:00 $

Field Summary
 
Fields inherited from class au.edu.educationau.belts.command.lesson.AbstractLessonItemCommand
_lesson, _position, LESSON, POSITION
 
Fields inherited from class au.edu.educationau.belts.command.container.AbstractContainerCommand
 
Fields inherited from class au.edu.educationau.belts.command.AbstractCommand
_outcome, _result, ENTITY_NOT_FOUND_ERROR, SECURITY_ERROR, SYSTEM_ERROR, VALIDATION_ERROR
 
Constructor Summary
MoveLessonItemDownAction()
           
 
Method Summary
 void execute()
          Execute the command.
 
Methods inherited from class au.edu.educationau.belts.command.lesson.AbstractLessonItemCommand
setLesson, setPosition, validate
 
Methods inherited from class au.edu.educationau.belts.command.container.AbstractContainerCommand
container, dispatchEvent, hasContainer, prepare, release
 
Methods inherited from class au.edu.educationau.belts.command.AbstractCommand
addDuplicateEntityFoundError, addEmailFieldValidationError, addEntityNotFoundError, addError, addError, addError, addFieldValidationError, addIdValidationError, addSecurityError, addSystemError, addValidationError, addWarning, result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface au.edu.educationau.belts.command.Command
result, validate
 

Constructor Detail

MoveLessonItemDownAction

public MoveLessonItemDownAction()
Method Detail

execute

public void execute()
Description copied from interface: au.edu.educationau.belts.command.Command

Execute the command. The dispatcher is responsible for ensuring that the commands validate method is called before the command is executed.

Specified by:
execute in interface au.edu.educationau.belts.command.Command