@Override
public boolean isValidRequiredProjectData(JiraServiceContext serviceContext, ProjectCreationData projectCreationData)
{
final ErrorCollection errorCollection = ErrorCollections.empty();
final I18nHelper i18nBean = serviceContext.getI18nBean();
validateProjectName(projectCreationData.getName(), errorCollection, i18nBean);
validateProjectKey(null, projectCreationData.getKey(), errorCollection, i18nBean);
validateProjectLead(Option.option(projectCreationData.getLead()), errorCollection, i18nBean);
validateProjectType(serviceContext.getLoggedInApplicationUser(), projectCreationData.getProjectTypeKey(), errorCollection, i18nBean);
if (errorCollection.hasAnyErrors())
{
serviceContext.getErrorCollection().addErrorCollection(errorCollection);
return false;
}
return true;
}