com.soebes.subversion.sapm
Class UserAuthenticated

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

public class UserAuthenticated
extends User

This user is the user who represents an authenticated user. In our case this means the user exists and has a name. It means only to have name not a special name.

Author:
Karl Heinz Marbaise

Constructor Summary
UserAuthenticated()
           
 
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

UserAuthenticated

public UserAuthenticated()
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.