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

Quick Search    Search Deep

au.edu.educationau.belts.command.school.action
Class DeactivateSchoolAction  view DeactivateSchoolAction download DeactivateSchoolAction.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.container.AbstractBeltsContainerCommand
              extended byau.edu.educationau.belts.command.AbstractIdCommand
                  extended byau.edu.educationau.belts.command.school.AbstractSchoolCommand
                      extended byau.edu.educationau.belts.command.school.action.DeactivateSchoolAction
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 DeactivateSchoolAction
extends au.edu.educationau.belts.command.school.AbstractSchoolCommand
implements au.edu.educationau.belts.command.Action

This class performs the action of creating a School, based on the minimal information required for a school.

Required Roles:

A person creating a school must be a belts:system-administrator

Required Parameters:

id
the id for the school

Outcomes

OK
the school was deactivated OK
ERROR
an error occurred during school creation
VALIDATION
a validation error occurred

The following errors may occur during school creation:

Duplicate School
a school with that id already exists
Not Allowed to Deactivate Schools
the current user is not allowed to deactivate schools

Results

No results are returned from this action.

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

Field Summary
 
Fields inherited from class au.edu.educationau.belts.command.AbstractIdCommand
_id, ID
 
Fields inherited from class au.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
_log
 
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
DeactivateSchoolAction()
           
 
Method Summary
 void execute()
          activates a school.
 
Methods inherited from class au.edu.educationau.belts.command.AbstractIdCommand
setId, validate
 
Methods inherited from class au.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
beltsContainer, currentUser, currentUserIsMemberOfSchool, currentUsersSchool, isManager, isPermitted, isTeacher, permitted
 
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

DeactivateSchoolAction

public DeactivateSchoolAction()
Method Detail

execute

public void execute()
activates a school.

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