com.google.enterprise.adaptor
Class GroupPrincipal

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

public final class GroupPrincipal
extends Principal

Represents group.


Field Summary
 
Fields inherited from class com.google.enterprise.adaptor.Principal
DEFAULT_NAMESPACE
 
Constructor Summary
GroupPrincipal(String name)
           
GroupPrincipal(String name, String namespace)
           
 
Method Summary
 boolean isGroup()
          Always returns true.
 boolean isUser()
          Always returns false.
 
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

GroupPrincipal

public GroupPrincipal(String name,
                      String namespace)

GroupPrincipal

public GroupPrincipal(String name)
Method Detail

isUser

public boolean isUser()
Always returns false.

Specified by:
isUser in class Principal

isGroup

public boolean isGroup()
Always returns true.

Specified by:
isGroup in class Principal