com.soebes.subversion.sapm
Class User
java.lang.Object
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
name
private String name
User
public User(String name)
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.