Package com.atlassian.jira.project

Examples of com.atlassian.jira.project.Project


    public boolean matches(User user) {
      if (myProjectId == 0 || myRoleId == 0) {
        return false;
      }
      ProjectManager pm = ComponentAccessor.getProjectManager();
      Project project = pm.getProjectObj(myProjectId);
      if (project == null) {
        return false;
      }
      ProjectRoleManager rm = ComponentAccessor.getComponentOfType(ProjectRoleManager.class);
      com.atlassian.jira.security.roles.ProjectRole role = rm.getProjectRole(myRoleId);
View Full Code Here


          return false;
        }
        projects = configuration.getCurrentlyEnabledProjects();
      } else {
        ProjectManager pm = ComponentAccessor.getProjectManager();
        Project project = pm.getProjectObj(myProjectId);
        projects = project == null ? Collections.<Project>emptyList() : Collections.singletonList(project);
      }

      for (Project project : projects) {
        if (rm.isUserInProjectRole(user, role, project)) {
View Full Code Here

    public boolean matches(User user) {
      if (myProjectId == 0 || myRoleId == 0) {
        return false;
      }
      ProjectManager pm = ComponentAccessor.getProjectManager();
      Project project = pm.getProjectObj(myProjectId);
      if (project == null) {
        return false;
      }
      ProjectRoleManager rm = ComponentAccessor.getComponentOfType(ProjectRoleManager.class);
      com.atlassian.jira.security.roles.ProjectRole role = rm.getProjectRole(myRoleId);
View Full Code Here

        for (int i = 0; i < projects.length; i++) {
          final String projectName = projects[i] == null ? null : projects[i].trim();
          //**
//          log.debug("Found project name " + projectName);
          if (projectName != null) {
            final Project project = projectManager.getProjectObjByName(projectName);
            projectCollection.add(project.getId());
            final String id = getIncidentIssueId(issueTypeSchemeManager, project);
            if (id != null) {
              issueTypeCollection.add(id);
            }
          }
View Full Code Here

    final CustomField responseSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.RESPONSE_SLA_STATE);       
    final CustomField fixSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.FIX_KPI_STATE);       
    final CustomField timeElapsed = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.TIME_ELAPSED);       
    final CustomField onHold = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.ON_HOLD);       

    final Project project = mIssue.getProjectObject();
    final GenericValue securityLevel = mIssue.getSecurityLevel();
   
    final ClientSLAConfig clientSLAConfiguration = SLAServiceJob.getClientSLAConfiguration(securityLevel.getString("name"), project.getName());
    if (clientSLAConfiguration != null)
    {
      User user;
      try {
        user = UserUtils.getUser(SLAServiceJob.getSLAServiceUserName());
View Full Code Here

    final CustomField fixSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.FIX_KPI_STATE);       
    final CustomField timeElapsed = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.TIME_ELAPSED);       
    final CustomField onHold = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.ON_HOLD);       

   
    final Project project = mIssue.getProjectObject();
    final GenericValue securityLevel = mIssue.getSecurityLevel();
   
    final ClientSLAConfig clientSLAConfiguration = SLAServiceJob.getClientSLAConfiguration(securityLevel.getString("name"), project.getName());
    if (clientSLAConfiguration != null)
    {
      User user;
      try {
        user = UserUtils.getUser(SLAServiceJob.getSLAServiceUserName());
View Full Code Here

    final Priority priorityObject = mIssue.getPriorityObject();
    final String name = priorityObject.getName();
    if (name != null && name.startsWith(SLAServiceJob.PRIORITY_1))
    {
      final Project project = mIssue.getProjectObject();
      final GenericValue securityLevel = mIssue.getSecurityLevel();
      final ClientSLAConfig clientSLAConfiguration = SLAServiceJob.getClientSLAConfiguration(securityLevel.getString("name"), project.getName());
      if (clientSLAConfiguration != null)
      {
        final String p1ResponseSLA = clientSLAConfiguration.getP1ResponseSLA();
        if (p1ResponseSLA != null && p1ResponseSLA.trim().length() > 0)
        {
View Full Code Here

    final CustomField fixSlaState = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.FIX_KPI_STATE);       
    final CustomField timeElapsed = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.TIME_ELAPSED);       
    final CustomField onHold = customFieldManager.getCustomFieldObjectByName(SLAServiceJob.ON_HOLD);       

   
    final Project project = mIssue.getProjectObject();
    final GenericValue securityLevel = mIssue.getSecurityLevel();
   
    final ClientSLAConfig clientSLAConfiguration = SLAServiceJob.getClientSLAConfiguration(securityLevel.getString("name"), project.getName());
    if (clientSLAConfiguration != null)
    {
      User user;
      try {
        user = UserUtils.getUser(SLAServiceJob.getSLAServiceUserName());
View Full Code Here

        {
          for (String fieldValue : getFieldValues())
          {
            if (changeHistoryItem.getTo().equals(fieldValue))
            {
              Project project = issue.getProjectObject();
              String user = changeHistoryItem.getUser();

              updateUserStatistic(resolvedByUser, user);
              updateProjectStatistic(resolvedByUserByProject, project, user);
              updateComponentsStatistic(resolvedByUserByComponent, project, project.getProjectComponents(), user);
              updateVersionsStatistic(resolvedByUserByVersion, project, issue.getAffectedVersions(), user);
              break;
            }
          }
        }
View Full Code Here

    Map<ProjectVersionKey, TObjectIntHashMap<String>> resolvedByUserByVersion = new HashMap<ProjectVersionKey, TObjectIntHashMap<String>>();

    List<Issue> matchingIssues = searchIssuesMatchingQuery();
    for (Issue issue : matchingIssues)
    {
      Project project = issue.getProjectObject();
      User reporterUser = issue.getReporterUser();
      if (reporterUser == null)
      {
        continue;
      }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.project.Project

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.