Class RootInfo

java.lang.Object
com.dropbox.core.v2.common.RootInfo
Direct Known Subclasses:
TeamRootInfo, UserRootInfo

public class RootInfo extends Object
Information about current user's root.
  • Field Details

    • rootNamespaceId

      @Nonnull protected final String rootNamespaceId
    • homeNamespaceId

      @Nonnull protected final String homeNamespaceId
  • Constructor Details

    • RootInfo

      public RootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId)
      Information about current user's root.
      Parameters:
      rootNamespaceId - The namespace ID for user's root namespace. It will be the namespace ID of the shared team root if the user is member of a team with a separate team root, or the user root if user is member of a team with separate distinct roots for users. Otherwise it will be the same as getHomeNamespaceId(). Must match pattern "[-_0-9a-zA-Z:]+" and not be null.
      homeNamespaceId - The namespace ID for user's home namespace. Must match pattern "[-_0-9a-zA-Z:]+" and not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getRootNamespaceId

      @Nonnull public String getRootNamespaceId()
      The namespace ID for user's root namespace. It will be the namespace ID of the shared team root if the user is member of a team with a separate team root, or the user root if user is member of a team with separate distinct roots for users. Otherwise it will be the same as getHomeNamespaceId().
      Returns:
      value for this field, never null.
    • getHomeNamespaceId

      @Nonnull public String getHomeNamespaceId()
      The namespace ID for user's home namespace.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object