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.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 $
|
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 |
ActivateSchoolAction
public ActivateSchoolAction()
execute
public void execute()
- activates a school.
- Specified by:
execute in interface au.edu.educationau.belts.command.Command