Class DocumentJournal.JournalReader

    • Method Detail

      • activeVersions

        public <O> List<O> activeVersions()
        Get the versions currently active.
        Type Parameters:
        O - the type to manage
        Returns:
        the active versions
      • inactiveVersions

        public <O> List<O> inactiveVersions()
        Get the inactivated versions. Versions get inactivated when new versions are posted and there versions cross their effective periods.
        Type Parameters:
        O - the type to manage
        Returns:
        the inactive versions
      • effectiveNow

        public <O> Optional<O> effectiveNow()
        The active version effective today. The "current" state of the object.
        Type Parameters:
        O - the type to manage
        Returns:
        the effective version
      • effectiveAfter

        public <O> List<O> effectiveAfter​(ZonedDateTime time)
        The active versions after the given time. If due time is set to now, the query returns all the future versions that will become effective.
        Type Parameters:
        O - the type to manage
        Parameters:
        time - the due time
        Returns:
        the active versions
      • effectiveBetween

        public <O> List<O> effectiveBetween​(EffectivePeriod period)
        Get the active versions effective within the given EffectivePeriod.
        Type Parameters:
        O - the type to manage
        Parameters:
        period - the intervall
        Returns:
        the active versions