com.atlassian.jira.project.Project.getProjectLead()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中com.atlassian.jira.project.Project.getProjectLead()方法的一些代码示例,展示了Project.getProjectLead()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getProjectLead()方法的具体详情如下:
包路径:com.atlassian.jira.project.Project
类名称:Project
方法名:getProjectLead

Project.getProjectLead介绍

暂无

代码示例

代码示例来源:origin: com.atlassian.jira/jira-core

private ImmutableList<AssociatedItem> getUserByProjectLeadChange(Project oldProject, Project project)
{
  if (oldProject == null || !project.getProjectLead().equals(oldProject.getProjectLead()))
  {
    return ImmutableList.<AssociatedItem>of(new AffectedUser(project.getProjectLead()));
  }
  else
  {
    return ImmutableList.of();
  }
}

代码示例来源:origin: com.atlassian.jira/jira-core

@Override
public Set<ApplicationUser> getUsers(PermissionContext ctx, String ignored)
{
  Project project = ctx.getProjectObject();
  ApplicationUser user = project.getProjectLead();
  Set<ApplicationUser> result = new HashSet<ApplicationUser>(1);
  if (user != null)
    result.add(user);
  return result;
}

代码示例来源:origin: com.atlassian.jira/jira-api

/**
 * Build a Network project instance from a local Project.
 *
 * @param project the local project
 * @return a NetworkProject instance representing the given local project.
 */
@Nonnull
public static RemoteProject from(final Project project)
{
  return new RemoteProject(project.getId(), project.getKey(), project.getName(), project.getDescription(), RemoteUser.from(project.getProjectLead()), project.getUrl(), null, RemoteAvatar.from(project));
}

代码示例来源:origin: com.atlassian.jira/jira-api

this.avatarId = input.getAvatarId();
this.lead = ofNullable(input.getLead()).orElse(existingProject.getProjectLead());
this.assigneeType = ofNullable(input.getAssigneeType()).orElse(existingProject.getAssigneeType());
return this;

代码示例来源:origin: com.atlassian.jira/jira-core

public ProjectBean(final Project project, final boolean recent)
{
  this(
      project.getKey(),
      project.getName(),
      project.getId(),
      hasDefaultAvatar(project),
      project.getProjectLead(),
      project.getProjectCategoryObject(),
      recent,
      project.getUrl(),
      project.getProjectTypeKey()
  );
}

代码示例来源:origin: com.atlassian.jira/jira-core

(ComponentAssigneeTypes.isProjectDefault(assigneeType) && ProjectAssigneeTypes.isProjectLead(project.getAssigneeType())))
defaultAssignee = project.getProjectLead();

代码示例来源:origin: com.atlassian.jira/jira-core

lead = issue.getProjectObject().getProjectLead();
leadKey = lead == null ? null : lead.getKey();

代码示例来源:origin: com.atlassian.jira/jira-core

protected ProjectService.UpdateProjectValidationResult getUpdateProjectValidationResult()
{
  final Project projectObject = getProjectObject();
  if (isProjectKeyRenameAllowed() && isKeyEdited())
  {
    return projectService.validateUpdateProject(getLoggedInUser(), getProjectObject(), getName(),
        getKey(), getDescription(), projectObject.getProjectLead(),
        getUrl(), projectObject.getAssigneeType(), null);
  }
  else
  {
    return projectService.validateUpdateProject(getLoggedInUser(), getName(),
        projectObject.getKey(),
        getDescription(), projectObject.getProjectLead(), getUrl(), projectObject.getAssigneeType(), getAvatarId());
  }
}
protected void doValidation()

代码示例来源:origin: com.atlassian.jira/jira-rest-plugin

firstIfNotNull(updateData.getKey(), projectToEdit.getKey()),
firstIfNotNull(updateData.getDescription(), projectToEdit.getDescription()),
firstIfNotNull(updateData.getLead(), projectToEdit.getProjectLead().getName()),
firstIfNotNull(updateData.getUrl(), projectToEdit.getUrl()),
firstIfNotNull(updateData.getAssigneeTypeOrNull(), projectToEdit.getAssigneeType()),

相关文章