Package org.ametys.odf.ose.export.utils
Class ElementRetriever
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfpilotage.helper.PilotageHelper
org.ametys.odf.ose.export.utils.ElementRetriever
- All Implemented Interfaces:
LogEnabled,Initializable,Component,Serviceable
A retriever used like a helper to retrieve some ODF elements from ODF items.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.odfpilotage.helper.PilotageHelper
PilotageHelper.StepHolderStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe resolverstatic final StringAvalon RoleFields inherited from class org.ametys.plugins.odfpilotage.helper.PilotageHelper
_ametysResolver, _cacheManager, _odfHelper, _refTableHelper, COMPATIBLE_REGIMES_ATTRIBUTE_NAME, CONTAINER_MCC_NUMBER_OF_SESSIONS, CONTAINER_MCC_REGIME, COURSE_MCC_REGIME, MCC_MODALITE_SESSION1, MCC_MODALITE_SESSION2, MCC_SESSION_NATURE, NORME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the id for steps holder by item cache._getStepsToCache(ProgramItem programItem, String yearId) Get the steps to add to the cache.Get the semester container nature identifier.retrieveDegree(Container container) Retrieve the degrees of a givenContainerretrieveOrgUnits(ProgramItem programItem) Retrieve theOrgUnits of a givenProgramItemretrievePeriodTypes(ProgramItem programItem) Get the potential period types of the program item.retrieveStepsHolder(ProgramItem programItem) Get the potential steps holder of the program item.voidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.odfpilotage.helper.PilotageHelper
_getSteps, _getStepsHolder, canWriteMccRestrictions, getCompatibleModalityInSession2, getCompatibleRegimes, getContentFromName, getContentsFromPath, getDisplayablePath, getMCCConfiguration, getMCCNbSessionsPolicy, getMCCRegimePolicy, getParentYears, getStepHolder, getSteps, getYearId, getYears, initialize, invalidateAllCaches, isContainerOfNature, isContainerOfTypeYear, isContainerOfTypeYear, isContainerOfTypeYear, transformEqTD2DoubleMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role -
_resolver
The resolver
-
-
Constructor Details
-
ElementRetriever
public ElementRetriever()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classPilotageHelper- Throws:
ServiceException
-
_getStepsHolderByItemCacheId
Description copied from class:PilotageHelperGet the id for steps holder by item cache.- Overrides:
_getStepsHolderByItemCacheIdin classPilotageHelper- Returns:
- the cache id
-
_getStepsToCache
Description copied from class:PilotageHelperGet the steps to add to the cache.- Overrides:
_getStepsToCachein classPilotageHelper- Parameters:
programItem- The program item to search onyearId- The identifier of the year container nature- Returns:
- A
SetofContainercorresponding to the steps of the given program item.
-
retrieveOrgUnits
Retrieve theOrgUnits of a givenProgramItem- Parameters:
programItem- The program item- Returns:
- the
OrgUnits of the given program item
-
retrieveDegree
Retrieve the degrees of a givenContainer- Parameters:
container- The container- Returns:
- the degrees of the given container
-
retrieveStepsHolder
Get the potential steps holder of the program item. A step is a container of year type and it can be set manually on intermediate courses.- Parameters:
programItem- TheProgramItemon which we have to retrieve the potential steps holder- Returns:
- the potential steps holder of the program item
-
retrievePeriodTypes
Get the potential period types of the program item. It can be retrieved on courses or containers. The algorithm doesn't search in the parent of semester containers.- Parameters:
programItem- TheProgramItemon which we have to retrieve the potential period types- Returns:
- the potential period types of the program item
-
getSemesterId
Get the semester container nature identifier.- Returns:
- an
Optionalof the semester identifier
-