All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almworks.jira.structure.api.item.AuxiliaryIdentities Maven / Gradle / Ivy

The newest version!
package com.almworks.jira.structure.api.item;

import com.atlassian.annotations.Internal;
import org.jetbrains.annotations.NotNull;

@Internal
public class AuxiliaryIdentities {
  // See RemoteIssueLinkEventBridge - ugly work around https://jira.atlassian.com/browse/JRA-45989
  // String ID: application type or '*'
  public static final String REMOTE_ISSUE_LINK_TYPE = "com.almworks.jira.structure:type-remote-issue-link";
  public static final String TEMPO_WORK_ATTRIBUTE = "com.almworks.jira.stucture:type-tempo-work-attribute";
  public static final String TEMPO_TEAM_PERMISSIONS = "com.almworks.jira.stucture:type-tempo-team-permissions";
  public static final String GLOBAL_PERMISSION_TYPE = "com.almworks.jira.structure:type-global-permission";
  public static final String PROJECT_PERMISSION_TYPE = "com.almworks.jira.structure:type-project-permission";
  public static final ItemIdentity ALL_REMOTE_ISSUE_LINKS = ItemIdentity.stringId(REMOTE_ISSUE_LINK_TYPE, "*");

  @NotNull
  public static ItemIdentity tempoWorkAttribute(@NotNull String workAttributeId) {
    return ItemIdentity.stringId(TEMPO_WORK_ATTRIBUTE, workAttributeId);
  }

  @NotNull
  public static ItemIdentity tempoTeamPermissions(@NotNull String teamId) {
    return ItemIdentity.stringId(TEMPO_TEAM_PERMISSIONS, teamId);
  }

  @NotNull
  public static ItemIdentity globalPermission(@NotNull String key) {
    return ItemIdentity.stringId(GLOBAL_PERMISSION_TYPE, key);
  }

  @NotNull
  public static ItemIdentity projectPermission(@NotNull String key) {
    return ItemIdentity.stringId(PROJECT_PERMISSION_TYPE, key);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy