@Override public String updateProject(Project project, Person user) throws BizPolicyException, BizInternalException { // check for null arguments if (project == null) { throw new IllegalArgumentException("Project must be set and NOT null, before calling update project"); } // If project is a new one, create a new project in the system // If a project with matching business id is already in the system, update that project with the given // information. if (project.getId() != null & projectService.isExisting(project.getId())) { return updateExistingProject(project, user); } else { return addProject(project, user); } }
@Override public String updateProject(Project project, Person user) throws BizPolicyException, BizInternalException { // check for null arguments if (project == null) { throw new IllegalArgumentException("Project must be set and NOT null, before calling update project"); } // If project is a new one, create a new project in the system // If a project with matching business id is already in the system, update that project with the given // information. if (project.getId() != null & projectService.isExisting(project.getId())) { return updateExistingProject(project, user); } else { return addProject(project, user); } }