Class ContentLimitProvider.SimpleFixedLimitProvider

java.lang.Object
org.alfresco.repo.content.ContentLimitProvider.SimpleFixedLimitProvider
All Implemented Interfaces:
ContentLimitProvider
Enclosing interface:
ContentLimitProvider

public static class ContentLimitProvider.SimpleFixedLimitProvider extends Object implements ContentLimitProvider
A ContentLimitProvider which returns a fixed value.
  • Constructor Details

    • SimpleFixedLimitProvider

      public SimpleFixedLimitProvider()
    • SimpleFixedLimitProvider

      public SimpleFixedLimitProvider(long limit)
  • Method Details

    • setSizeLimitString

      public void setSizeLimitString(String limit)
      This method sets a value for the limit. If the string does not parse to a java long, the default value will be applied instead.
      Parameters:
      limit - a String representing a valid Java long.
    • getSizeLimit

      public long getSizeLimit()
      Description copied from interface: ContentLimitProvider
      This method returns a size limit in bytes.
      Specified by:
      getSizeLimit in interface ContentLimitProvider