Class TeamRootInfo

java.lang.Object
com.dropbox.core.v2.common.RootInfo
com.dropbox.core.v2.common.TeamRootInfo

public class TeamRootInfo extends RootInfo
Root info when user is member of a team with a separate root namespace ID.
  • Field Details

    • homePath

      @Nonnull protected final String homePath
  • Constructor Details

    • TeamRootInfo

      public TeamRootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId, @Nonnull String homePath)
      Root info when user is member of a team with a separate root namespace ID.
      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 RootInfo.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.
      homePath - The path for user's home directory under the shared team root. Must 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 RootInfo.getHomeNamespaceId().
      Overrides:
      getRootNamespaceId in class RootInfo
      Returns:
      value for this field, never null.
    • getHomeNamespaceId

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

      @Nonnull public String getHomePath()
      The path for user's home directory under the shared team root.
      Returns:
      value for this field, never null.
    • hashCode

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

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

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

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

      The returned String may contain newlines.

      Overrides:
      toStringMultiline in class RootInfo
      Returns:
      Formatted, multiline String representation of this object