Package | Description |
---|---|
com.almworks.jira.structure.api.attribute |
This package provides API for using attributes, a concept added by Structure platform for universal access
to item data.
|
com.almworks.jira.structure.api.attribute.loader | |
com.almworks.jira.structure.api.attribute.loader.distinct | |
com.almworks.jira.structure.api.backup | |
com.almworks.jira.structure.api.error | |
com.almworks.jira.structure.api.forest.action | |
com.almworks.jira.structure.api.forest.item | |
com.almworks.jira.structure.api.generator | |
com.almworks.jira.structure.api.generator.util | |
com.almworks.jira.structure.api.item | |
com.almworks.jira.structure.api.item.generic | |
com.almworks.jira.structure.api.row |
This package's primary citizen is
RowManager , a component
responsible for rows. |
com.almworks.jira.structure.api.structure.history | |
com.almworks.jira.structure.api.sync.util | |
com.almworks.jira.structure.api.util |
Modifier and Type | Method and Description |
---|---|
ItemIdentity |
TrailItemSet.OneItem.getItem() |
Modifier and Type | Method and Description |
---|---|
Set<ItemIdentity> |
TrailItemSet.SpecificItems.getItems() |
Set<ItemIdentity> |
TrailItemSet.Collector.getItems() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
TrailItemSet.contains(ItemIdentity id)
Checks if the set contains the given item.
|
boolean |
TrailItemSet.None.contains(ItemIdentity id) |
boolean |
TrailItemSet.OneItem.contains(ItemIdentity id) |
boolean |
TrailItemSet.SpecificItems.contains(ItemIdentity id) |
boolean |
TrailItemSet.OneType.contains(ItemIdentity id) |
boolean |
TrailItemSet.SpecificTypes.contains(ItemIdentity id) |
boolean |
TrailItemSet.AllItems.contains(ItemIdentity id) |
abstract TrailItemSet |
TrailItemSet.expand(ItemIdentity trailItem)
Expands the set to include the given item.
|
TrailItemSet |
TrailItemSet.None.expand(ItemIdentity trailItem) |
TrailItemSet |
TrailItemSet.OneItem.expand(ItemIdentity trailItem) |
TrailItemSet |
TrailItemSet.SpecificItems.expand(ItemIdentity trailItem) |
TrailItemSet |
TrailItemSet.OneType.expand(ItemIdentity trailItem) |
TrailItemSet |
TrailItemSet.SpecificTypes.expand(ItemIdentity trailItem) |
TrailItemSet |
TrailItemSet.AllItems.expand(ItemIdentity trailItem) |
static TrailItemSet |
TrailItemSet.of(ItemIdentity... ids)
Constructs a set for specific item IDs.
|
void |
TrailItemSet.ReadVisitor.visitItem(ItemIdentity item) |
void |
TrailItemSet.Collector.visitItem(ItemIdentity item) |
Constructor and Description |
---|
OneItem(ItemIdentity item) |
Constructor and Description |
---|
SpecificItems(Collection<ItemIdentity> items) |
SpecificItems(java.util.stream.Stream<ItemIdentity> stream) |
Modifier and Type | Method and Description |
---|---|
protected ItemIdentity |
DerivedAttributeLoader.getItemTrail(D value) |
Modifier and Type | Method and Description |
---|---|
AttributeValue<T> |
AttributeValue.withTrail(ItemIdentity trailItem) |
Modifier and Type | Field and Description |
---|---|
static ValueFormat<Map<ItemIdentity,Integer>> |
DistinctAttributes.MAP_ITEM_COUNT_FORMAT |
static AttributeSpec<Map<ItemIdentity,Integer>> |
DistinctAttributes.NON_UNIQUE_ITEMS_SPEC
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Map<ItemIdentity,Integer> |
AbstractDistinctSumLoader.getChildrenCounts(AttributeLoader.Context context) |
protected Map<ItemIdentity,E> |
AbstractDistinctSumLoader.getChildrenValues(AttributeLoader.Context context) |
static <T> ValueFormat<Map<ItemIdentity,T>> |
DistinctAttributes.nonUniqueValuesValueFormat() |
Modifier and Type | Method and Description |
---|---|
Map<ItemIdentity,String> |
ErrorsContainer.getInvalidItemMessages() |
Modifier and Type | Method and Description |
---|---|
ItemIdentity |
StructureException.getItem()
Returns related item, or null if no item is related.
|
Modifier and Type | Method and Description |
---|---|
StructureException.Builder |
StructureException.Builder.forItem(ItemIdentity item) |
default StructureException.Builder |
StructureError.forItem(ItemIdentity item)
A shortcut to calling the same method on
StructureException builder. |
Constructor and Description |
---|
StructureException(StructureError error,
Throwable cause,
Long structure,
Long view,
Long row,
ItemIdentity item,
String message,
String messageKey,
Object... messageParameters)
Constructs an instance of this exception.
|
Constructor and Description |
---|
Add(ItemIdentity itemId,
long under,
long after,
long before) |
Add(ItemIdentity itemId,
long semantics,
long under,
long after,
long before) |
Modifier and Type | Method and Description |
---|---|
ItemIdentity |
ItemForestBuffer.getItemId(int idx) |
Modifier and Type | Method and Description |
---|---|
long |
ItemForestBuffer.add(ItemIdentity item) |
long |
ItemForestBuffer.add(ItemIdentity item,
int depth) |
B |
ItemListBuilder.nextRow(ItemIdentity itemId) |
ItemForestBuilderImpl |
ItemForestBuilderImpl.nextRow(ItemIdentity itemId) |
B |
ItemListBuilder.nextRow(ItemIdentity itemId,
long semantics) |
ItemForestBuilderImpl |
ItemForestBuilderImpl.nextRow(ItemIdentity itemId,
long semantics) |
Modifier and Type | Method and Description |
---|---|
Set<ItemIdentity> |
StructureGenerator.Grouper.GrouperFunction.getGroups(StructureRow row) |
Modifier and Type | Method and Description |
---|---|
boolean |
StructureGenerator.Grouper.GrouperFunction.isExclusiveGroup(ItemIdentity group) |
<T> T |
StructureGenerator.ItemChangeFilterContext.resolveItem(ItemIdentity itemId,
Class<T> itemClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
ItemChangeFilter.accept(Set<ItemIdentity> itemIds,
StructureGenerator.ItemChangeFilterContext context)
Checks if any of changed items may affect the built forest.
|
void |
StructureGenerator.Grouper.GrouperFunction.createGroupRows(Set<ItemIdentity> groups,
ItemListBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static RecordingItemChangeFilter |
BasicItemChangeFilter.createRecording(ItemIdentity... items) |
void |
RecordingItemChangeFilter.recordItem(ItemIdentity itemId) |
void |
RecordingItemChangeFilter.EmptyFilter.recordItem(ItemIdentity id) |
void |
BasicItemChangeFilter.recordItem(ItemIdentity itemId) |
Modifier and Type | Method and Description |
---|---|
boolean |
RecordingItemChangeFilter.EmptyFilter.accept(Set<ItemIdentity> itemIds,
StructureGenerator.ItemChangeFilterContext context) |
boolean |
BasicItemChangeFilter.accept(Set<ItemIdentity> itemIds,
StructureGenerator.ItemChangeFilterContext context) |
static ItemChangeFilter |
BasicItemChangeFilter.forItems(com.almworks.integers.LongSet issues,
Set<ItemIdentity> nonIssues) |
Constructor and Description |
---|
BasicItemChangeFilter(com.almworks.integers.WritableLongSet writableIssues,
Set<ItemIdentity> writableNonIssues) |
Modifier and Type | Class and Description |
---|---|
static class |
ItemIdentity.LongIdentity
Represents long-based ID.
|
static class |
ItemIdentity.StringIdentity
Represents string-based ID.
|
Modifier and Type | Field and Description |
---|---|
static ItemIdentity |
AuxiliaryIdentities.ALL_REMOTE_ISSUE_LINKS |
static ItemIdentity |
ItemIdentity.ITEM_ZERO
Represents non-existing item.
|
static ItemIdentity |
CoreIdentities.MISSING_ITEM |
static ItemIdentity |
CoreIdentities.NEW_FOLDER |
static ItemIdentity |
CoreIdentities.NEW_GENERATOR |
static ItemIdentity |
CoreIdentities.NEW_ISSUE |
Modifier and Type | Method and Description |
---|---|
static ItemIdentity |
CoreIdentities.component(long id) |
static ItemIdentity |
CoreIdentities.component(com.atlassian.jira.bc.project.component.ProjectComponent component) |
ItemIdentity |
CreatableItemType.createItem(Map<String,Object> values,
com.atlassian.jira.util.ErrorCollection errors) |
static ItemIdentity |
CoreIdentities.folder(long folderId) |
static ItemIdentity |
CoreIdentities.generator(long id) |
ItemIdentity |
StructureOwnedItemType.getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame)
Associate an item with a structure, or create a copy of the given item and associate the copy with the structure.
|
static ItemIdentity |
CoreIdentities.group(com.atlassian.crowd.embedded.api.Group group) |
static ItemIdentity |
CoreIdentities.group(String groupId) |
static ItemIdentity |
CoreIdentities.i18nFolder(String i18nKey) |
static ItemIdentity |
CoreIdentities.issue(com.atlassian.jira.issue.Issue issue) |
static ItemIdentity |
CoreIdentities.issue(long issueId) |
static ItemIdentity |
CoreIdentities.issueType(com.atlassian.jira.issue.issuetype.IssueType value) |
static ItemIdentity |
CoreIdentities.label(com.atlassian.jira.issue.label.Label value) |
static ItemIdentity |
ItemIdentity.longId(String itemType,
long longId)
Creates a new long-based ID.
|
static ItemIdentity |
CoreIdentities.loopMarker(long rowId) |
static ItemIdentity |
CoreIdentities.option(long optionId) |
static ItemIdentity |
CoreIdentities.option(com.atlassian.jira.issue.customfields.option.Option option) |
static ItemIdentity |
ItemIdentity.parse(String id)
Parses canonical string representation of the item ID, which can be retrieved with
toString() method. |
static ItemIdentity |
CoreIdentities.priority(com.atlassian.jira.issue.priority.Priority value) |
static ItemIdentity |
CoreIdentities.project(long projectId) |
static ItemIdentity |
CoreIdentities.project(com.atlassian.jira.project.Project value) |
static ItemIdentity |
CoreIdentities.resolution(com.atlassian.jira.issue.resolution.Resolution value) |
static ItemIdentity |
CoreIdentities.sdRequestType(int requestTypeId) |
static ItemIdentity |
CoreIdentities.sprint(long sprintId) |
static ItemIdentity |
CoreIdentities.status(com.atlassian.jira.issue.status.Status value) |
static ItemIdentity |
ItemIdentity.stringId(String itemType,
String stringId)
Creates a new string-based ID.
|
static ItemIdentity |
CoreIdentities.structure(long structureId) |
static ItemIdentity |
CoreIdentities.tempoAccount(int accountId) |
static ItemIdentity |
CoreIdentities.textFolder(String text) |
static ItemIdentity |
CoreIdentities.user(com.atlassian.jira.user.ApplicationUser user) |
static ItemIdentity |
CoreIdentities.user(String userKey) |
static ItemIdentity |
CoreIdentities.version(long id) |
static ItemIdentity |
CoreIdentities.version(com.atlassian.jira.project.version.Version version) |
Modifier and Type | Method and Description |
---|---|
abstract Set<ItemIdentity> |
ItemVersionUpdate.getAffectedItems() |
Set<ItemIdentity> |
ItemVersionUpdate.Empty.getAffectedItems() |
Set<ItemIdentity> |
ItemVersionUpdate.Total.getAffectedItems() |
Iterator<ItemIdentity> |
ItemIdentitySet.iterator() |
Modifier and Type | Method and Description |
---|---|
T |
StructureItemType.accessItem(ItemIdentity itemId)
Does not check for permissions.
|
boolean |
ItemIdentitySet.add(ItemIdentity id) |
ItemIdentity |
StructureOwnedItemType.getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame)
Associate an item with a structure, or create a copy of the given item and associate the copy with the structure.
|
static boolean |
CoreIdentities.isComponent(ItemIdentity itemId) |
static boolean |
CoreIdentities.isGenerator(ItemIdentity itemId) |
static boolean |
CoreIdentities.isIssue(ItemIdentity itemId) |
static boolean |
CoreIdentities.isLoopMarker(ItemIdentity itemId) |
static boolean |
CoreIdentities.isProject(ItemIdentity itemId) |
static boolean |
CoreIdentities.isStructure(ItemIdentity itemId) |
static boolean |
CoreIdentities.isTempoAccount(ItemIdentity itemId) |
static boolean |
CoreIdentities.isVersion(ItemIdentity itemId) |
void |
ItemTracker.recordChange(ItemIdentity id)
Convenience method for calling
ItemTracker.recordChanges(java.lang.Iterable<com.almworks.jira.structure.api.item.ItemIdentity>) for a single item. |
<T> T |
ItemResolver.resolveItem(ItemIdentity itemId,
Class<T> itemClass) |
Object |
ItemResolver.resolveUnchecked(ItemIdentity itemId) |
void |
UpdatableItemType.updateItem(ItemIdentity itemId,
Map<String,Object> values,
com.atlassian.jira.util.ErrorCollection errors) |
Modifier and Type | Method and Description |
---|---|
boolean |
ItemIdentitySet.addAll(Collection<? extends ItemIdentity> c) |
void |
ItemTracker.recordChanges(Iterable<ItemIdentity> ids)
Records changes of the specified items.
|
Constructor and Description |
---|
ItemIdentitySet(ItemIdentity... ids) |
Constructor and Description |
---|
ItemIdentitySet(Collection<? extends ItemIdentity> ids) |
Modifier and Type | Method and Description |
---|---|
ItemIdentity |
GenericItemType.createItem(Map<String,Object> values,
com.atlassian.jira.util.ErrorCollection errors) |
ItemIdentity |
GenericItemManager.createItem(String itemType,
GenericItem genericItem) |
ItemIdentity |
GenericItemService.GenericItemResult.getItemId() |
ItemIdentity |
GenericItemService.UpdateValidationResult.getItemId() |
ItemIdentity |
GenericItemService.DeleteValidationResult.getItemId() |
ItemIdentity |
GenericItemType.getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame) |
ItemIdentity |
GenericItemManager.getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame) |
Modifier and Type | Method and Description |
---|---|
GenericItem |
GenericItemType.accessItem(ItemIdentity itemId) |
void |
GenericItemManager.deleteItem(ItemIdentity itemId) |
GenericItemService.GenericItemResult |
GenericItemService.getItem(ItemIdentity itemId) |
GenericItem |
GenericItemManager.getItem(ItemIdentity itemId) |
ItemIdentity |
GenericItemType.getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame) |
ItemIdentity |
GenericItemManager.getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame) |
void |
GenericItemManager.updateItem(ItemIdentity itemId,
GenericItem genericItem) |
void |
GenericItemType.updateItem(ItemIdentity itemId,
Map<String,Object> values,
com.atlassian.jira.util.ErrorCollection errors) |
GenericItemService.DeleteValidationResult |
GenericItemService.validateDelete(ItemIdentity itemId) |
GenericItemService.UpdateValidationResult |
GenericItemService.validateUpdate(ItemIdentity itemId,
GenericItem genericItem) |
Constructor and Description |
---|
DeleteValidationResult(com.atlassian.jira.util.ErrorCollection errors,
StructureException exception,
ItemIdentity itemId) |
GenericItemResult(com.atlassian.jira.util.ErrorCollection errors,
StructureException exception,
ItemIdentity itemId,
GenericItem genericItem) |
UpdateValidationResult(com.atlassian.jira.util.ErrorCollection errors,
StructureException exception,
ItemIdentity itemId,
GenericItem genericItem) |
Modifier and Type | Method and Description |
---|---|
ItemIdentity |
StructureRow.getItemId()
Returns item ID for the item shown in this row.
|
ItemIdentity |
StructureRow.ZeroRow.getItemId() |
ItemIdentity |
SimpleRow.getItemId() |
ItemIdentity |
DummyRow.getItemId() |
Modifier and Type | Method and Description |
---|---|
long |
RowManager.createRow(ItemIdentity itemId,
long semantics)
Creates a new persistent row for the given item ID and semantics.
|
default com.almworks.integers.LongIterator |
RowManager.findRows(ItemIdentity itemId)
Returns all rows created for the specified item.
|
default void |
RowManager.findRows(ItemIdentity itemId,
java.util.function.LongConsumer consumer)
Iterates through all rows created for the specified item.
|
void |
RowManager.findRows(ItemIdentity itemId,
java.util.function.LongPredicate consumer)
Iterates through all rows created for the specified item.
|
Constructor and Description |
---|
DummyRow(long rowId,
ItemIdentity itemId,
long semantics,
Object item) |
SimpleRow(long rowId,
ItemIdentity itemId,
long semantics,
ItemResolver resolver) |
Modifier and Type | Field and Description |
---|---|
Set<ItemIdentity> |
HistoryQuery.isAncestors |
Set<ItemIdentity> |
HistoryQuery.notAncestors |
Constructor and Description |
---|
HistoryQuery(Iterable<HistoryEntry.Operation> operations,
com.almworks.integers.LongList isIssuesSorted,
com.almworks.integers.LongList notIssuesSorted,
com.almworks.integers.LongList isStructuresSorted,
com.almworks.integers.LongList notStructuresSorted,
Iterable<String> isAuthors,
Iterable<String> notAuthors,
com.almworks.integers.LongList isProjectsSorted,
com.almworks.integers.LongList notProjectsSorted,
com.almworks.integers.LongList isSynchronizersSorted,
com.almworks.integers.LongList notSynchronizersSorted,
Set<ItemIdentity> isAncestors,
Set<ItemIdentity> notAncestors,
Date minDate,
Date maxDate,
Long startId) |
HistoryQuery(Iterable<HistoryEntry.Operation> operations,
com.almworks.integers.LongList isIssuesSorted,
com.almworks.integers.LongList notIssuesSorted,
com.almworks.integers.LongList isStructuresSorted,
com.almworks.integers.LongList notStructuresSorted,
Iterable<String> isAuthors,
Iterable<String> notAuthors,
com.almworks.integers.LongList isProjectsSorted,
com.almworks.integers.LongList notProjectsSorted,
com.almworks.integers.LongList isSynchronizersSorted,
com.almworks.integers.LongList notSynchronizersSorted,
Set<ItemIdentity> isAncestors,
Set<ItemIdentity> notAncestors,
Date minDate,
Date maxDate,
Long startId) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
SyncLogger.appendItem(ItemIdentity itemId,
StringBuilder sb) |
Modifier and Type | Method and Description |
---|---|
static String |
StructureUtil.getItemDescription(ItemIdentity itemId) |
static ItemDisplayable |
StructureUtil.getItemDisplayable(ItemIdentity itemId,
StructureAttributeService attributeService) |
Copyright © 2018 ALM Works. All Rights Reserved.