Gets a {@link ProjectModel} with the given name.
10626
public ProjectModel getByName(String name)
    {
        return getUnique(getQuery().getRawTraversal().has(ProjectModel.NAME, name));
    }
1180947
public static void checkProjectName(String name) {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(name)) {
            throw new CmsIllegalArgumentException(Messages.get().container(Messages.ERR_PROJECTNAME_VALIDATION_0));
        }
    }
922298
@Deprecated
  @SuppressWarnings("WeakerAccess")
  public com.google.bigtable.admin.v2.ProjectName getProjectName() {
    return com.google.bigtable.admin.v2.ProjectName.of(projectId);
  }
52803
public GitlabProject getProject(String namespace, String projectName) throws IOException {
        String tailUrl = GitlabProject.URL + "/" + sanitizeGroupId(namespace) + "%2F" + sanitizeProjectId(projectName);
        return retrieve().to(tailUrl, GitlabProject.class);
    }
1137456
public static Project toProject(Vector<Object> xmlRpcParameters)
    {
        Project project = null;
        if(!xmlRpcParameters.isEmpty())
        {
            project = Project.newInstance((String)xmlRpcParameters.get(PROJECT_NAME_IDX));
        }
        
        return project;
    }
657877
public ModelService getModelService(String serviceName){
        ModelService service = getDirectoryServiceClient().getService(serviceName, null);
        return service;
    }
1255293
public static String getProjectId(String sessionId, AzkabanProjectConfig azkabanProjectConfig) throws IOException {
    // Note: Every get call to Azkaban provides a projectId in response, so we have are using fetchProjectFlows call
    // .. because it does not need any additional params other than project name
    Map<String, String> params = Maps.newHashMap();
    params.put("ajax", "fetchprojectflows");
    params.put("project", azkabanProjectConfig.getAzkabanProjectName());

    return executeGetRequest(prepareGetRequest(azkabanProjectConfig.getAzkabanServerUrl() + "/manager",
        sessionId, params)).get("projectId");
  }
492319
public Project getProject(final int id) {
    Project fetchedProject = this.projectsById.get(id);
    if (fetchedProject == null) {
      try {
        fetchedProject = this.projectLoader.fetchProjectById(id);
      } catch (final ProjectManagerException e) {
        logger.error("Could not load project from store.", e);
      }
    }
    return fetchedProject;
  }
244141
public static function modelName($project, $location, $model)
    {
        return self::getModelNameTemplate()->render([
            'project' => $project,
            'location' => $location,
            'model' => $model,
        ]);
    }
1086628
def get_project(self, project):
        
        project = format_string(project)

        return self.get(
            '/projects/{project}'.format(project=project))
341996
public <T> T getModel(Class<T> modelClass) {
		return (T)Injector.injectModel(modelClass, request, false);
	}
886508
protected String toGenModelProjectPath(String path) {
		return null == path || "".equals(path) || path.startsWith("/") || !path.contains("/") ? path : path.substring(path.indexOf("/"));
	}
163895
public Retrospective retrospective(String name, Project project) {
        return retrospective(name, project, null);
    }
1157332
private MavenProjectModel getMavenProject(MavenProjectService mavenProjectService, String groupId, String artifactId, String version)
    {
        Iterable<MavenProjectModel> possibleProjects = mavenProjectService.findByGroupArtifactVersion(groupId, artifactId, version);
        MavenProjectModel project = null;
        for (MavenProjectModel possibleProject : possibleProjects)
        {
            if (possibleProject.getRootFileModel() != null)
            {
                return possibleProject;
            }
            else if (project == null)
            {
                project = possibleProject;
            }
        }
        return project;
    }
597674
protected ModelMetadataKey getModelMetadataKey(String keyName) {
        ModelMetadataKey key =  null;
        try {
           key = getDirectoryServiceClient().getMetadataKey(keyName);
        }catch (ServiceException se){
            LOGGER.error("Error when getModelMetadataKey",se);
        }
        return key;
    }
486267
@GetMapping("/mappingproject/{id}")
  public String viewMappingProject(@PathVariable("id") String identifier, Model model) {
    MappingProject project = mappingService.getMappingProject(identifier);
    MappingTarget mappingTarget = project.getMappingTargets().get(0);
    String target = mappingTarget.getName();
    model.addAttribute("entityTypes", getNewSources(mappingTarget));
    model.addAttribute(
        "compatibleTargetEntities",
        mappingService.getCompatibleEntityTypes(mappingTarget.getTarget()).collect(toList()));
    model.addAttribute("selectedTarget", target);
    model.addAttribute("mappingProject", project);
    model.addAttribute("attributeTagMap", getTagsForAttribute(target, project));
    model.addAttribute(
        "packages",
        dataService
            .getMeta()
            .getPackages()
            .stream()
            .filter(p -> !isSystemPackage(p))
            .collect(toList()));
    return VIEW_SINGLE_MAPPING_PROJECT;
  }
251493
public CollectionRequest<ProjectMembership> findByProject(String project) {
    
        String path = String.format("/projects/%s/project_memberships", project);
        return new CollectionRequest<ProjectMembership>(this, ProjectMembership.class, path, "GET");
    }