public class RootInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RootInfo.Serializer
For internal use only.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
homeNamespaceId |
protected java.lang.String |
rootNamespaceId |
Constructor and Description |
---|
RootInfo(java.lang.String rootNamespaceId,
java.lang.String homeNamespaceId)
Information about current user's root.
|
Modifier and Type | Method and 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.
|
protected final java.lang.String rootNamespaceId
protected final java.lang.String homeNamespaceId
public RootInfo(java.lang.String rootNamespaceId, java.lang.String homeNamespaceId)
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
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getRootNamespaceId()
getHomeNamespaceId()
.null
.public java.lang.String getHomeNamespaceId()
null
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.