Class FeedEntityRepository.PageAssignment

  • Enclosing interface:
    FeedEntityRepository

    public static final class FeedEntityRepository.PageAssignment
    extends java.lang.Object
    A subset of this repository's fields that are sufficient for operations that don't need the entity body.

    Some of the fields in this class correspond to fields in Entity or FeedEntityHeader. See the field documentation for references.

    • Constructor Summary

      Constructors 
      Constructor Description
      PageAssignment​(@NonNull ContentId contentId, @NonNull java.time.Instant lastModified, @NonNull java.util.Optional<@NonNull java.time.Instant> originalLastModified, long contentLength, @NonNull java.util.Optional<@NonNull PageId> pageId)
      Creates a new PageAssignment instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NonNull ContentId contentId()
      The entity's content ID.
      long contentLength()
      The entity's body length.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      @NonNull java.time.Instant lastModified()
      The entity's last-modified timestamp.
      @NonNull java.util.Optional<@NonNull java.time.Instant> originalLastModified()
      The old last-modified timestamp in case the entity is pushed backwards.
      @NonNull java.util.Optional<@NonNull PageId> pageId()
      The ID of the page that the entity is assigned to.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PageAssignment

        public PageAssignment​(@NonNull
                              @NonNull ContentId contentId,
                              @NonNull
                              @NonNull java.time.Instant lastModified,
                              @NonNull
                              @NonNull java.util.Optional<@NonNull java.time.Instant> originalLastModified,
                              long contentLength,
                              @NonNull
                              @NonNull java.util.Optional<@NonNull PageId> pageId)
        Creates a new PageAssignment instance.
        Parameters:
        contentId - The entity's content ID. Corresponds to FeedEntityHeader.contentId().
        lastModified - The entity's last-modified timestamp. Corresponds to FeedEntityHeader.lastModified().
        originalLastModified - The old last-modified timestamp in case the entity is pushed backwards. Does not correspond to a field in Entity. When an entity is initially saved into the repository, this field should be stored empty.
        contentLength - The entity's body length. Corresponds to Body.contentLength().
        pageId - The ID of the page that the entity is assigned to. Does not correspond to a field in Entity. When an entity is initially saved into the repository, this field should be stored empty.
    • Method Detail

      • lastModified

        @NonNull
        public @NonNull java.time.Instant lastModified()
        The entity's last-modified timestamp. Corresponds to FeedEntityHeader.lastModified().
      • originalLastModified

        @NonNull
        public @NonNull java.util.Optional<@NonNull java.time.Instant> originalLastModified()
        The old last-modified timestamp in case the entity is pushed backwards. Does not correspond to a field in Entity. When an entity is initially saved into the repository, this field should be stored empty.
      • contentLength

        public long contentLength()
        The entity's body length. Corresponds to Body.contentLength().
      • pageId

        @NonNull
        public @NonNull java.util.Optional<@NonNull PageId> pageId()
        The ID of the page that the entity is assigned to. Does not correspond to a field in Entity. When an entity is initially saved into the repository, this field should be stored empty.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object