Class PegaseApiManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.pegase.ws.PegaseApiManager
- All Implemented Interfaces:
LogEnabled
,Initializable
,Component
,Serviceable
public class PegaseApiManager
extends AbstractLogEnabled
implements Component, Serviceable, Initializable
Manager for Pégase API.
Get or create API objects and configure it.
-
Field Summary
Modifier and TypeFieldDescriptionprotected PegaseTokenManager
The Pégase token managerstatic final String
Role -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfr.pcscol.pegase.odf.api.MaquettesExterneApi
Getter for MaquettesApifr.pcscol.pegase.odf.api.ObjetsMaquetteExterneApi
Getter for objetsMaquetteApivoid
void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Role -
_pegaseTokenManager
The Pégase token manager
-
-
Constructor Details
-
PegaseApiManager
public PegaseApiManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
getObjetsMaquetteExterneApi
public fr.pcscol.pegase.odf.api.ObjetsMaquetteExterneApi getObjetsMaquetteExterneApi() throws IOExceptionGetter for objetsMaquetteApi- Returns:
- objetsMaquetteApi
- Throws:
IOException
- If an error occurs while retrieving the token
-
getMaquettesExterneApi
Getter for MaquettesApi- Returns:
- maquettesApi
- Throws:
IOException
- If an error occurs while retrieving the token
-