public static class ContentLimitProvider.SimpleFixedLimitProvider extends Object implements ContentLimitProvider
ContentLimitProvider
which returns a fixed value.ContentLimitProvider.NoLimitProvider, ContentLimitProvider.SimpleFixedLimitProvider
NO_LIMIT
Constructor and Description |
---|
SimpleFixedLimitProvider() |
SimpleFixedLimitProvider(long limit) |
Modifier and Type | Method and Description |
---|---|
long |
getSizeLimit()
This method returns a size limit in bytes.
|
void |
setSizeLimitString(String limit)
This method sets a value for the limit.
|
public SimpleFixedLimitProvider()
public SimpleFixedLimitProvider(long limit)
public void setSizeLimitString(String limit)
parse
to a
java long, the default value
will be applied instead.limit
- a String representing a valid Java long.public long getSizeLimit()
ContentLimitProvider
getSizeLimit
in interface ContentLimitProvider
Copyright © 2005–2017 Alfresco Software. All rights reserved.