Package com.dropbox.core.v2.common
Class UserRootInfo
java.lang.Object
com.dropbox.core.v2.common.RootInfo
com.dropbox.core.v2.common.UserRootInfo
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
FieldsFields inherited from class com.dropbox.core.v2.common.RootInfo
homeNamespaceId, rootNamespaceId -
Constructor Summary
ConstructorsConstructorDescriptionUserRootInfo(String rootNamespaceId, 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.UserRootInfo(String rootNamespaceId, String homeNamespaceId, String homePath) 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
Modifier and TypeMethodDescriptionbooleanThe namespace ID for user's home namespace.The path for user's home directory under the distinct user root.The namespace ID for user's root namespace.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
homePath
-
-
Constructor Details
-
UserRootInfo
public UserRootInfo(@Nonnull String rootNamespaceId, @Nonnull String homeNamespaceId, @Nullable String homePath) 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, or the user root if user is member of a team with separate distinct roots for users. Otherwise it will be the 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.homePath- The path for user's home directory under the distinct user root.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
UserRootInfo
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.The default values for unset fields will be used.
- 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 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
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 asRootInfo.getHomeNamespaceId().- Overrides:
getRootNamespaceIdin classRootInfo- Returns:
- value for this field, never
null.
-
getHomeNamespaceId
The namespace ID for user's home namespace.- Overrides:
getHomeNamespaceIdin classRootInfo- Returns:
- value for this field, never
null.
-
getHomePath
The path for user's home directory under the distinct user root.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classRootInfo- Returns:
- Formatted, multiline String representation of this object
-