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.AbstractSchoolClassCommand
au.edu.educationau.belts.command.school.action.ActivateSchoolClassesAction
- 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 ActivateSchoolClassesAction
- extends au.edu.educationau.belts.command.school.AbstractSchoolClassCommand
- implements au.edu.educationau.belts.command.Action
This class performs the action of creating a SchoolClass, based
on the minimal information required for a class.
Required Roles:
A person creating a class must be a belts:school-administrator
Required Parameters:
- school-id
- the id for the school
- id
- the id for the class
Outcomes
- OK
- the class was activated OK
- ERROR
- an error occurred during class creation
- VALIDATION
- a validation error occurred
The following errors may occur during class creation:
- Duplicate Class
- a class with that id already exists
- Not Allowed to Activate Classes
- the current user is not allowed to activate classes
Results
No results are returned from this action.
- Version:
- $Revision: 1.4 $ - $Date: 2003/02/28 06:48:02 $
| 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 |
CLASSES
public static final java.lang.String CLASSES
- See Also:
- Constant Field Values
_classes
protected java.lang.String[] _classes
ActivateSchoolClassesAction
public ActivateSchoolClassesAction()
validate
public boolean validate()
- Ensures that the appropriate fields are non empty Strings
- Specified by:
validate in interface au.edu.educationau.belts.command.Command
execute
public void execute()
- Activates a group of classes.
- Specified by:
execute in interface au.edu.educationau.belts.command.Command
setClasses
public void setClasses(java.lang.String[] classes)
- Sets the classes.