@Override
public DeleteByGlobalIdValidationResult validateDeleteByGlobalId(final ApplicationUser user, final Issue issue, final String globalId)
{
final ErrorCollection errors = new SimpleErrorCollection();
final I18nHelper i18n = getI18n(user);
validateLinkingEnabled(i18n, errors);
RemoteIssueLink remoteIssueLink = null;
if (!errors.hasAnyErrors())
{
remoteIssueLink = validateExistsByGlobalId(issue, globalId, i18n, errors);
}
if (!errors.hasAnyErrors())
{
validatePermissionToDelete(user, remoteIssueLink, errors, i18n);
}
return new DeleteByGlobalIdValidationResult(issue, globalId, errors);
}