|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cisco.ipphone.sdk.User
public class User
This class encapsulates the attributes and functions of a Cisco IP Telephony User. The primary purpose of this class is to provide a convenient mechanism for finding relationships between IP Telephony Users and other system components such as Phones, Extensions, and PCs. Methods implemented in this class allow simple, efficient access to that information using service Providers, such as an LDAP Directory Provider.
| Method Summary | |
|---|---|
PC |
getAssociatedPC(LDAPProviderIF lp)
Queries the specified LDAP Provider for the PC Associated to this User |
Phone[] |
getControlledPhones(LDAPProvider lp,
java.lang.String beginsWith)
Queries the specified LDAP Provider for a list of Phones controlled by this User |
Phone |
getCurrentExtMobPhone(EMProvider ep)
Queries the specified Extension Mobility Provider for the Phone that this User is currently logged into |
java.lang.String |
getDefaultDeviceProfile(LDAPProviderIF lp)
|
java.lang.String |
getDepartment()
Returns this User's Department The loadAtributes method MUST be called first to populate the User information or this method will always return null. |
java.lang.String[] |
getDeviceProfiles(LDAPProviderIF lp)
|
java.lang.String |
getFirstName()
Returns the First Name of this User The loadAtributes method MUST be called first to populate the User information or this method will always return null. |
java.lang.String |
getLastName()
Returns the Last Name of this User The loadAtributes method MUST be called first to populate the User information or this method will always return null. |
java.lang.String |
getMail()
Returns this User's Mail address The loadAtributes method MUST be called first to populate the User information or this method will always return null. |
java.lang.String |
getManager()
Returns this User's Department The loadAtributes method MUST be called first to populate the User information or this method will always return null. |
Extension |
getPrimaryExtension(LDAPProviderIF lp)
Queries the specified LDAP Provider for the Primary Extension of this User |
java.lang.String |
getTelephoneNumber()
Returns this User's Telephone Number |
static User |
getUser(java.lang.String userId)
The getUser method is used to obtain a reference to a User object which has the specified, unique userId. |
java.lang.String |
getUserId()
|
boolean |
loadAttributes(LDAPProvider lp)
This method queries the specified LDAP Provider for all of the basic attributes of this User. |
boolean |
login(EMProvider ep,
Phone loginPhone)
Logs this User into the specified Phone using the given Extension Mobility Provider |
static User[] |
searchUsers(java.lang.String firstName,
java.lang.String lastName,
java.lang.String telephoneNumber,
LDAPProviderIF lp)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static User getUser(java.lang.String userId)
new command since there are no public constructors - instead a
reference is obtained to a given User by calling this method. This architecture has the added
benefit of being able to directly compare User objects for equality - since there is guaranteed to be
only one object in existence with a given, unique userId. This also has the effect of minimizing memory
utilization since only a single instance of a given User object exists within the JVM.
userId - the unique UserId of the requested User
public static User[] searchUsers(java.lang.String firstName,
java.lang.String lastName,
java.lang.String telephoneNumber,
LDAPProviderIF lp)
public java.lang.String getUserId()
public java.lang.String toString()
toString in class java.lang.Object
public Phone[] getControlledPhones(LDAPProvider lp,
java.lang.String beginsWith)
lp - the LDAPProviderbeginsWith - a String used to filter the Phones by matching it against the beginning of the deviceName. If beginsWith is null or an empty String, all Controlled Phones will be returned.
public PC getAssociatedPC(LDAPProviderIF lp)
lp - the LDAPProvider
null if this User does not have an Associated PC defined, or if the query fails.public java.lang.String getDefaultDeviceProfile(LDAPProviderIF lp)
public java.lang.String[] getDeviceProfiles(LDAPProviderIF lp)
public Extension getPrimaryExtension(LDAPProviderIF lp)
lp - the LDAPProvider
null if this User does not have a Primary Extension defined or if the query fails.public Phone getCurrentExtMobPhone(EMProvider ep)
ep - the EMProvider
null if the User is not currently logged in via Extension Mobility or if the query failspublic boolean loadAttributes(LDAPProvider lp)
get methods for those attributes - otherwise they will simply return null.
lp - the LDAPProvider
public java.lang.String getFirstName()
loadAtributes method MUST be called first to populate the User information or this method will always return null.
null if it does not exist.public java.lang.String getLastName()
loadAtributes method MUST be called first to populate the User information or this method will always return null.
null if it does not exist.public java.lang.String getDepartment()
loadAtributes method MUST be called first to populate the User information or this method will always return null.
null if it does not exist.public java.lang.String getManager()
loadAtributes method MUST be called first to populate the User information or this method will always return null.
null if it does not exist.public java.lang.String getMail()
loadAtributes method MUST be called first to populate the User information or this method will always return null.
null if it does not exist.public java.lang.String getTelephoneNumber()
NOTE: This is NOT the same as a User's Primary Extension !!!
The Primary Extension is a Cisco-specific attribute stored in the User's CCN profile (ou=profiles, ou=CCN) which is tied directly to the User's Controlled Phone and tightly integrated with the CallManager database. This Telephone Number is a standard User attribute (ou=Users) and not linkedb to the CallManager database. TheloadAtributes method MUST be called first to populate the User information or this method will always return null.
null if it does not exist.
public boolean login(EMProvider ep,
Phone loginPhone)
ep - the EMProviderloginPhone - the Phone to be used by this User
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||