Package org.ametys.plugins.hyperplanning
Class HyperplanningManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.hyperplanning.HyperplanningManager
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
public class HyperplanningManager
extends AbstractLogEnabled
implements Initializable, Component, Serviceable
Component handling the communication with a remote hyperplanning server
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUpcomingCancelledLessons
(UserIdentity userIdentity) Get the list of cancelled lessons for a given user in the next 2 weeksvoid
void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role
-
-
Constructor Details
-
HyperplanningManager
public HyperplanningManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
getUpcomingCancelledLessons
public Set<CancelledLesson> getUpcomingCancelledLessons(UserIdentity userIdentity) throws UnknownStudentException Get the list of cancelled lessons for a given user in the next 2 weeks- Parameters:
userIdentity
- the user identity- Returns:
- a list of
CancelledLesson
representing the cancelled lessons or null if the user is unknown - Throws:
UnknownStudentException
- when user is not linked to hyperplanning
-