congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProjectService.getAllProjectsForAction
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllProjectsForAction
method
in
com.atlassian.jira.bc.project.ProjectService

Best Java code snippets using com.atlassian.jira.bc.project.ProjectService.getAllProjectsForAction (Showing top 5 results out of 315)

origin: com.atlassian.jira/jira-core

private List<Project> getProjectsForUser(final ApplicationUser user)
{
  final ServiceOutcome<List<Project>> allProjectsForAction = projectService.getAllProjectsForAction(user, ProjectAction.EDIT_PROJECT_CONFIG);
  if(allProjectsForAction.isValid())
  {
    return allProjectsForAction.getReturnedValue();
  }
  else
  {
    return Collections.emptyList();
  }
}
origin: com.atlassian.jira/jira-rest-plugin

private Either<Response, List<Project>> getAllProjects()
{
  return responses.validateOutcome(projectService.getAllProjectsForAction(authContext.getUser(), ProjectAction.VIEW_PROJECT));
}
origin: com.atlassian.jira/jira-core

  private List<Project> getEditableProjects()
  {
    ServiceOutcome<List<Project>> allProjectsForAction = projectService.getAllProjectsForAction(authContext.getUser(), ProjectAction.EDIT_PROJECT_CONFIG);
    if (allProjectsForAction.isValid())
    {
      return allProjectsForAction.getReturnedValue();
    }
    else
    {
      return Collections.emptyList();
    }
  }
}
origin: com.atlassian.jira/jira-core

private List<Project> getAllProjects()
{
  ServiceOutcome<List<Project>> projectsForAction = projectService.getAllProjectsForAction(authenticationContext.getUser(), ProjectAction.EDIT_PROJECT_CONFIG);
  if (projectsForAction.isValid())
  {
    //Projects are already sorted apparently. So as long as we keep this order in our returned lists and maps
    //everything should remain sorted.
    return projectsForAction.getReturnedValue();
  }
  else
  {
    return Collections.emptyList();
  }
}
origin: com.atlassian.jira/jira-core

  private List<Project> getAllProjects()
  {
    ServiceOutcome<List<Project>> projectsForAction = projectService
        .getAllProjectsForAction(authenticationContext.getUser(), ProjectAction.EDIT_PROJECT_CONFIG);

    if (projectsForAction.isValid())
    {
      return projectsForAction.getReturnedValue();
    }
    else
    {
      return Collections.emptyList();
    }
  }
}
com.atlassian.jira.bc.projectProjectServicegetAllProjectsForAction

Javadoc

Used to retrieve a list of com.atlassian.jira.project.Project objects. This method returns a com.atlassian.jira.bc.ServiceOutcome containing a list of projects that the user can perform the passed action on. The list will be empty if no projects match the passed action.

Popular methods of ProjectService

  • getProjectByKey
    Used to retrieve a com.atlassian.jira.project.Project object by key. This method returns a com.atlas
  • deleteProject
    Deletes the project provided by the deleteProjectValidationResult. There's a number of steps involve
  • getProjectById
    Used to retrieve a com.atlassian.jira.project.Project object by id. This method returns a com.atlass
  • getProjectByKeyForAction
    Used to retrieve a com.atlassian.jira.project.Project object by key providing the user can perform t
  • updateProject
    Using the validation result from #validateUpdateProject(User,String,String,String,String,String,Long
  • validateDeleteProject
    Validation to delete a project is quite straightforward. The user must have global admin rights and
  • validateUpdateProject
    Validates updating a project's details. The project is looked up by the key provided. If no project
  • createProject
    Using the validation result from #validateCreateProject(ApplicationUser,ProjectCreationData) a new p
  • getProjectByIdForAction
    Used to retrieve a com.atlassian.jira.project.Project object by id providing the user can perform th
  • updateProjectSchemes
    Updates the project schemes for a particular project, given a validation result and project to updat
  • validateCreateProject
    This method needs to be called before creating a project to ensure all parameters are correct. There
  • validateUpdateProjectSchemes
    If the scheme ids are not null or -1 (-1 is often used to reset schemes), then an attempt will be ma
  • validateCreateProject,
  • validateUpdateProjectSchemes,
  • getAllProjects,
  • getMaximumKeyLength,
  • getMaximumNameLength,
  • isValidProjectKey,
  • updateProjectType

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now