com.soebes.subversion.sapm
Class Alias

java.lang.Object
  extended by 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

Field Summary
private  String definition
           
private  String name
           
 
Constructor Summary
Alias()
           
Alias(String name, String definition)
           
 
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 getDefinition()
           
 String getName()
           
 void setDefinition(String definition)
           
 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

definition

private String definition
Constructor Detail

Alias

public Alias()

Alias

public Alias(String name,
             String definition)
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.

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.