@Override void validateData() { validateProjectId(this, projectId); validateName(this, null, name, projectId); validateLead(this, lead); }
@Override void validateData() { validateProjectId(this, projectId); validateName(this, null, name, projectId); validateLead(this, lead); validateAssigneeType(this, assigneeType); }
@Override void validateData() { // validate lead validateLead(this, component.getLead()); // validate name Long id = component.getId(); try { ProjectComponent oldComponent = projectComponentManager.find(id); String oldName = oldComponent.getName(); if (!oldName.equalsIgnoreCase(component.getName())) { validateName(this, oldName, component.getName(), oldComponent.getProjectId()); } } catch (EntityNotFoundException e) { if (id != null) { addErrorKey(KEY_NO_SUCH_COMPONENT_WITH_ID, id.toString(), ErrorCollection.Reason.VALIDATION_FAILED); } else { addErrorKey(KEY_NO_SUCH_COMPONENT, null, ErrorCollection.Reason.VALIDATION_FAILED); } } }