Package com.dropbox.core.v2.common
Class UserRootInfo
- java.lang.Object
-
- com.dropbox.core.v2.common.RootInfo
-
- com.dropbox.core.v2.common.UserRootInfo
-
public class UserRootInfo extends RootInfo
Root info when user is not member of a team or the user is a member of a team and the team does not have a separate root namespace.
-
-
Field Summary
-
Fields inherited from class com.dropbox.core.v2.common.RootInfo
homeNamespaceId, rootNamespaceId
-
-
Constructor Summary
Constructors Constructor Description UserRootInfo(java.lang.String rootNamespaceId, java.lang.String homeNamespaceId)
Root info when user is not member of a team or the user is a member of a team and the team does not have a separate root namespace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getHomeNamespaceId()
The namespace ID for user's home namespace.java.lang.String
getRootNamespaceId()
The namespace ID for user's root namespace.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
UserRootInfo
public UserRootInfo(java.lang.String rootNamespaceId, java.lang.String homeNamespaceId)
Root info when user is not member of a team or the user is a member of a team and the team does not have a separate root namespace.- 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 asRootInfo.getHomeNamespaceId()
. 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 asRootInfo.getHomeNamespaceId()
.- Overrides:
getRootNamespaceId
in classRootInfo
- Returns:
- value for this field, never
null
.
-
getHomeNamespaceId
public java.lang.String getHomeNamespaceId()
The namespace ID for user's home namespace.- Overrides:
getHomeNamespaceId
in classRootInfo
- Returns:
- value for this field, never
null
.
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classRootInfo
- Returns:
- Formatted, multiline String representation of this object
-
-