Class DefaultCustomFieldLimitValidator
java.lang.Object
com.atlassian.jira.bc.safeguards.AbstractSafeguardValidator<String>
com.atlassian.jira.bc.safeguards.customfield.DefaultCustomFieldLimitValidator
- All Implemented Interfaces:
CustomFieldLimitValidator,SafeguardValidator<String>
public class DefaultCustomFieldLimitValidator
extends AbstractSafeguardValidator<String>
implements CustomFieldLimitValidator
-
Field Summary
Fields inherited from class com.atlassian.jira.bc.safeguards.AbstractSafeguardValidator
featureManager, jiraAuthenticationContext, log, safeguardEventHelper, safeguardsManager, UNDEFINED_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCustomFieldLimitValidator(FeatureManager featureManager, JiraAuthenticationContext jiraAuthenticationContext, SafeguardsManager safeguardsManager, CustomFieldManager customFieldManager, SafeguardEventHelper safeguardEventHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected longGets the current count of entities being validated.protected StringGets the property key for the enabled flag.protected StringgetEntityName(String input) Gets the entity name from the input for breach notifications.protected SafeguardEntityTypeGets the SafeguardEntityType for this validator.protected StringGets the name of the entity being validated for use in log messages.protected StringGets the property key for the limit value.Methods inherited from class com.atlassian.jira.bc.safeguards.AbstractSafeguardValidator
isEnabled, isValid, notifyBreachMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.bc.safeguards.SafeguardValidator
isEnabled, isValid
-
Constructor Details
-
DefaultCustomFieldLimitValidator
public DefaultCustomFieldLimitValidator(FeatureManager featureManager, JiraAuthenticationContext jiraAuthenticationContext, SafeguardsManager safeguardsManager, CustomFieldManager customFieldManager, SafeguardEventHelper safeguardEventHelper)
-
-
Method Details
-
getCurrentCount
protected long getCurrentCount()Description copied from class:AbstractSafeguardValidatorGets the current count of entities being validated.- Specified by:
getCurrentCountin classAbstractSafeguardValidator<String>- Returns:
- the current count
-
getEntityType
Description copied from class:AbstractSafeguardValidatorGets the SafeguardEntityType for this validator.- Specified by:
getEntityTypein classAbstractSafeguardValidator<String>- Returns:
- the entity type
-
getEnabledPropertyKey
Description copied from class:AbstractSafeguardValidatorGets the property key for the enabled flag.- Specified by:
getEnabledPropertyKeyin classAbstractSafeguardValidator<String>- Returns:
- the enabled property key
-
getLimitPropertyKey
Description copied from class:AbstractSafeguardValidatorGets the property key for the limit value.- Specified by:
getLimitPropertyKeyin classAbstractSafeguardValidator<String>- Returns:
- the limit property key
-
getEntityTypeName
Description copied from class:AbstractSafeguardValidatorGets the name of the entity being validated for use in log messages.- Specified by:
getEntityTypeNamein classAbstractSafeguardValidator<String>- Returns:
- the entity type name
-
getEntityName
Description copied from class:AbstractSafeguardValidatorGets the entity name from the input for breach notifications.- Specified by:
getEntityNamein classAbstractSafeguardValidator<String>- Parameters:
input- the input being validated- Returns:
- the entity name
-