Class SettingsResource


  • @Path("/settings")
    @Consumes("application/json")
    @Produces("application/json")
    @Controller
    public class SettingsResource
    extends java.lang.Object
    The Digital.ai Release settings.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MESSAGE  
    • Constructor Summary

      Constructors 
      Constructor Description
      SettingsResource​(com.xebialabs.xlrelease.security.PermissionChecker permissionChecker, com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.xlrelease.service.ConfigurationService configurationService, com.xebialabs.xlrelease.api.internal.converters.CustomLogoSettingsConverter customLogoSettingsConverter, XLReleaseEventBus eventBus, com.xebialabs.xlrelease.config.XlrConfig xlrConfig, com.xebialabs.xlrelease.service.DbCredentialsService dbCredentialsService)  
    • Constructor Detail

      • SettingsResource

        @Autowired
        public SettingsResource​(com.xebialabs.xlrelease.security.PermissionChecker permissionChecker,
                                com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository,
                                com.xebialabs.xlrelease.service.ConfigurationService configurationService,
                                com.xebialabs.xlrelease.api.internal.converters.CustomLogoSettingsConverter customLogoSettingsConverter,
                                XLReleaseEventBus eventBus,
                                com.xebialabs.xlrelease.config.XlrConfig xlrConfig,
                                com.xebialabs.xlrelease.service.DbCredentialsService dbCredentialsService)
    • Method Detail

      • getReportsSettings

        @GET
        @Timed
        @Path("reports")
        public ReportsSettingsView getReportsSettings()
      • getPollingInterval

        @GET
        @Timed
        @Path("polling-interval")
        public PollingSettingsView getPollingInterval()
      • getArchivingSettings

        @GET
        @Timed
        @Path("archiving-settings")
        public ArchivingSettingsView getArchivingSettings()
      • getThemeSettings

        @GET
        @Timed
        @Path("theme")
        public com.xebialabs.xlrelease.configuration.ThemeSettings getThemeSettings()
      • getSystemMessage

        @GET
        @Timed
        @Path("system-message")
        public com.xebialabs.xlrelease.configuration.SystemMessageSettings getSystemMessage()
      • getUploadAttachmentSettings

        @GET
        @Timed
        @Path("upload")
        public javax.ws.rs.core.Response getUploadAttachmentSettings()
      • read

        @GET
        @Timed
        @Path("ci/{ID:Configuration.*}")
        public javax.ws.rs.core.Response read​(@PathParam("ID")
                                              java.lang.String id)
      • create

        @POST
        @Timed
        @Path("ci/{ID:Configuration.*}")
        public com.xebialabs.xlrelease.domain.BaseConfiguration create​(@PathParam("ID")
                                                                       java.lang.String id,
                                                                       com.xebialabs.xlrelease.domain.BaseConfiguration configurationItem)
      • update

        @PUT
        @Timed
        @Path("ci/{ID:Configuration.*}")
        public com.xebialabs.xlrelease.domain.BaseConfiguration update​(@PathParam("ID")
                                                                       java.lang.String id,
                                                                       com.xebialabs.xlrelease.domain.BaseConfiguration configurationItem)
      • delete

        @DELETE
        @Timed
        @Path("ci/{ID:Configuration.*}")
        public void delete​(@PathParam("ID")
                           java.lang.String id)
      • getCustomLogoContentTypes

        @GET
        @Path("content-type/image")
        public java.util.List<java.lang.String> getCustomLogoContentTypes()
      • setCustomLogo

        @POST
        @Timed
        @Path("custom-logo/upload")
        @Consumes("multipart/form-data")
        public com.xebialabs.xlrelease.configuration.CustomLogoSettings setCustomLogo​(@Context
                                                                                      javax.servlet.http.HttpServletRequest request)
                                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • downloadCustomLogo

        @GET
        @Path("custom-logo/download")
        public javax.ws.rs.core.Response downloadCustomLogo()
      • getFeatureSettings

        @GET
        @Path("features")
        public java.util.List<com.xebialabs.xlrelease.configuration.FeatureSettings> getFeatureSettings()
      • getFeatureSetting

        @GET
        @Path("features/{type}")
        public com.xebialabs.xlrelease.configuration.FeatureSettings getFeatureSetting​(@PathParam("type")
                                                                                       java.lang.String type)
      • updateFeatureSettings

        @PUT
        @Timed
        @Path("features")
        public java.util.List<com.xebialabs.xlrelease.configuration.FeatureSettings> updateFeatureSettings​(java.util.List<com.xebialabs.xlrelease.configuration.FeatureSettings> features)
      • reloadDbConfig

        @PUT
        @Path("/reloadDbConfig")
        public javax.ws.rs.core.Response reloadDbConfig​(UpdateDBCredentialsForm form)