com.google.enterprise.adaptor
Class UserPrincipal

java.lang.Object
  extended by com.google.enterprise.adaptor.Principal
      extended by com.google.enterprise.adaptor.UserPrincipal
All Implemented Interfaces:
Comparable<Principal>

public final class UserPrincipal
extends Principal

Represents user.


Field Summary
 
Fields inherited from class com.google.enterprise.adaptor.Principal
DEFAULT_NAMESPACE
 
Constructor Summary
UserPrincipal(String name)
           
UserPrincipal(String name, String namespace)
           
 
Method Summary
 boolean isGroup()
          Always returns false.
 boolean isUser()
          Always returns true.
 
Methods inherited from class com.google.enterprise.adaptor.Principal
compareTo, equals, getName, getNamespace, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPrincipal

public UserPrincipal(String name,
                     String namespace)

UserPrincipal

public UserPrincipal(String name)
Method Detail

isUser

public boolean isUser()
Always returns true.

Specified by:
isUser in class Principal

isGroup

public boolean isGroup()
Always returns false.

Specified by:
isGroup in class Principal