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 ActivateSchoolAction  view ActivateSchoolAction download ActivateSchoolAction.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.ActivateSchoolAction
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 ActivateSchoolAction
extends au.edu.educationau.belts.command.school.AbstractSchoolCommand
implements au.edu.educationau.belts.command.Action

Activates a school. If the school hasn't been deactivated this command has no effect.

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 is now active
ERROR
the user is not a belts:system-administrator or other internal error

The following errors may occur during school creation:

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

Results

No results are returned from this action.

Version:
$Revision: 1.10 $ - $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
ActivateSchoolAction()
           
 
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

ActivateSchoolAction

public ActivateSchoolAction()
Method Detail

execute

public void execute()
activates a school.

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