Index

This documentation relates to version 4.0 of the Structure Plugin for JIRA and subsequent patch releases. Documentation for previous versions is available via Documentation Index.

Skip to end of metadata
Go to start of metadata

1. Minor Java API Release

With this release we add a few constants and methods to the Java API. The changes are backwards-compatible.

JIRA Version

New API Version

7.x

16.2.0

See Structure API Versions for full version information and downloads.

2. Compatible Changes in the Java API

2.1. Tempo Account support

We have added two constants and two static methods to support the new Tempo Account grouper and the corresponding built-in item type:

  • CoreStructureGenerators.GROUPER_TEMPO_ACCOUNT

  • CoreItemTypes.TEMPO_ACCOUNT

  • CoreIdentities.tempoAccount(int accountId)

  • CoreIdentities.isTempoAccount(ItemIdentity itemId)

2.2. New versions of RowManager.findRows()

We have added two new findRows() methods to the RowManager interface:

  • void findRows(ItemIdentity itemId, LongPredicate consumer)

  • default void findRows(ItemIdentity itemId, LongConsumer consumer)

These methods guarantee that all row IDs your consumer is given during the findRows() call can be resolved by getRow(long) without throwing a MissingRowException. You can use the first method to stop the scan early.

The original method LongIterator findRows(ItemIdentity itemId) has been converted to a default method. Please note that this method will scan all rows before returning and that the row IDs produced by the resulting LongIterator may get deleted after the findRows() call returns.

  • No labels