@ProviderType
public interface UGCLimiterService
Modifier and Type | Method and Description |
---|---|
long |
getUgcDuration()
Gets the ugc duration for ugc rate limit in minutes.
|
int |
getUgcLimit()
Gets the ugc rate limit.
|
java.lang.String[] |
getUgcLimitedToList()
Gets the to List to which a user can send mail to request for exception in ugc limit.
|
boolean |
mayCreateUGC(ResourceResolver resolver,
java.lang.String userId)
Check if a user can create any more UGC if UGC Limits is enabled for the user.
|
boolean |
mayCreateUGC(ResourceResolver resolver,
User user)
Check if a user can create any more UGC if UGC Limits is enabled for the user.
|
boolean mayCreateUGC(ResourceResolver resolver, User user)
resolver
- used for reading previously stored ugc limits datauser
- the user to checkboolean mayCreateUGC(ResourceResolver resolver, java.lang.String userId)
resolver
- used for reading previously stored ugc limits datauserId
- the userid to checkint getUgcLimit()
long getUgcDuration()
java.lang.String[] getUgcLimitedToList()
Copyright © 2010 - 2020 Adobe. All Rights Reserved