Class ApogeeWS
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.apogee.ws.ApogeeWS
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
The component to create ODF element in Apogee
In most cases :
DIP / VDI (diplome / version de diplome) : it is a program
ETP / VET (etape / version d'etape) : it is a subprogram or a container of type year
LSE (liste d'elements) : it is a course list
ELP (element pedagogique) : it is a course or a container of type semester
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys object resolverstatic final StringAvalon ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a Apogee DIP from a contentvoidcreateDIP(Content content, String title, String codDip, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee DIP from a contentvoidCreate a Apogee ELP from a contentvoidcreateELP(Content content, String title, String codELP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee ELP from a contentvoidCreate a Apogee ETP from a contentvoidcreateETP(Content content, String title, String codETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee ETP from a contentvoidcreateLinkDIPETP(String codDIP, Long versionDIP, String codETP, Long versionETP) Create in Apogee the link between a DIP and a ETPvoidcreateLinkDIPETP(String codDIP, Long versionDIP, String codETP, Long versionETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create in Apogee the link between a DIP and a ETPvoidcreateLinkETPELPLSE(String codETP, Long versionETP, String codLSE, String codELP, Long nbELP, Double ectsMin, Double ectsMax) Create in Apogee the link between a ETP and a LSE or ELPvoidcreateLinkETPELPLSE(String codETP, Long versionETP, String codLSE, String codELP, Long nbELP, Double ectsMin, Double ectsMax, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create in Apogee the link between a ETP and a LSE or ELPvoidcreateLSE(CourseList courseList, String title, String codLSE) Create a Apogee LSE from a course listvoidcreateLSE(CourseList courseList, String title, String codLSE, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee LSE from a course listvoidcreateMandatoryLSE(String titleLSE, String codLSE, String codELP) Create a Apogee mandatory LSE with his ELPvoidcreateMandatoryLSE(String titleLSE, String codLSE, String codELP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee mandatory LSE with his ELPvoidCreate a Apogee VDI from a contentvoidcreateVDI(Content content, String title, String codDip, Long versionDIP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee VDI from a contentvoidCreate a Apogee VET from a contentvoidcreateVET(Content content, String title, String codETP, Long versionETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) Create a Apogee VET from a contentgouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterfaceGet the service to create element in Apogeevoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE -
_resolver
The ametys object resolver
-
-
Constructor Details
-
ApogeeWS
public ApogeeWS()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getCreationService
public gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface getCreationService() throws javax.xml.rpc.ServiceExceptionGet the service to create element in Apogee- Returns:
- the service
- Throws:
javax.xml.rpc.ServiceException- if an error occurred getting the service
-
createDIP
public void createDIP(Content content, String title, String codDip) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee DIP from a content- Parameters:
content- the contenttitle- the DIP title. Can be null, in this case we take the content titlecodDip- the code DIP- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createDIP
public void createDIP(Content content, String title, String codDip, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee DIP from a content- Parameters:
content- the contenttitle- the DIP title. Can be null, in this case we take the content titlecodDip- the code DIPcreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createVDI
public void createVDI(Content content, String title, String codDip, Long versionDIP) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee VDI from a content- Parameters:
content- the contenttitle- the VDI title. Can be null, in this case we take the content titlecodDip- the code of the diplome in ApogeeversionDIP- the version of the diplome in Apogee- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createVDI
public void createVDI(Content content, String title, String codDip, Long versionDIP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee VDI from a content- Parameters:
content- the contenttitle- the VDI title. Can be null, in this case we take the content titlecodDip- the code of the diplome in ApogeeversionDIP- the version of the diplome in ApogeecreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createETP
public void createETP(Content content, String title, String codETP) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee ETP from a content- Parameters:
content- the contenttitle- the ETP title. Can be null, in this case we take the content titlecodETP- the code ETP- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createETP
public void createETP(Content content, String title, String codETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee ETP from a content- Parameters:
content- the contenttitle- the ETP title. Can be null, in this case we take the content titlecodETP- the code ETPcreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createVET
public void createVET(Content content, String title, String codETP, Long versionETP) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee VET from a content- Parameters:
content- the contenttitle- the VET title. Can be null, in this case we take the content titlecodETP- the ETP code in ApogeeversionETP- the version ETP in Apogee- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createVET
public void createVET(Content content, String title, String codETP, Long versionETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee VET from a content- Parameters:
content- the contenttitle- the VET title. Can be null, in this case we take the content titlecodETP- the ETP code in ApogeeversionETP- the version ETP in ApogeecreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createLinkDIPETP
public void createLinkDIPETP(String codDIP, Long versionDIP, String codETP, Long versionETP) throws RemoteException, javax.xml.rpc.ServiceException Create in Apogee the link between a DIP and a ETP- Parameters:
codDIP- the DIP code in ApogeeversionDIP- the DIP version in ApogeecodETP- the ETP code in ApogeeversionETP- the ETP version in Apogee- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createLinkDIPETP
public void createLinkDIPETP(String codDIP, Long versionDIP, String codETP, Long versionETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create in Apogee the link between a DIP and a ETP- Parameters:
codDIP- the DIP code in ApogeeversionDIP- the DIP version in ApogeecodETP- the ETP code in ApogeeversionETP- the ETP version in ApogeecreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createLinkETPELPLSE
public void createLinkETPELPLSE(String codETP, Long versionETP, String codLSE, String codELP, Long nbELP, Double ectsMin, Double ectsMax) throws RemoteException, javax.xml.rpc.ServiceException Create in Apogee the link between a ETP and a LSE or ELP- Parameters:
codETP- the ETP code in Apogee. Can be null if codELP is set.versionETP- the ETP version in Apogee. Can be null if codELP is set.codLSE- the LSE code in Apogee.codELP- the ELP version in Apogee. Can be null if codETP and versionETP is set.nbELP- the number of ELP. Can be null if the LSE is mandatory or optional.ectsMin- the min number of ects. Can be null if the LSE is mandatory or optional.ectsMax- the max number of ects. Can be null if the LSE is mandatory or optional.- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createLinkETPELPLSE
public void createLinkETPELPLSE(String codETP, Long versionETP, String codLSE, String codELP, Long nbELP, Double ectsMin, Double ectsMax, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create in Apogee the link between a ETP and a LSE or ELP- Parameters:
codETP- the ETP code in Apogee. Can be null if codELP is set.versionETP- the ETP version in Apogee. Can be null if codELP is set.codLSE- the LSE code in Apogee.codELP- the ELP version in Apogee. Can be null if codETP and versionETP is set.nbELP- the number of ELP. Can be null if the LSE is mandatory or optional.ectsMin- the min number of ects. Can be null if the LSE is mandatory or optional.ectsMax- the max number of ects. Can be null if the LSE is mandatory or optional.creationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createLSE
public void createLSE(CourseList courseList, String title, String codLSE) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee LSE from a course list- Parameters:
courseList- the course listtitle- the LSE title. Can be null, in this case we take the content titlecodLSE- the code LSE- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createLSE
public void createLSE(CourseList courseList, String title, String codLSE, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee LSE from a course list- Parameters:
courseList- the course listtitle- the LSE title. Can be null, in this case we take the content titlecodLSE- the code LSEcreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createMandatoryLSE
public void createMandatoryLSE(String titleLSE, String codLSE, String codELP) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee mandatory LSE with his ELP- Parameters:
titleLSE- the title of the LSEcodLSE- the code of the LSEcodELP- the code of the ELP- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createMandatoryLSE
public void createMandatoryLSE(String titleLSE, String codLSE, String codELP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee mandatory LSE with his ELP- Parameters:
titleLSE- the title of the LSEcodLSE- the code of the LSEcodELP- the code of the ELPcreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-
createELP
public void createELP(Content content, String title, String codELP) throws RemoteException, javax.xml.rpc.ServiceException Create a Apogee ELP from a content- Parameters:
content- the contenttitle- the ELP title. Can be null, in this case we take the content titlecodELP- the code ELP- Throws:
RemoteException- if a web service error occurredjavax.xml.rpc.ServiceException- if an error occurred getting the service
-
createELP
public void createELP(Content content, String title, String codELP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface) throws RemoteException Create a Apogee ELP from a content- Parameters:
content- the contenttitle- the ELP title. Can be null, in this case we take the content titlecodELP- the code ELPcreationSEMetierServiceInterface- the service to create element in Apogee- Throws:
RemoteException- if a web service error occurred
-