Tabnine Logo
EntityIdentifier.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
com.atlassian.streams.spi.EntityIdentifier

Best Java code snippets using com.atlassian.streams.spi.EntityIdentifier.getValue (Showing top 9 results out of 315)

origin: com.atlassian.streams/streams-testing

@Override
protected boolean matchesSafely(EntityIdentifier identifier, Description mismatchDescription)
{
  if (!matcher.matches(identifier.getValue()))
  {
    mismatchDescription.appendText("value ");
    matcher.describeMismatch(identifier.getValue(), mismatchDescription);
    return false;
  }
  return true;
}
origin: com.atlassian.streams/streams-fisheye-plugin

@Override
public Option<URI> getEntityURI(EntityIdentifier identifier)
{
  if (identifier.getType().equals(repository().iri()))
  {
    return some(URI.create(applicationProperties.getBaseUrl() + PROJECT_URL_PREFIX + identifier.getValue()));
  }
  return none();
}
origin: com.atlassian.streams/streams-crucible-plugin

@Override
public Option<URI> getEntityURI(EntityIdentifier identifier)
{
  if (identifier.getType().equals(project().iri()))
  {
    return some(URI.create(applicationProperties.getBaseUrl() + PROJECT_URL_PREFIX + identifier.getValue()));
  }
  return none();
}

origin: com.atlassian.streams/streams-confluence-plugin

@Override
public Option<URI> getEntityURI(EntityIdentifier identifier)
{
  if (identifier.getType().equals(space().iri()))
  {
    return some(URI.create(applicationProperties.getBaseUrl(UrlMode.CANONICAL) + URL_PREFIX + encode(identifier.getValue())));
  }
  return none();
}
origin: com.atlassian.streams/streams-fisheye-plugin

@Override
public Option<Boolean> getCurrentUserViewPermission(EntityIdentifier identifier)
{
  if (identifier.getType().equals(repository().iri()))
  {
    RepositoryHandle repo = repositoryManager.getRepository(identifier.getValue());
    if (repo != null)
    {
      return some(Boolean.valueOf(permissionAccessor.currentUserCanView(repo)));
    }
  }
  return none();
}

origin: com.atlassian.streams/streams-jira-plugin

@Override
public Option<URI> getEntityURI(EntityIdentifier identifier)
{
  if (identifier.getType().equals(project().iri())
    || identifier.getType().equals(issue().iri()))
  {
    return some(URI.create(applicationProperties.getBaseUrl() + BROWSE + identifier.getValue()));
  }
  return none();
}
origin: com.atlassian.streams/streams-crucible-plugin

@Override
public Option<Boolean> getCurrentUserViewPermission(EntityIdentifier identifier)
{
  if (identifier.getType().equals(project().iri()))
  {
    ProjectData projectData = projectService.getProject(identifier.getValue());
    if (projectData != null)
    {
      return some(Boolean.valueOf(projectService.hasPermission(projectData.getKey(), UserActionManager.ACTION_VIEW)));
    }
  }
  return none();
}
origin: com.atlassian.streams/streams-confluence-plugin

private Option<Boolean> getCurrentUserPermission(EntityIdentifier identifier, String permission)
{
  User user = AuthenticatedUserThreadLocal.get();
  if (identifier.getType().equals(space().iri()))
  {
    Space space = spaceManager.getSpace(identifier.getValue());
    if (space != null)
    {
      return some(spacePermissionManager.hasPermission(permission, space, user));
    }
  }
  return none();
}

origin: com.atlassian.streams/streams-jira-plugin

private Option<Boolean> getCurrentUserPermission(EntityIdentifier identifier, int permission)
{
  ApplicationUser user = authenticationContext.getLoggedInUser();
  if (user != null)
  {
    if (identifier.getType().equals(issue().iri()))
    {
      Issue issue = issueManager.getIssueObject(identifier.getValue());
      if (issue != null)
      {
        return some(permissionManager.hasPermission(permission, issue, user));
      }
    }
    else if (identifier.getType().equals(project().iri()))
    {
      Project project = projectManager.getProjectObjByKeyIgnoreCase(identifier.getValue());
      if (project != null)
      {
        return some(permissionManager.hasPermission(permission, project, user));
      }
    }
  }
  return none();
}
com.atlassian.streams.spiEntityIdentifiergetValue

Javadoc

The canonical unique identifier of this entity within its type. For instance, for a JIRA issue, this would be the issue key; for a JIRA project, it would be the project key.

Popular methods of EntityIdentifier

  • <init>
    Constructs a new immutable EntityIdentifier.
  • getType
    An IRI describing the type of entity that this identifier refers to.
  • getUri
    The canonical URI for the entity.

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Github Copilot alternatives
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