com.soebes.subversion.sapm
Class UserAnonymous

java.lang.Object
  extended by com.soebes.subversion.sapm.User
      extended by com.soebes.subversion.sapm.UserAnonymous
All Implemented Interfaces:
IPrincipal

public class UserAnonymous
extends User

This user is the user who represents anonymous. In our case this means the user does not exist, cause no user has been authenticated. So no user name is available.

Author:
Karl Heinz Marbaise

Constructor Summary
UserAnonymous()
           
 
Method Summary
 boolean contains(String user)
          Will check to see if the given name is contained in the group if the instance represents a Group or if the given name is the same if the instance represents a single User.
 
Methods inherited from class com.soebes.subversion.sapm.User
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAnonymous

public UserAnonymous()
Method Detail

contains

public boolean contains(String user)
Description copied from interface: IPrincipal
Will check to see if the given name is contained in the group if the instance represents a Group or if the given name is the same if the instance represents a single User.

Specified by:
contains in interface IPrincipal
Overrides:
contains in class User
Parameters:
user - The name we check for.
Returns:
true if the name is the same or contained false otherwise.


Copyright © 2010-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.