com.soebes.subversion.sapm
Class Alias
java.lang.Object
com.soebes.subversion.sapm.Alias
- All Implemented Interfaces:
- IPrincipal
public class Alias
- extends Object
- implements IPrincipal
This represents an alias.
[aliases]
alias_user = xyz
name = alias_user
definition = xyz
search for name => ?
- Author:
- Karl Heinz Marbaise
name
private String name
definition
private String definition
Alias
public Alias()
Alias
public Alias(String name,
String definition)
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.
setDefinition
public void setDefinition(String definition)
getDefinition
public String getDefinition()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.