Class UserPhoneBookEnum
- Namespace
- SWConfigDataClientLib.Proxies.UserPhoneBook
- Assembly
- IpPbxCDSClientLib.dll
public class UserPhoneBookEnum : UserPhoneBookEnumBase, SEnum
- Inheritance
-
SWCFProxy<UserPhoneBookEnumClient, IUserPhoneBookEnum>SWCFEnum<UserPhoneBookEnumClient, IUserPhoneBookEnum>UserPhoneBookEnum
- Implements
- Inherited Members
Constructors
UserPhoneBookEnum()
public UserPhoneBookEnum()
Properties
AutomaticUpdateEnabled
Gets value wether automatic update by callback is enabled. (Default: false)
public bool AutomaticUpdateEnabled { get; }
Property Value
PoolMaxSize
depcreated
public static int PoolMaxSize { get; set; }
Property Value
PoolMinSize
depcreated
public static int PoolMinSize { get; set; }
Property Value
m_BaseUrl
protected override string m_BaseUrl { get; }
Property Value
Methods
AddEditablePhoneBookEntry(string, string, string, string, bool)
Adds a new PhoneBookEntry (Global editable phonebook) directly into database.
public int AddEditablePhoneBookEntry(string Name, string Number, string SearchNumber, string Description, bool Hide)
Parameters
Name
stringThe name of the phone entry
Number
stringThe number
SearchNumber
stringThe searchnumber is the canonical representation of the number. It will be generated by the CDS.
Description
stringMandantory description
Hide
boolWhen set to true the entry will not be shown in phonebook. It will be used to resolve the name for displaying current call informations.
Returns
- int
The EntryID of the entry
CheckVersion()
public void CheckVersion()
Clear()
Removes all itmes and filters, DataSet on server will be removed also
public override void Clear()
Remarks
The items will not be deleted in database.
CreateAvatarCollection()
public AvatarBitmapCollection CreateAvatarCollection()
Returns
CreateClient(Binding, EndpointAddress)
protected override UserPhoneBookEnumClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
binding
BindingendpointAdrress
EndpointAddress
Returns
- UserPhoneBookEnumClient
DeleteEditablePhoneBookEntry(int)
Deletes an new PhoneBookEntry directly
public void DeleteEditablePhoneBookEntry(int EntryID)
Parameters
EntryID
intThe EntryID of the entry to be deleted.
DisableAutomaticUpdate()
Stops the update by callback from the CDS service. All locally subscribed usr will be unsubscribed
public void DisableAutomaticUpdate()
EnableAutomaticUpdate(OfficeUCSubscription)
Enables the update of the local phonebook by callbacks from the CDS services.
public void EnableAutomaticUpdate(OfficeUCSubscription subscription)
Parameters
subscription
OfficeUCSubscriptionOffice UC subscription that will be used by for notifying status changes for all subscribed users.
ExecuteFilterAll(OrderByList)
Sets filter on UserPhoneBook retrieving all entries creates and executes SQL query on PhoneBook table in configuration database
public void ExecuteFilterAll(OrderByList orderByList)
Parameters
orderByList
OrderByList
Remarks
This is a remote method.
ExecuteFilterAll(OrderByList, bool)
Sets filter on UserPhoneBook retrieving all entries creates and executes SQL query on PhoneBook table in configuration database
public void ExecuteFilterAll(OrderByList orderByList, bool notForUpdate)
Parameters
orderByList
OrderByListnotForUpdate
bool
Remarks
This is a remote method.
ExecuteFilterAll(int, OrderByList)
Sets filter on UserPhoneBook retrieving all entries creates and executes SQL query on PhoneBook table in configuration database
public void ExecuteFilterAll(int UserID, OrderByList orderByList)
Parameters
UserID
intorderByList
OrderByList
Remarks
This is a remote method.
ExecuteFilterAll(int, OrderByList, bool)
Sets filter on UserPhoneBook retrieving all entries creates and executes SQL query on PhoneBook table in configuration database
public void ExecuteFilterAll(int UserID, OrderByList orderByList, bool readOnly)
Parameters
UserID
intorderByList
OrderByListreadOnly
bool
Remarks
This is a remote method.
FreeForReuse()
public override void FreeForReuse()
GetAllUserEmailAddresses()
Get all email addresses
public SStringList GetAllUserEmailAddresses()
Returns
- SStringList
List of all email addresses
GetChatUserId(QualilifiedEntityID)
Lookup for user chat id
public string GetChatUserId(QualilifiedEntityID userId)
Parameters
userId
QualilifiedEntityID
Returns
- string
ChatUserId which is a string
GetCurrentUserID()
public int GetCurrentUserID()
Returns
GetCurrentUserName()
public string GetCurrentUserName()
Returns
GetEMailAddress(int)
Gets a list of configured user email addresses of the given user.
public SStringList GetEMailAddress(int userId)
Parameters
userId
intuser id of the user
Returns
- SStringList
List of user email addresses
GetEntityInfoText(QualilifiedEntityID)
public string GetEntityInfoText(QualilifiedEntityID cID)
Parameters
cID
QualilifiedEntityID
Returns
GetOrderByList()
Gets a list of all possible sorting elements.
public override OrderByList GetOrderByList()
Returns
- OrderByList
The object OrderByList containing all possible sorting elements.
Remarks
Thread Safety: safe
GetPBXPhoneBook(string, bool, bool)
Gets the PBXPhoneBook optionaly filterd by Name
public PBXPhoneBookPrimaryCollection GetPBXPhoneBook(string Name, bool bShowHidden, bool bFillUserState)
Parameters
Name
stringThe optional name of the entry. Can contain '%' and '_'. Use '%' to get all entries.
bShowHidden
boolIf true hidden entries will be returned
bFillUserState
boolIf true the current state of all entries assigned to an user will be filled. This action calls the IpPbxServer.
Returns
Remarks
This is a remote method.
GetPBXPhoneBookEx(string, bool, bool, bool, bool)
Gets the PBXPhoneBook optionaly filterd by Name and or Number.
public PBXPhoneBookPrimaryCollection GetPBXPhoneBookEx(string SearchPattern, bool SeachNames, bool SearchNumbers, bool bShowHidden, bool bFillUserState)
Parameters
SearchPattern
stringThe search pattern, it an contain '%' and '_'. Use '%' to get all entries.
SeachNames
boolSearch by name
SearchNumbers
boolbShowHidden
boolIf true hidden entries will be returned
bFillUserState
boolIf true the current state of all entries assigned to an user will be filled. This action calls the IpPbxServer.
Returns
Remarks
This is a remote method.
GetPBXPhoneBookLimited(string, bool, bool)
Gets the first 30 machting PBXPhoneBook entries filterd by Name
public PBXPhoneBookPrimaryCollection GetPBXPhoneBookLimited(string Name, bool bShowHidden, bool bFillUserState)
Parameters
Name
stringThe optional name of the entry. Can contain '%' and '_'. Use '%' to get all entries.
bShowHidden
boolIf true hidden entries will be returned
bFillUserState
boolIf true the current state of all entries assigned to an user will be filled. This action calls the IpPbxServer.
Returns
Remarks
This is a remote method.
GetPBXPhoneBookLimitedEx(string, bool, bool, bool, bool)
Gets the PBXPhoneBook optionaly filterd by Name and or Number with a maximal result of 30 entries.
public PBXPhoneBookPrimaryCollection GetPBXPhoneBookLimitedEx(string SearchPattern, bool SeachNames, bool SearchNumbers, bool bShowHidden, bool bFillUserState)
Parameters
SearchPattern
stringThe search pattern, it an contain '%' and '_'. Use '%' to get all entries.
SeachNames
boolSearch by name
SearchNumbers
boolbShowHidden
boolIf true hidden entries will be returned
bFillUserState
boolIf true the current state of all entries assigned to an user will be filled. This action calls the IpPbxServer.
Returns
Remarks
This is a remote method.
GetPBXPhonebookElements2(int, bool, bool, bool, long, out long[], out TPBXPhonebookExternalNumberData[], out TPBXEditablePhonebookEntryData[], out TPBXPhonebookInternalNumberData[], out TPBXPhonebookPublicNumberData[], out TPBXPhonebookUserData[], out TPBXPhonebookGroupData[], out TPBXPhonebookSiteData[], out TPBXPhonebookStatusEntry2[], out TPBXPhonebookRichStatusEntry[], out long, out long)
public void GetPBXPhonebookElements2(int iUserID, bool bAllEntries, bool bStatus, bool bRichStatus, long lClientTimestamp, out long[] aDeletedEntries, out TPBXPhonebookExternalNumberData[] aExternalNumbers, out TPBXEditablePhonebookEntryData[] aEditableEntries, out TPBXPhonebookInternalNumberData[] aInternalNumbers, out TPBXPhonebookPublicNumberData[] aPublicNumbers, out TPBXPhonebookUserData[] aUserEntries, out TPBXPhonebookGroupData[] aGroupEntries, out TPBXPhonebookSiteData[] aSiteEntries, out TPBXPhonebookStatusEntry2[] aStatusEntries, out TPBXPhonebookRichStatusEntry[] aRichStatusEntries, out long lServerTimeStamp, out long lServerProcessRef)
Parameters
iUserID
intbAllEntries
boolbStatus
boolbRichStatus
boollClientTimestamp
longaDeletedEntries
long[]aExternalNumbers
TPBXPhonebookExternalNumberData[]aEditableEntries
TPBXEditablePhonebookEntryData[]aInternalNumbers
TPBXPhonebookInternalNumberData[]aPublicNumbers
TPBXPhonebookPublicNumberData[]aUserEntries
TPBXPhonebookUserData[]aGroupEntries
TPBXPhonebookGroupData[]aSiteEntries
TPBXPhonebookSiteData[]aStatusEntries
TPBXPhonebookStatusEntry2[]aRichStatusEntries
TPBXPhonebookRichStatusEntry[]lServerTimeStamp
longlServerProcessRef
long
GetPBXPhonebookElements2(int, bool, bool, long, out long[], out TPBXPhonebookExternalNumberData[], out TPBXEditablePhonebookEntryData[], out TPBXPhonebookInternalNumberData[], out TPBXPhonebookPublicNumberData[], out TPBXPhonebookUserData[], out TPBXPhonebookGroupData[], out TPBXPhonebookSiteData[], out TPBXPhonebookStatusEntry2[], out long, out long)
public void GetPBXPhonebookElements2(int iUserID, bool bAllEntries, bool bStatus, long lClientTimestamp, out long[] aDeletedEntries, out TPBXPhonebookExternalNumberData[] aExternalNumbers, out TPBXEditablePhonebookEntryData[] aEditableEntries, out TPBXPhonebookInternalNumberData[] aInternalNumbers, out TPBXPhonebookPublicNumberData[] aPublicNumbers, out TPBXPhonebookUserData[] aUserEntries, out TPBXPhonebookGroupData[] aGroupEntries, out TPBXPhonebookSiteData[] aSiteEntries, out TPBXPhonebookStatusEntry2[] aStatusEntries, out long lServerTimeStamp, out long lServerProcessRef)
Parameters
iUserID
intbAllEntries
boolbStatus
boollClientTimestamp
longaDeletedEntries
long[]aExternalNumbers
TPBXPhonebookExternalNumberData[]aEditableEntries
TPBXEditablePhonebookEntryData[]aInternalNumbers
TPBXPhonebookInternalNumberData[]aPublicNumbers
TPBXPhonebookPublicNumberData[]aUserEntries
TPBXPhonebookUserData[]aGroupEntries
TPBXPhonebookGroupData[]aSiteEntries
TPBXPhonebookSiteData[]aStatusEntries
TPBXPhonebookStatusEntry2[]lServerTimeStamp
longlServerProcessRef
long
GetPersonalContactsFromServer(PersonalContactQuery)
public PersonalContactResult GetPersonalContactsFromServer(PersonalContactQuery queryParameters)
Parameters
queryParameters
PersonalContactQuery
Returns
- PersonalContactResult
GetPossibleIpPbxUserNames()
Returns all possible IpPbx User Names of the current user. Can be more than one if the current user is a windows user and multiple IppPbxUser are assigned to his windows account.
public SStringList GetPossibleIpPbxUserNames()
Returns
- SStringList
StringList
GetPresenceInfoForAllChatUsers()
Get presence info for all user that have an associated chatUserId(e.g. coligo system)
public RichPresenceInfoList GetPresenceInfoForAllChatUsers()
Returns
- RichPresenceInfoList
List of presence info structures
GetRichPresenceInformation(QualilifiedEntityID, ref RichPresenceInfo)
Gets the rich status information for an user.
public bool GetRichPresenceInformation(QualilifiedEntityID cID, ref RichPresenceInfo cInfo)
Parameters
cID
QualilifiedEntityIDId of the user
cInfo
RichPresenceInfoThe status info
Returns
- bool
True if user and status is available
GetRichPresenceInformation(string, out RichPresenceInfo)
Gets the rich status information for an user.
public bool GetRichPresenceInformation(string userEmailAddress, out RichPresenceInfo richPresenceInfo)
Parameters
userEmailAddress
stringThe user email address or number identifying the user.
richPresenceInfo
RichPresenceInfoThe status info of the user
Returns
- bool
True if user and status is available
GetServerRequestTimeout(UserPhoneBookEnumClient)
protected override TimeSpan GetServerRequestTimeout(UserPhoneBookEnumClient client)
Parameters
client
UserPhoneBookEnumClient
Returns
GetSupportedClientVersions()
public SStringList GetSupportedClientVersions()
Returns
GetUserIdByIntExtOrPubNumber(string)
Lookup for qualified user id by an internal, external or public phone number
public QualilifiedEntityID GetUserIdByIntExtOrPubNumber(string phoneNumber)
Parameters
phoneNumber
stringA phone number belonging to a user in the phonebook.
Returns
- QualilifiedEntityID
QualifiedEntityID of the user (or default EntityID, if not found)
HasRole(BuildInRoles)
public bool HasRole(BuildInRoles eRole)
Parameters
eRole
BuildInRoles
Returns
LookupUserEmailAddress(string)
Lookup for user email address
public bool LookupUserEmailAddress(string userEmailAddress)
Parameters
userEmailAddress
stringThe user email address or number identifying the user.
Returns
- bool
True if email address exists
ModifyEditablePhoneBookEntry(int, string, string, string, string, bool)
Modifies a PhoneBookEntry directly
public void ModifyEditablePhoneBookEntry(int EntryID, string Name, string Number, string SearchNumber, string Description, bool Hide)
Parameters
EntryID
intThe EntryID of the entry to be modified.
Name
stringThe name of the entry
Number
stringThe number
SearchNumber
stringThe searchnumber is the canonical representation of the number. It will be generated by the CDS.
Description
stringMandantory description
Hide
boolWhen set to true the entry will not be shown in phonebook. It will be used to resolve the name for displaying current call informations.
PingService(UserPhoneBookEnumClient)
protected override void PingService(UserPhoneBookEnumClient client)
Parameters
client
UserPhoneBookEnumClient
ReloadPBXPhonebookData()
Reloads the phone book manually from the CDS. (Works only if autmatic update is enabled) This method is designed for testing purposes.
public void ReloadPBXPhonebookData()
SetOwnPresenceInfoSubscription(OwnPresenceInfoSubscription)
Sets an auxiliary subcrition to get informed about status updates of the own user
public void SetOwnPresenceInfoSubscription(OwnPresenceInfoSubscription subscription)
Parameters
subscription
OwnPresenceInfoSubscriptionGeneric subscription
SetPhonebookReloadSubscription(GenericSubscription)
Sets an auxiliary subcrition to get informed about reloads
public void SetPhonebookReloadSubscription(GenericSubscription subscription)
Parameters
subscription
GenericSubscriptionGeneric subscription
SubscribeForCurrentUserStatus()
Subscribes for status changes of a given user. (Locally only)
public bool SubscribeForCurrentUserStatus()
Returns
- bool
True is successfull
SubscribeForStatus(int, int)
Subscribes for status changes of a given user. (Locally only)
public bool SubscribeForStatus(int userID, int siteID)
Parameters
Returns
- bool
True is successfull
TestGetPBXPhonebookElementCount(int)
Reads all phonebook elements from CDS. Use this method for testing only!
public int TestGetPBXPhonebookElementCount(int iUserID)
Parameters
iUserID
intUserID of the user
Returns
UnsubscribeForStatus(int, int)
Unsubscribes for status changes of a given user. (Locally only)
public bool UnsubscribeForStatus(int userID, int siteID)
Parameters
Returns
- bool
True is successfull