com.soebes.subversion.sapm
Class User

java.lang.Object
  extended by com.soebes.subversion.sapm.User
All Implemented Interfaces:
IPrincipal
Direct Known Subclasses:
UserAnonymous, UserAsterik, UserAuthenticated

public class User
extends Object
implements IPrincipal

This class represents a single user which has a name.

Author:
Karl Heinz Marbaise

Field Summary
private  String name
           
 
Constructor Summary
User(String name)
           
 
Method Summary
 boolean contains(String name)
          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.
 String getName()
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name
Constructor Detail

User

public User(String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface IPrincipal

setName

public void setName(String name)
Specified by:
setName in interface IPrincipal

contains

public boolean contains(String name)
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
Parameters:
name - The name we check for.
Returns:
true if the name is the same or contained false otherwise.

toString

public String toString()
Overrides:
toString in class Object


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