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_resolverThe ametys object resolverstatic StringROLEAvalon ROLE
-
Constructor Summary
Constructors Constructor Description ApogeeWS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private gouv.education.apogee.commun.transverse.dto.offreformation.creerse.CentreInsPedagogiDTO_createCIPELP(String code)Create CIP object for ELP Apogeeprivate gouv.education.apogee.commun.transverse.dto.offreformation.creerse.CentreInsPedagogiDTO2_createCIPVET(String code)Create CIP object for VET Apogeeprivate gouv.education.apogee.commun.transverse.dto.offreformation.creerse.CmpHabiliteeVdiDTO_createCmpHabiliteeVdiDTO(OrgUnit orgUnit)Create the orgUnit VDI for Apogeeprivate gouv.education.apogee.commun.transverse.dto.offreformation.creerse.ComposanteCGEDTO_createComposanteCGEDTO(OrgUnit orgUnit)Create the orgUnit CGE for Apogeeprivate gouv.education.apogee.commun.transverse.dto.offreformation.creerse.RegimeDTO_createRegime(String code)Create Regime object for Apogeeprivate OrgUnit_getOrgUnitById(String orgUnitId)Get orgUnit content from idvoidcreateDIP(Content content, String title, String codDip)Create 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 contentvoidcreateELP(Content content, String title, String codELP)Create 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 contentvoidcreateETP(Content content, String title, String codETP)Create 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 ELPvoidcreateVDI(Content content, String title, String codDip, Long versionDIP)Create 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 contentvoidcreateVET(Content content, String title, String codETP, Long versionETP)Create 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.CreationSEMetierServiceInterfacegetCreationService()Get the service to create element in Apogeevoidservice(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:
servicein 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
-
_getOrgUnitById
private OrgUnit _getOrgUnitById(String orgUnitId)
Get orgUnit content from id- Parameters:
orgUnitId- the orgUnit id- Returns:
- the orgUnit content
-
_createCIPVET
private gouv.education.apogee.commun.transverse.dto.offreformation.creerse.CentreInsPedagogiDTO2 _createCIPVET(String code)
Create CIP object for VET Apogee- Parameters:
code- the code of the CIP- Returns:
- the CIP object
-
_createCIPELP
private gouv.education.apogee.commun.transverse.dto.offreformation.creerse.CentreInsPedagogiDTO _createCIPELP(String code)
Create CIP object for ELP Apogee- Parameters:
code- the code of the CIP- Returns:
- the CIP object
-
_createRegime
private gouv.education.apogee.commun.transverse.dto.offreformation.creerse.RegimeDTO _createRegime(String code)
Create Regime object for Apogee- Parameters:
code- the code of the regime- Returns:
- the Regime object
-
_createComposanteCGEDTO
private gouv.education.apogee.commun.transverse.dto.offreformation.creerse.ComposanteCGEDTO _createComposanteCGEDTO(OrgUnit orgUnit)
Create the orgUnit CGE for Apogee- Parameters:
orgUnit- the Ametys orgUnit- Returns:
- the orgUnit CGE
-
_createCmpHabiliteeVdiDTO
private gouv.education.apogee.commun.transverse.dto.offreformation.creerse.CmpHabiliteeVdiDTO _createCmpHabiliteeVdiDTO(OrgUnit orgUnit)
Create the orgUnit VDI for Apogee- Parameters:
orgUnit- the Ametys orgUnit- Returns:
- the orgUnit VDI
-
-