java.lang.Object
au.edu.educationau.belts.command.AbstractCommand
au.edu.educationau.belts.command.container.AbstractContainerCommand
au.edu.educationau.belts.command.container.AbstractBeltsContainerCommand
au.edu.educationau.belts.command.AbstractIdCommand
au.edu.educationau.belts.command.school.AbstractSchoolCommand
au.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 $
|
Method Summary |
void |
execute()
activates a school. |
| 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 |
DeactivateSchoolAction
public DeactivateSchoolAction()
execute
public void execute()
- activates a school.
- Specified by:
execute in interface au.edu.educationau.belts.command.Command