Class AbstractApogeeStructure
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.export.AbstractExportStructure
org.ametys.plugins.odfsync.apogee.ws.structure.AbstractApogeeStructure
- All Implemented Interfaces:
LogEnabled
,Serviceable
- Direct Known Subclasses:
ApogeeContainerStructure
,ApogeeDefaultStructure
,ApogeeFullStructure
,ApogeeSingleProgramStructure
The abstract class to handle an export in Apogee
-
Field Summary
Modifier and TypeFieldDescriptionprotected ApogeeWS
The apogee WSstatic final String
The attribute name for the code Apogeestatic final String
The separator between the code and the versionstatic final String
Avalon Rolestatic final String
The false attribute name for the version ApogeeFields inherited from class org.ametys.plugins.odfsync.export.AbstractExportStructure
_i18nUtils, _odfRefTableHelper, _resolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_checkSimpleData
(Content content, String dataPath, ExportReport report) Check if the content has a value for the simple dataprotected void
_checkTableRef
(Content content, String dataPath, ExportReport report) Check if the content has a value for the simple table ref dataprotected void
_checkVersionApogee
(Content content, ExportReport 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, ExportReport report) Create a course in Apogeeprotected void
_createCourseList
(CourseList courseList, Content parentApogee, gouv.education.apogee.commun.client.ws.creationse.CreationSEMetierServiceInterface creationService, ExportReport report) Create a course list in Apogeevoid
checkContainerAsSemester
(Container container, ExportReport report, String containerNatureCode) Check if the container as semester has the good data and structure to be export in Apogeevoid
checkContainerAsYear
(Container container, ExportReport report, String containerNatureCode) Check if the container as year has the good data and structure to be export in Apogeeprotected boolean
checkContainerSemester
(String containerNatureCode, ExportReport report) Check if the container is a semester and set the exportStatus to CONTENT_STRUCTURE_INVALID if the container nature code cannot be foundprotected boolean
checkContainerYear
(String containerNatureCode, ExportReport report) Check if the container is a year and set the exportStatus to CONTENT_STRUCTURE_INVALID if the container nature code cannot be foundvoid
checkCourse
(Course course, ExportReport report) Check if the course has the good data and structure to be export in Apogeevoid
checkCourseList
(CourseList courseList, ExportReport report) Check if the course list has the good data and structure to be export in Apogeevoid
checkMandatoryDataForContent
(Content content, List<String> mandatoryData, ExportReport report) Check if the content has a value for all mandatory datavoid
checkMandatoryDataForOrgunits
(Content content, List<String> orgUnits, List<String> mandatoryData, ExportReport report) Check if the orgUnits has a value for all mandatory dataabstract void
checkSubProgram
(SubProgram subProgram, ExportReport report) Check if the subProgram has the good data and structure to be export in ApogeegetCodeApogee
(Content content) Get the code Apogee of the contentgetDIPMandatoryData
(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 Apogeevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.odfsync.export.AbstractExportStructure
checkProgram, createProgram, getContainerNatureCode
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role -
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:
-
_apogeeWS
The apogee WS
-
-
Constructor Details
-
AbstractApogeeStructure
public AbstractApogeeStructure()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractExportStructure
- 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
-
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
public void checkContainerAsYear(Container container, ExportReport report, String containerNatureCode) 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 reportcontainerNatureCode
- The container nature code
-
checkContainerAsSemester
public void checkContainerAsSemester(Container container, ExportReport report, String containerNatureCode) 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 reportcontainerNatureCode
- The container nature code
-
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, ExportReport 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, ExportReport 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, ExportReport 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, ExportReport 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
-
checkContainerSemester
Check if the container is a semester and set the exportStatus to CONTENT_STRUCTURE_INVALID if the container nature code cannot be found- Parameters:
containerNatureCode
- The container nature codereport
- The ExportReport that contains the exportStatus- Returns:
- true if the container is a semester, false if it is not, and null if the container nature code could not be retrieved
-
checkContainerYear
Check if the container is a year and set the exportStatus to CONTENT_STRUCTURE_INVALID if the container nature code cannot be found- Parameters:
containerNatureCode
- The container nature codereport
- The ExportReport that contains the exportStatus- Returns:
- true if the container is a year, false if it is not, and null if the container nature code could not be retrieved
-