Class AbstractApogeeStructure
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.apogee.ws.structure.AbstractApogeeStructure
- All Implemented Interfaces:
ApogeeExportStructure
,LogEnabled
,Serviceable
- Direct Known Subclasses:
ApogeeContainerStructure
,ApogeeDefaultStructure
,ApogeeFullStructure
,ApogeeSingleProgramStructure
public abstract class AbstractApogeeStructure
extends AbstractLogEnabled
implements ApogeeExportStructure, Serviceable
The abstract class to handle an export in Apogee
-
Field Summary
Modifier and TypeFieldDescriptionprotected ApogeeWS
The apogee WSprotected I18nUtils
The i18n utilsprotected OdfReferenceTableHelper
The ODF reference table helperprotected AmetysObjectResolver
The Ametys object resolverstatic final String
The attribute name for the code Apogeestatic final String
The separator between the code and the versionstatic final String
The false attribute name for the version Apogee -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_checkSimpleData
(Content content, String dataPath, ApogeeExportReport report) Check if the content has a value for the simple dataprotected void
_checkTableRef
(Content content, String dataPath, ApogeeExportReport report) Check if the content has a value for the simple table ref dataprotected void
_checkVersionApogee
(Content content, ApogeeExportReport report) Check if the version Apogee exist in the Apogee codeprotected void
_createCourse
(Course course, Content parentApogee, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationService, ApogeeExportReport report) Create a course in Apogeeprotected void
_createCourseList
(CourseList courseList, Content parentApogee, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationService, ApogeeExportReport report) Create a course list in Apogeeabstract void
checkContainerAsSemester
(Container container, ApogeeExportReport report) Check if the container as semester has the good data and structure to be export in Apogeeabstract void
checkContainerAsYear
(Container container, ApogeeExportReport report) Check if the container as year has the good data and structure to be export in Apogeevoid
checkCourse
(Course course, ApogeeExportReport report) Check if the course has the good data and structure to be export in Apogeevoid
checkCourseList
(CourseList courseList, ApogeeExportReport report) Check if the course list has the good data and structure to be export in Apogeevoid
checkMandatoryDataForContent
(Content content, List<String> mandatoryData, ApogeeExportReport report) Check if the content has a value for all mandatory datavoid
checkMandatoryDataForOrgunits
(Content content, List<String> orgUnits, List<String> mandatoryData, ApogeeExportReport report) Check if the orgUnits has a value for all mandatory dataabstract void
checkSubProgram
(SubProgram subProgram, ApogeeExportReport report) Check if the subProgram has the good data and structure to be export in ApogeegetCodeApogee
(Content content) Get the code Apogee of the contentgetContainerNatureCode
(Container container, ApogeeExportReport report) Get the code of the container naturegetDIPMandatoryData
(Content content) Mandatory data to export a content in a DIP in ApogeegetELPMandatoryData
(Content content) Mandatory data to export a content in a ELP in ApogeegetETPMandatoryData
(Content content) Mandatory data to export a content in a ETP in ApogeegetLSEMandatoryData
(Content content) Mandatory data to export a content in a LSE in ApogeeMandatory data to export an orgunit for a DIP in ApogeeMandatory data to export an orgunit for a ELP in ApogeeMandatory data to export an orgunit for a ETP in ApogeegetVDIMandatoryData
(Content content) Mandatory data to export a content in a VDI in ApogeegetVersionApogee
(Content content) Get the version, Apogee of the contentgetVETMandatoryData
(Content content) Mandatory data to export a content in a VET in Apogeeboolean
isSemesterContainer
(Container container, ApogeeExportReport report) True if the container has for nature "semestre"boolean
isYearContainer
(Container container, ApogeeExportReport report) True if the container has for nature "annee"void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.odfsync.apogee.ws.structure.ApogeeExportStructure
checkProgram, createProgram
-
Field Details
-
CODE_APOGEE_ATTRIBUTE_NAME
The attribute name for the code Apogee- See Also:
-
VERSION_APOGEE_ATTRIBUTE_NAME
The false attribute name for the version Apogee- See Also:
-
CODE_APOGEE_SEPARATOR
The separator between the code and the version- See Also:
-
_i18nUtils
The i18n utils -
_apogeeWS
The apogee WS -
_resolver
The Ametys object resolver -
_odfRefTableHelper
The ODF reference table helper
-
-
Constructor Details
-
AbstractApogeeStructure
public AbstractApogeeStructure()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getDIPMandatoryData
Mandatory data to export a content in a DIP in Apogee- Parameters:
content
- the content to export- Returns:
- the list of mandatory data
-
getVDIMandatoryData
Mandatory data to export a content in a VDI in Apogee- Parameters:
content
- the content to export- Returns:
- the list of mandatory data
-
getETPMandatoryData
Mandatory data to export a content in a ETP in Apogee- Parameters:
content
- the content to export- Returns:
- the list of mandatory data
-
getVETMandatoryData
Mandatory data to export a content in a VET in Apogee- Parameters:
content
- the content to export- Returns:
- the list of mandatory data
-
getLSEMandatoryData
Mandatory data to export a content in a LSE in Apogee- Parameters:
content
- the content to export- Returns:
- the list of mandatory data
-
getELPMandatoryData
Mandatory data to export a content in a ELP in Apogee- Parameters:
content
- the content to export- Returns:
- the list of mandatory data
-
getOrgUnitMandatoryDataForDIP
Mandatory data to export an orgunit for a DIP in Apogee- Returns:
- the list of mandatory data
-
getOrgUnitMandatoryDataForETP
Mandatory data to export an orgunit for a ETP in Apogee- Returns:
- the list of mandatory data
-
getOrgUnitMandatoryDataForELP
Mandatory data to export an orgunit for a ELP in Apogee- Returns:
- the list of mandatory data
-
getContainerNatureCode
Get the code of the container nature- Parameters:
container
- the containerreport
- the Apogee export report- Returns:
- the code of the nature
-
isYearContainer
True if the container has for nature "annee"- Parameters:
container
- the containerreport
- the Apogee export report- Returns:
- true if it's a year container
-
isSemesterContainer
True if the container has for nature "semestre"- Parameters:
container
- the containerreport
- the Apogee export report- Returns:
- true if it's a semester container
-
getCodeApogee
Get the code Apogee of the content- Parameters:
content
- the content- Returns:
- the code Apogee
-
getVersionApogee
Get the version, Apogee of the content- Parameters:
content
- the content- Returns:
- the version Apogee
-
checkSubProgram
Check if the subProgram has the good data and structure to be export in Apogee- Parameters:
subProgram
- the subProgram to checkreport
- the Apogee export report
-
checkContainerAsYear
Check if the container as year has the good data and structure to be export in Apogee- Parameters:
container
- the container to checkreport
- the Apogee export report
-
checkContainerAsSemester
Check if the container as semester has the good data and structure to be export in Apogee- Parameters:
container
- the container to checkreport
- the Apogee export report
-
checkCourseList
Check if the course list has the good data and structure to be export in Apogee- Parameters:
courseList
- the course list to checkreport
- the Apogee export report
-
checkCourse
Check if the course has the good data and structure to be export in Apogee- Parameters:
course
- the course to checkreport
- the Apogee export report
-
checkMandatoryDataForContent
public void checkMandatoryDataForContent(Content content, List<String> mandatoryData, ApogeeExportReport report) Check if the content has a value for all mandatory data- Parameters:
content
- the content to checkmandatoryData
- the list of mandatory data pathreport
- the Apogee export report
-
_checkSimpleData
Check if the content has a value for the simple data- Parameters:
content
- the content to checkdataPath
- the data pathreport
- the Apogee export report
-
_checkTableRef
Check if the content has a value for the simple table ref data- Parameters:
content
- the content to checkdataPath
- the data pathreport
- the Apogee export report
-
_checkVersionApogee
Check if the version Apogee exist in the Apogee code- Parameters:
content
- the contentreport
- the Apogee export report
-
checkMandatoryDataForOrgunits
public void checkMandatoryDataForOrgunits(Content content, List<String> orgUnits, List<String> mandatoryData, ApogeeExportReport report) Check if the orgUnits has a value for all mandatory data- Parameters:
content
- the content to checkorgUnits
- the list of orgUnit to checkmandatoryData
- the list of mandatory data pathreport
- the Apogee export report
-
_createCourseList
protected void _createCourseList(CourseList courseList, Content parentApogee, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationService, ApogeeExportReport report) throws RemoteException Create a course list in Apogee- Parameters:
courseList
- the course list to createparentApogee
- the parent in ApogeecreationService
- the service to create element in Apogeereport
- the Apogee export report- Throws:
RemoteException
- if an export error occurred
-
_createCourse
protected void _createCourse(Course course, Content parentApogee, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationService, ApogeeExportReport report) throws RemoteException Create a course in Apogee- Parameters:
course
- the course to createparentApogee
- the parent in ApogeecreationService
- the service to create element in Apogeereport
- the Apogee export report- Throws:
RemoteException
- if an export error occurred
-