Record Class ApplicationReadScope

java.lang.Object
java.lang.Record
io.meeds.layout.model.ApplicationReadScope

public record ApplicationReadScope(Map<String,String> contentIds, Map<String, org.exoplatform.portal.config.model.Application> windows, org.exoplatform.portal.mop.page.PageKey pageKey, org.exoplatform.portal.mop.SiteKey siteKey, org.exoplatform.portal.mop.SiteKey liveSiteKey, String pageReference, boolean draft, String username) extends Record
What a layout description needs to describe the applications of a tree: their content ids, the windows by storage id, and where they sit and for whom, to read their settings; without a username no settings are read.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ApplicationReadScope(Map<String,String> contentIds, Map<String, org.exoplatform.portal.config.model.Application> windows, org.exoplatform.portal.mop.page.PageKey pageKey, org.exoplatform.portal.mop.SiteKey siteKey, org.exoplatform.portal.mop.SiteKey liveSiteKey, String pageReference, boolean draft, String username)
    Creates an instance of a ApplicationReadScope record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the contentIds record component.
    boolean
    Returns the value of the draft record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.exoplatform.portal.mop.SiteKey
    Returns the value of the liveSiteKey record component.
    org.exoplatform.portal.mop.page.PageKey
    Returns the value of the pageKey record component.
    Returns the value of the pageReference record component.
    org.exoplatform.portal.mop.SiteKey
    Returns the value of the siteKey record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the username record component.
    Map<String, org.exoplatform.portal.config.model.Application>
    Returns the value of the windows record component.

    Methods inherited from class Object

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

    • ApplicationReadScope

      public ApplicationReadScope(Map<String,String> contentIds, Map<String, org.exoplatform.portal.config.model.Application> windows, org.exoplatform.portal.mop.page.PageKey pageKey, org.exoplatform.portal.mop.SiteKey siteKey, org.exoplatform.portal.mop.SiteKey liveSiteKey, String pageReference, boolean draft, String username)
      Creates an instance of a ApplicationReadScope record class.
      Parameters:
      contentIds - the value for the contentIds record component
      windows - the value for the windows record component
      pageKey - the value for the pageKey record component
      siteKey - the value for the siteKey record component
      liveSiteKey - the value for the liveSiteKey record component
      pageReference - the value for the pageReference record component
      draft - the value for the draft record component
      username - the value for the username record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contentIds

      public Map<String,String> contentIds()
      Returns the value of the contentIds record component.
      Returns:
      the value of the contentIds record component
    • windows

      public Map<String, org.exoplatform.portal.config.model.Application> windows()
      Returns the value of the windows record component.
      Returns:
      the value of the windows record component
    • pageKey

      public org.exoplatform.portal.mop.page.PageKey pageKey()
      Returns the value of the pageKey record component.
      Returns:
      the value of the pageKey record component
    • siteKey

      public org.exoplatform.portal.mop.SiteKey siteKey()
      Returns the value of the siteKey record component.
      Returns:
      the value of the siteKey record component
    • liveSiteKey

      public org.exoplatform.portal.mop.SiteKey liveSiteKey()
      Returns the value of the liveSiteKey record component.
      Returns:
      the value of the liveSiteKey record component
    • pageReference

      public String pageReference()
      Returns the value of the pageReference record component.
      Returns:
      the value of the pageReference record component
    • draft

      public boolean draft()
      Returns the value of the draft record component.
      Returns:
      the value of the draft record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component