public class LdapPersonFoundImpl extends java.lang.Object implements LdapPersonFound
Constructor and Description |
---|
LdapPersonFoundImpl(LdapDirectoryImpl server,
java.lang.String dn,
LdapQuery query)
the constructor for this class
|
Modifier and Type | Method and Description |
---|---|
void |
addHomePhone(java.lang.String telephoneNumber)
Adds a home telephone number to this person
|
void |
addMail(java.lang.String mail)
Adds a mail address to this person
|
void |
addMobilePhone(java.lang.String telephoneNumber)
Adds a mobile telephone number to this person
|
void |
addWorkPhone(java.lang.String telephoneNumber)
Adds a work telephone number to this person
|
int |
compareTo(LdapPersonFound other)
Compare this object with another ones.
|
boolean |
equals(java.lang.Object o)
Test equality between this object and another ones.
|
void |
fetchPhoto()
Tries to fetch the photo in the the directory for this person
|
java.util.Set<java.lang.String> |
getAllPhone()
Returns telephone numbers from this person
|
java.lang.String |
getDepartment()
Returns the department found in the the directory for this person
|
java.lang.String |
getDisplayName()
Returns the name/pseudo found in the the directory for this person
|
java.lang.String |
getDN()
Returns the distinguished name for this person
|
java.lang.String |
getFirstName()
Returns the first name found in the the directory for this person
|
java.util.Set<java.lang.String> |
getHomePhone()
Returns home telephone numbers from this person
|
java.util.Set<java.lang.String> |
getMail()
Returns mail addresss from this person
|
java.util.Set<java.lang.String> |
getMobilePhone()
Returns mobile telephone numbers from this person
|
java.lang.String |
getOrganization()
Returns the organization found in the the directory for this person
|
byte[] |
getPhoto()
Gets the photo found in the directory for this person.
|
LdapQuery |
getQuery()
Returns the query which this Ldap person found is a result of
|
LdapDirectory |
getServer()
Returns the server which this person was found on
|
java.lang.String |
getSurname()
Returns the surname found in the the directory for this person
|
java.util.Set<java.lang.String> |
getWorkPhone()
Returns work telephone numbers from this person
|
int |
hashCode() |
void |
setDepartment(java.lang.String department)
Sets the department found in the the directory for this person
|
void |
setDisplayName(java.lang.String name)
Sets the name/pseudo found in the the directory for this person
|
void |
setFirstName(java.lang.String firstName)
Sets the first name found in the the directory for this person
|
void |
setOrganization(java.lang.String organization)
Sets the organization found in the the directory for this person
|
void |
setPhoto(byte[] photo)
Set the photo found in the directory for this person.
|
void |
setSurname(java.lang.String surname)
Sets the surname found in the the directory for this person
|
java.lang.String |
toString()
A string representation of this LdapPersonFoundImpl
(created for debugging purposes)
|
public LdapPersonFoundImpl(LdapDirectoryImpl server, java.lang.String dn, LdapQuery query)
server
- the server on which this person was founddn
- distinguished name for this person in the directoryquery
- the search querypublic LdapQuery getQuery()
getQuery
in interface LdapPersonFound
public LdapDirectory getServer()
getServer
in interface LdapPersonFound
public void setDisplayName(java.lang.String name)
setDisplayName
in interface LdapPersonFound
name
- the name/pseudo found in the the directory for this personpublic java.lang.String getDisplayName()
getDisplayName
in interface LdapPersonFound
public void fetchPhoto()
fetchPhoto
in interface LdapPersonFound
public void setFirstName(java.lang.String firstName)
setFirstName
in interface LdapPersonFound
firstName
- the name/pseudo found in the the directory for this
personpublic java.lang.String getFirstName()
getFirstName
in interface LdapPersonFound
public void setSurname(java.lang.String surname)
setSurname
in interface LdapPersonFound
surname
- the surname found in the the directory for this personpublic java.lang.String getSurname()
getSurname
in interface LdapPersonFound
public void setOrganization(java.lang.String organization)
setOrganization
in interface LdapPersonFound
organization
- the organization found in the the directory for this
personpublic java.lang.String getOrganization()
getOrganization
in interface LdapPersonFound
public void setDepartment(java.lang.String department)
setDepartment
in interface LdapPersonFound
department
- the department found in the the directory for this
personpublic java.lang.String getDepartment()
getDepartment
in interface LdapPersonFound
public byte[] getPhoto()
getPhoto
in interface LdapPersonFound
public void setPhoto(byte[] photo)
setPhoto
in interface LdapPersonFound
photo
- the photo found in the directory for this person.public void addMail(java.lang.String mail)
addMail
in interface LdapPersonFound
mail
- the mail addresspublic java.util.Set<java.lang.String> getMail()
getMail
in interface LdapPersonFound
public java.util.Set<java.lang.String> getAllPhone()
getAllPhone
in interface LdapPersonFound
public void addWorkPhone(java.lang.String telephoneNumber)
addWorkPhone
in interface LdapPersonFound
telephoneNumber
- the work telephone numberpublic java.util.Set<java.lang.String> getWorkPhone()
getWorkPhone
in interface LdapPersonFound
public void addMobilePhone(java.lang.String telephoneNumber)
addMobilePhone
in interface LdapPersonFound
telephoneNumber
- the mobile telephone numberpublic java.util.Set<java.lang.String> getMobilePhone()
getMobilePhone
in interface LdapPersonFound
public void addHomePhone(java.lang.String telephoneNumber)
addHomePhone
in interface LdapPersonFound
telephoneNumber
- the home telephone numberpublic java.util.Set<java.lang.String> getHomePhone()
getHomePhone
in interface LdapPersonFound
public java.lang.String getDN()
getDN
in interface LdapPersonFound
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(LdapPersonFound other)
compareTo
in interface java.lang.Comparable<LdapPersonFound>
other
- other object to compare withpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.