Package org.apache.unomi.router.rest
Class ExportConfigurationServiceEndPoint
- java.lang.Object
-
- org.apache.unomi.router.rest.AbstractConfigurationServiceEndpoint<ExportConfiguration>
-
- org.apache.unomi.router.rest.ExportConfigurationServiceEndPoint
-
@Path("/exportConfiguration") public class ExportConfigurationServiceEndPoint extends AbstractConfigurationServiceEndpoint<ExportConfiguration>
A JAX-RS endpoint to manageExportConfiguration
s.
-
-
Field Summary
-
Fields inherited from class org.apache.unomi.router.rest.AbstractConfigurationServiceEndpoint
configurationService
-
-
Constructor Summary
Constructors Constructor Description ExportConfigurationServiceEndPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteConfiguration(String configId)
Delete a configuration by id.javax.ws.rs.core.Response
processOneshotImportConfigurationCSV(ExportConfiguration exportConfiguration)
Save/Update the given import configuration.ExportConfiguration
saveConfiguration(ExportConfiguration exportConfiguration)
Save the given export configuration.void
setExportConfigurationService(ImportExportConfigurationService<ExportConfiguration> exportConfigurationService)
void
setProfileExportService(ProfileExportService profileExportService)
void
setProfileService(ProfileService profileService)
-
Methods inherited from class org.apache.unomi.router.rest.AbstractConfigurationServiceEndpoint
getConfiguration, getConfigurations
-
-
-
-
Constructor Detail
-
ExportConfigurationServiceEndPoint
public ExportConfigurationServiceEndPoint() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException
-
-
Method Detail
-
setExportConfigurationService
public void setExportConfigurationService(ImportExportConfigurationService<ExportConfiguration> exportConfigurationService)
-
setProfileExportService
public void setProfileExportService(ProfileExportService profileExportService)
-
setProfileService
public void setProfileService(ProfileService profileService)
-
saveConfiguration
public ExportConfiguration saveConfiguration(ExportConfiguration exportConfiguration)
Save the given export configuration.- Specified by:
saveConfiguration
in classAbstractConfigurationServiceEndpoint<ExportConfiguration>
- Returns:
- the export configuration saved.
-
deleteConfiguration
public void deleteConfiguration(String configId)
Description copied from class:AbstractConfigurationServiceEndpoint
Delete a configuration by id.- Specified by:
deleteConfiguration
in classAbstractConfigurationServiceEndpoint<ExportConfiguration>
- Parameters:
configId
- config id
-
processOneshotImportConfigurationCSV
@POST @Path("/oneshot") @Consumes("application/json") @Produces("text/csv") public javax.ws.rs.core.Response processOneshotImportConfigurationCSV(ExportConfiguration exportConfiguration)
Save/Update the given import configuration. Prepare the file to be processed with Camel routes- Parameters:
exportConfiguration
- configuration- Returns:
- OK / NOK Http Code.
-
-