主权项 |
1. A system for accessing data, comprising:
a storage component for storing messages of disparate data types in a plurality of storage locations, each of the plurality of storage locations associated with a principal, the disparate data types corresponding to different types of clients having at least one of different communications technologies or protocols in storage locations of users, a processor; and one or more memory storage devices coupled to the processor and storing instructions executable by the processor to implement an interface component at a mail server, the interface component including:
an application programming interface (API) defining a single class encapsulating properties identifying and used to access a mailbox, the single class serving as a single access means for universally accessing the storage locations persisted across multiple datastores via different applications that support communicating with the different types of clients, wherein the single class includes:
a plurality of class members, each class member encapsulating properties associated with a storage location from among the plurality of storage locations and uniquely identifying a storage location associated with a principal from among the plurality of storage locations storing messages of disparate data types, the class members including:
a mailbox server name,a mailbox database identifier (ID) associated with a database containing the storage location, anda mailbox ID associated with the corresponding principal, wherein the different types of clients include a voice access client and a data client; the instructions further executable by the processor to cause the system to:
receive a request at the application programming interface for an item associated with a principal of a mailbox, the request formatted to be compatible with the API and including the mailbox server name, mailbox database identifier, and mailbox ID associated with the principal;processing the request through the single class of the API, wherein processing the first request includes:
identifying a mailbox server associated with the mailbox based on the request received at the API;identifying the database containing the storage location; andidentifying the mailbox on the identified database. |