Package com.dropbox.core.v2.common
Class RootInfo
- java.lang.Object
-
- com.dropbox.core.v2.common.RootInfo
-
- Direct Known Subclasses:
TeamRootInfo,UserRootInfo
public class RootInfo extends java.lang.ObjectInformation about current user's root.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRootInfo.SerializerFor internal use only.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringhomeNamespaceIdprotected java.lang.StringrootNamespaceId
-
Constructor Summary
Constructors Constructor Description RootInfo(java.lang.String rootNamespaceId, java.lang.String homeNamespaceId)Information about current user's root.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetHomeNamespaceId()The namespace ID for user's home namespace.java.lang.StringgetRootNamespaceId()The namespace ID for user's root namespace.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
RootInfo
public RootInfo(java.lang.String rootNamespaceId, java.lang.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. Otherwise it will be same asgetHomeNamespaceId(). Must match pattern "[-_0-9a-zA-Z:]+" and not benull.homeNamespaceId- The namespace ID for user's home namespace. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getRootNamespaceId
public java.lang.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. Otherwise it will be same asgetHomeNamespaceId().- Returns:
- value for this field, never
null.
-
getHomeNamespaceId
public java.lang.String getHomeNamespaceId()
The namespace ID for user's home namespace.- Returns:
- value for this field, never
null.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public java.lang.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
-
-