com.atlassian.jira.plugins.mail.extensions
Class ProjectRequiredMessageHandlerValidator
java.lang.Object
com.atlassian.jira.plugins.mail.extensions.ProjectRequiredMessageHandlerValidator
- All Implemented Interfaces:
- MessageHandlerValidator
public class ProjectRequiredMessageHandlerValidator
- extends Object
- implements MessageHandlerValidator
Validates whether there is at least one project present.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectRequiredMessageHandlerValidator
public ProjectRequiredMessageHandlerValidator(ProjectManager projectManager,
JiraAuthenticationContext jiraAuthenticationContext)
validate
public ErrorCollection validate()
- Description copied from interface:
MessageHandlerValidator
- if any error messages (retrieved via
ErrorCollection.getErrorMessages()
)
are present, they will be displayed in message handler/service configuration UI and will block
the user from proceeding to the next configuration screen.
Note that per-field error (getError() and addError) and reasons will be ignored.
- Specified by:
validate
in interface MessageHandlerValidator
- Returns:
- potentially non-empy list of error messages - if using the handler given current JIRA state is not possible.
Copyright © 2002-2012 Atlassian. All Rights Reserved.