@PublicApi public class CoreIdentities extends Object
This class contains utility methods for checking and creating ItemIdentity
.
Typical use cases:
ItemIdentity itemId = CoreIdentities.issue(10000); ... if (CoreIdentities.isIssue(itemId)) { long issueId = itemId.getLongId(); }
Modifier and Type | Field and Description |
---|---|
static String |
ANONYMOUS_USER_ID |
static ItemIdentity |
MISSING_ITEM |
static ItemIdentity |
NEW_EFFECTOR |
static ItemIdentity |
NEW_FOLDER |
static ItemIdentity |
NEW_GENERATOR |
static ItemIdentity |
NEW_ISSUE |
Modifier and Type | Method and Description |
---|---|
static ItemIdentity |
artificialTask(long artificialTaskId)
Deprecated.
Use
planningTask(long) instead. |
static ItemIdentity |
attachment(Attachment attachment) |
static ItemIdentity |
attachment(long id) |
static String |
canonicalVersionName(String versionName) |
static ItemIdentity |
changeHistoryGroup(ChangeHistory changeHistory) |
static ItemIdentity |
changeHistoryGroup(long id) |
static ItemIdentity |
changeHistoryItem(long id) |
static ItemIdentity |
comment(Comment comment) |
static ItemIdentity |
comment(long id) |
static ItemIdentity |
component(long id) |
static ItemIdentity |
component(ProjectComponent component) |
static ItemIdentity |
effector(long id) |
static ItemIdentity |
folder(long folderId) |
static ItemIdentity |
generator(long id) |
static ItemIdentity |
group(Group group) |
static ItemIdentity |
group(String groupId) |
static ItemIdentity |
i18nFolder(String i18nKey) |
static ItemIdentity |
insightObject(long objectId) |
static boolean |
isArtificialTask(ItemIdentity itemId)
Deprecated.
Use
isPlanningTask(ItemIdentity) instead. |
static boolean |
isAttachment(ItemIdentity itemId) |
static boolean |
isAutomation(ItemIdentity itemId) |
static boolean |
isChangeHistoryGroup(ItemIdentity itemId) |
static boolean |
isChangeHistoryItem(ItemIdentity itemId) |
static boolean |
isComment(ItemIdentity itemId) |
static boolean |
isComponent(ItemIdentity itemId) |
static boolean |
isEffector(ItemIdentity itemId) |
static boolean |
isFolder(ItemIdentity itemId) |
static boolean |
isGenerator(ItemIdentity itemId) |
static boolean |
isGroup(ItemIdentity itemId) |
static boolean |
isIssue(ItemIdentity itemId) |
static boolean |
isIssueLink(ItemIdentity itemId) |
static boolean |
isIssueLinkType(ItemIdentity itemId) |
static boolean |
isIssueType(ItemIdentity itemId) |
static boolean |
isLabel(ItemIdentity itemId) |
static boolean |
isLoopMarker(ItemIdentity itemId) |
static boolean |
isMemo(ItemIdentity itemId) |
static boolean |
isMemoChangeHistoryGroup(ItemIdentity itemId) |
static boolean |
isOption(ItemIdentity itemId) |
static boolean |
isPlanningTask(ItemIdentity itemId) |
static boolean |
isPriority(ItemIdentity itemId) |
static boolean |
isProject(ItemIdentity itemId) |
static boolean |
isResolution(ItemIdentity itemId) |
static boolean |
isSprint(ItemIdentity itemId) |
static boolean |
isStatus(ItemIdentity itemId) |
static boolean |
isStructure(ItemIdentity itemId) |
static ItemIdentity |
issue(Issue issue) |
static ItemIdentity |
issue(long issueId) |
static ItemIdentity |
issueLink(IssueLink issueLink) |
static ItemIdentity |
issueLink(long id) |
static ItemIdentity |
issueLinkType(IssueLinkType issueLinkType) |
static ItemIdentity |
issueLinkType(long id) |
static ItemIdentity |
issueType(IssueType value) |
static ItemIdentity |
issueType(String id) |
static boolean |
isTempoAccount(ItemIdentity itemId) |
static boolean |
isUser(ItemIdentity itemId) |
static boolean |
isVersion(ItemIdentity itemId) |
static boolean |
isVersionName(ItemIdentity itemId) |
static boolean |
isWorklog(ItemIdentity itemId) |
static ItemIdentity |
label(Label value) |
static ItemIdentity |
label(String label) |
static ItemIdentity |
loopMarker(long rowId) |
static ItemIdentity |
memo(long memoId) |
static ItemIdentity |
memoChangeHistoryGroup(long id) |
static ItemIdentity |
option(long optionId) |
static ItemIdentity |
option(Option option) |
static ItemIdentity |
planningTask(long planningTaskId) |
static ItemIdentity |
priority(Priority value) |
static ItemIdentity |
priority(String id) |
static ItemIdentity |
project(long projectId) |
static ItemIdentity |
project(Project value) |
static ItemIdentity |
projectCategory(long projectCategoryId) |
static ItemIdentity |
projectCategory(ProjectCategory projectCategory) |
static ItemIdentity |
resolution(Resolution value) |
static ItemIdentity |
resolution(String id) |
static ItemIdentity |
sdRequestType(int requestTypeId) |
static ItemIdentity |
sprint(long sprintId) |
static ItemIdentity |
status(Status value) |
static ItemIdentity |
status(String id) |
static ItemIdentity |
structure(long structureId) |
static ItemIdentity |
tempoAccount(int accountId) |
static ItemIdentity |
textFolder(String text) |
static ItemIdentity |
user(ApplicationUser user) |
static ItemIdentity |
user(String userKey) |
static ItemIdentity |
version(long id) |
static ItemIdentity |
version(Version version) |
static ItemIdentity |
versionName(String name) |
static ItemIdentity |
versionName(Version version) |
static ItemIdentity |
worklog(long id) |
static ItemIdentity |
worklog(Worklog worklog) |
public static final String ANONYMOUS_USER_ID
public static final ItemIdentity NEW_ISSUE
public static final ItemIdentity NEW_FOLDER
public static final ItemIdentity NEW_GENERATOR
public static final ItemIdentity NEW_EFFECTOR
public static final ItemIdentity MISSING_ITEM
public static ItemIdentity user(@Nullable ApplicationUser user)
public static ItemIdentity user(@Nullable String userKey)
public static ItemIdentity group(@NotNull String groupId)
public static ItemIdentity group(@NotNull Group group)
public static ItemIdentity project(Project value)
public static ItemIdentity project(long projectId)
public static ItemIdentity priority(String id)
public static ItemIdentity priority(Priority value)
public static ItemIdentity status(String id)
public static ItemIdentity status(Status value)
public static ItemIdentity resolution(String id)
public static ItemIdentity resolution(Resolution value)
public static ItemIdentity label(String label)
public static ItemIdentity label(Label value)
public static ItemIdentity issueType(String id)
public static ItemIdentity issueType(IssueType value)
public static ItemIdentity issue(long issueId)
public static ItemIdentity issue(Issue issue)
public static ItemIdentity version(@NotNull Version version)
public static ItemIdentity version(long id)
public static ItemIdentity versionName(String name)
public static ItemIdentity versionName(@NotNull Version version)
public static ItemIdentity generator(long id)
public static ItemIdentity effector(long id)
public static ItemIdentity loopMarker(long rowId)
public static ItemIdentity component(ProjectComponent component)
public static ItemIdentity component(long id)
public static ItemIdentity option(Option option)
public static ItemIdentity option(long optionId)
public static ItemIdentity structure(long structureId)
public static ItemIdentity sprint(long sprintId)
public static ItemIdentity tempoAccount(int accountId)
public static ItemIdentity i18nFolder(@NotNull String i18nKey)
public static ItemIdentity textFolder(@NotNull String text)
public static ItemIdentity folder(long folderId)
public static ItemIdentity memo(long memoId)
public static ItemIdentity planningTask(long planningTaskId)
@Deprecated public static ItemIdentity artificialTask(long artificialTaskId)
planningTask(long)
instead.public static ItemIdentity sdRequestType(int requestTypeId)
public static ItemIdentity insightObject(long objectId)
public static ItemIdentity projectCategory(long projectCategoryId)
public static ItemIdentity projectCategory(@NotNull ProjectCategory projectCategory)
public static ItemIdentity attachment(long id)
public static ItemIdentity attachment(@NotNull Attachment attachment)
public static ItemIdentity comment(long id)
public static ItemIdentity comment(@NotNull Comment comment)
public static ItemIdentity worklog(long id)
public static ItemIdentity worklog(@NotNull Worklog worklog)
public static ItemIdentity changeHistoryGroup(long id)
public static ItemIdentity changeHistoryGroup(@NotNull ChangeHistory changeHistory)
public static ItemIdentity changeHistoryItem(long id)
public static ItemIdentity memoChangeHistoryGroup(long id)
public static ItemIdentity issueLink(long id)
public static ItemIdentity issueLink(@NotNull IssueLink issueLink)
public static ItemIdentity issueLinkType(long id)
public static ItemIdentity issueLinkType(@NotNull IssueLinkType issueLinkType)
public static boolean isIssue(ItemIdentity itemId)
public static boolean isProject(ItemIdentity itemId)
public static boolean isComponent(ItemIdentity itemId)
public static boolean isVersion(ItemIdentity itemId)
public static boolean isGenerator(ItemIdentity itemId)
public static boolean isEffector(ItemIdentity itemId)
public static boolean isAutomation(ItemIdentity itemId)
public static boolean isStructure(ItemIdentity itemId)
public static boolean isLoopMarker(ItemIdentity itemId)
public static boolean isTempoAccount(ItemIdentity itemId)
public static boolean isVersionName(ItemIdentity itemId)
public static boolean isAttachment(ItemIdentity itemId)
public static boolean isComment(ItemIdentity itemId)
public static boolean isWorklog(ItemIdentity itemId)
public static boolean isChangeHistoryGroup(ItemIdentity itemId)
public static boolean isChangeHistoryItem(ItemIdentity itemId)
public static boolean isMemoChangeHistoryGroup(ItemIdentity itemId)
public static boolean isIssueLink(ItemIdentity itemId)
public static boolean isIssueLinkType(ItemIdentity itemId)
public static boolean isFolder(ItemIdentity itemId)
public static boolean isMemo(ItemIdentity itemId)
@Deprecated public static boolean isArtificialTask(ItemIdentity itemId)
isPlanningTask(ItemIdentity)
instead.public static boolean isPlanningTask(ItemIdentity itemId)
public static boolean isStatus(ItemIdentity itemId)
public static boolean isUser(ItemIdentity itemId)
public static boolean isPriority(ItemIdentity itemId)
public static boolean isResolution(ItemIdentity itemId)
public static boolean isOption(ItemIdentity itemId)
public static boolean isGroup(ItemIdentity itemId)
public static boolean isSprint(ItemIdentity itemId)
public static boolean isLabel(ItemIdentity itemId)
public static boolean isIssueType(ItemIdentity itemId)
Copyright © 2024 Tempo Software. All Rights Reserved.