Class MediaProperties

java.lang.Object
com.onec.ui.media.MediaProperties

@ConfigurationProperties(prefix="onec.media") public class MediaProperties extends Object
Configuration for the /api/media binary-upload endpoint and its storage backend, under the onec.media.* namespace.
  • Constructor Details

    • MediaProperties

      public MediaProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getMaxFileSize

      public org.springframework.util.unit.DataSize getMaxFileSize()
    • setMaxFileSize

      public void setMaxFileSize(org.springframework.util.unit.DataSize maxFileSize)
    • getAllowedContentTypes

      public List<String> getAllowedContentTypes()
    • setAllowedContentTypes

      public void setAllowedContentTypes(List<String> allowedContentTypes)
    • getPublicBasePath

      public String getPublicBasePath()
    • setPublicBasePath

      public void setPublicBasePath(String publicBasePath)
    • getFilesystem

      public MediaProperties.Filesystem getFilesystem()