Class ApogeeWS
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.odfsync.apogee.ws.ApogeeWS
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class ApogeeWS extends AbstractLogEnabled implements Serviceable, Component
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
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The ametys object resolverstatic String
ROLE
Avalon ROLE
-
Constructor Summary
Constructors Constructor Description ApogeeWS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDIP(Content content, String title, String codDip)
Create a Apogee DIP from a contentvoid
createDIP(Content content, String title, String codDip, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface)
Create a Apogee DIP from a contentvoid
createELP(Content content, String title, String codELP)
Create a Apogee ELP from a contentvoid
createELP(Content content, String title, String codELP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface)
Create a Apogee ELP from a contentvoid
createETP(Content content, String title, String codETP)
Create a Apogee ETP from a contentvoid
createETP(Content content, String title, String codETP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface)
Create a Apogee ETP from a contentvoid
createLinkDIPETP(String codDIP, Long versionDIP, String codETP, Long versionETP)
Create in Apogee the link between a DIP and a ETPvoid
createLinkDIPETP(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 ETPvoid
createLinkETPELPLSE(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 ELPvoid
createLinkETPELPLSE(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 ELPvoid
createLSE(CourseList courseList, String title, String codLSE)
Create a Apogee LSE from a course listvoid
createLSE(CourseList courseList, String title, String codLSE, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface)
Create a Apogee LSE from a course listvoid
createMandatoryLSE(String titleLSE, String codLSE, String codELP)
Create a Apogee mandatory LSE with his ELPvoid
createMandatoryLSE(String titleLSE, String codLSE, String codELP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface)
Create a Apogee mandatory LSE with his ELPvoid
createVDI(Content content, String title, String codDip, Long versionDIP)
Create a Apogee VDI from a contentvoid
createVDI(Content content, String title, String codDip, Long versionDIP, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationSEMetierServiceInterface)
Create a Apogee VDI from a contentvoid
createVET(Content content, String title, String codETP, Long versionETP)
Create a Apogee VET from a contentvoid
createVET(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.CreationSEMetierServiceInterface
getCreationService()
Get the service to create element in Apogeevoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver
-
-
Constructor Detail
-
ApogeeWS
public ApogeeWS()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getCreationService
public gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface getCreationService() throws javax.xml.rpc.ServiceException
Get 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
-
-