Abstract

ETSI OSA APIs Phase 4.   Based on ES 203 915 and the new requirements for OSA Phase 4, to produce ES 204 915 V1.1.1.  ETSI OSA Phase 4 incorporates 3GPP OSA Release 7 and is also known as Parlay 6.0.The present document is part 9 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).
The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.
The present document specifies the Generic Messaging Service Capability Feature (SCF) aspects of the interface. All aspects of the Generic Messaging SCF are defined here, these being:
• Sequence Diagrams.
• Class Diagrams.
• Interface specification plus detailed method descriptions.
• State Transition diagrams.
• Data Definitions.
• IDL Description of the interfaces.
The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

Status
Published
Publication Date
01-Jul-2008
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
11-Jun-2008
Due Date
16-Aug-2008
Completion Date
02-Jul-2008

Buy Documents

Standard

ETSI ES 204 915-9 V1.1.1 (2008-02) - Open Service Access (OSA); Application Programming Interface (API); Part 9: Generic Messaging SCF (Parlay 6)

English language (41 pages)
sale 15% off
Preview
sale 15% off
Preview
Standard

ETSI ES 204 915-9 V1.1.1 (2008-05) - Open Service Access (OSA); Application Programming Interface (API); Part 9: Generic Messaging SCF (Parlay 6)

English language (41 pages)
sale 15% off
Preview
sale 15% off
Preview
Standardization document

SIST ES 204 915-9 V1.1.1:2008

English language (41 pages)
Preview
Preview
e-Library read for
×1 day

SIST ES 204 915-9 V1.1.1:2008 is the ETSI Standard for Open Service Access (OSA) Application Programming Interface (API), Part 9: Generic Messaging SCF (Parlay 6). It specifies the OSA Generic Messaging service interface for applications that use network messaging functions such as mailbox access, folder handling, message retrieval, message storage, and event notifications. The document is written for application developers and service implementers who need the UML-based interface model and the related data definitions.

What does SIST ES 204 915-9 V1.1.1:2008 specify?

SIST ES 204 915-9 V1.1.1:2008 is Part 9 of the Stage 3 OSA API specification. It defines the Generic Messaging Service Capability Feature (SCF) for OSA Phase 4, which is based on ES 203 915 and aligned with 3GPP OSA Release 7, also known as Parlay 6.0.

The standard says that OSA provides an open standardized interface so application developers can use network functionality. For Generic Messaging, it covers the interface structure, the message and mailbox model, and the data types needed to drive the API.

The document is organized into the following main parts:

  • Scope, references, definitions and abbreviations
  • Generic Messaging SCF overview
  • Sequence diagrams
  • Class diagrams
  • Service interface specifications
  • Generic Messaging interface classes
  • State transition diagrams
  • Data definitions
  • Exception classes
  • Annexes with IDL, WSDL and Java API realizations, plus a change record
AnnexWhat it covers
Annex ANormative OMG IDL description of the Generic Messaging SCF
Annex BInformative W3C WSDL description of the Generic Messaging SCF
Annex CInformative Java API description of the Generic Messaging SCF
Annex DInformative record of changes

What are the key requirements of SIST ES 204 915-9 V1.1.1:2008?

SIST ES 204 915-9 V1.1.1:2008 defines how an application opens, manages, and closes messaging resources through OSA interfaces, and how the service reports events back to the application. The key requirements are mainly in clauses 7, 8, 10 and 11.

Interface model and callbacks

Clause 7 says the API is modeled with UML and uses interface classes, method descriptions, parameter descriptions, and state models. Service and framework interfaces inherit from IpInterface, and service interfaces use IpService as the common base.

The standard also defines callback handling through setCallback() and setCallbackWithSessionID(). In practice, this means the application must provide a callback interface so the service can return asynchronous results, events, and faults.

Opening and controlling mailboxes

Clause 8.1 defines IpMessagingManager, which opens a mailbox and manages notifications. openMailbox() returns a mailbox identifier, and the application may open more than one mailbox at the same time, but not the same mailbox twice concurrently.

IpMailbox in clause 8.3 provides mailbox control such as close(), lock(), unlock(), getInfoAmount(), getInfoProperties(), setInfoProperties(), openFolder(), createFolder() and remove(). In practice, this is the main lifecycle for mailbox access, including exclusive locking when one application must prevent changes by others.

Working with folders and messages

Clause 8.4 defines IpMailboxFolder for folder-level operations. It supports folder properties, putMessage() for storing a message, getMessage() for retrieving a message, close() for closing the folder, and remove() for deleting it.

Clause 8.5 defines IpMessage, which lets an application inspect a message, change some message properties, remove it, or get the message content. This matters because the API separates message content from message metadata, so a developer can choose to read properties first and only fetch the full content when needed.

Event notifications and mailbox faults

Clause 8.2 defines IpAppMessagingManager, the application-side callback interface. It reports mailboxTerminated(), mailboxFaultDetected(), messagingEventNotify(), and messagingNotificationTerminated().

Clause 8.1.2 and data definitions in clause 10 show how event criteria and event information are structured for P_EVENT_GMS_NEW_MESSAGE_ARRIVED. In practice, the application can subscribe to message-arrival notifications and then use the returned mailbox, folder, and message identifiers to continue processing.

Data definitions, property sets and formats

Clause 10 defines the data types used across the API. These include property sets for mailboxes, folders and messages, message priority, message status, message format, and the fault type used in notifications.

This matters because the interface is property driven: mailbox, folder and message data are exchanged as named property sets, and the application must use the defined names and types when reading or updating metadata.

Errors and unsupported methods

Clause 11 lists the exception classes used by the API, including invalid mailbox, invalid folder, invalid message, locked mailbox, open folder, insufficient privilege, and property-not-set conditions.

Clause 4 also states that if an implementation supports a method, it shall support that method for at least one valid set of parameter values. If a service interface method is not supported, the API returns P_METHOD_NOT_SUPPORTED. In practice, this tells implementers how partial support must behave and what the application should expect when an operation cannot be completed.

What terms does SIST ES 204 915-9 V1.1.1:2008 define?

  • Open Service Access (OSA) - An architecture that lets applications use network functionality through an open standardized interface.
  • Service Capability Feature (SCF) - A defined service feature area within the OSA API, such as Generic Messaging SCF.
  • Generic Messaging Service (GMS) - The messaging service used to send, store and receive messages, including voice mail and electronic mail.
  • Unified Modelling Language (UML) - The object modeling language used to describe the interface classes, methods and state models.
  • OMG IDL - The interface description language used in Annex A to represent the API formally.
  • W3C WSDL - The web service description language used in Annex B to describe the Generic Messaging SCF.
  • Application Programming Interface (API) - The callable interface that applications use to interact with the service.

Who uses SIST ES 204 915-9 V1.1.1:2008?

SIST ES 204 915-9 V1.1.1:2008 is used by application developers, service developers, and platform architects who build OSA-based messaging services. It is also relevant to engineers implementing callback handling, mailbox management, folder operations, and message retrieval in telecom or converged messaging systems.

The standard fits messaging environments that expose network functions to applications, including voice mail and electronic mail scenarios. Buyers and quality managers typically use it to check whether a platform or API supports the mailbox, folder, message, and event model needed by their application.

Which standards are used with SIST ES 204 915-9 V1.1.1:2008?

  • ETSI ES 204 915-1, Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6) - Provides the overview and, through its clause 2, the referenced provisions that apply here.
  • ETSI ES 204 915-2, Open Service Access (OSA); Application Programming Interface (API); Part 2: Common Data Definitions - Supplies common data definitions for types referenced in this part but defined elsewhere.

What does the SIST ES 204 915-9 V1.1.1:2008 document contain?

The document contains sequence diagrams for prepare mailbox, open mailbox, get message, get folder information, and close mailbox. It also contains class diagrams for the service and application interfaces, plus detailed method descriptions for mailbox, folder and message operations.

Clause 10 provides the data definitions for event notifications, mailbox properties, folder properties, message properties, priority, status and fault codes. Clause 11 lists the exception classes and their meanings, so implementers can map API errors to clear messaging conditions.

Annex A provides the normative OMG IDL representation of the interface specification. Annex B and Annex C provide alternative realizations in WSDL and Java, which are useful for implementation, integration and code generation work.

Buy Documents

Standard

ETSI ES 204 915-9 V1.1.1 (2008-02) - Open Service Access (OSA); Application Programming Interface (API); Part 9: Generic Messaging SCF (Parlay 6)

English language (41 pages)
sale 15% off
Preview
sale 15% off
Preview
Standard

ETSI ES 204 915-9 V1.1.1 (2008-05) - Open Service Access (OSA); Application Programming Interface (API); Part 9: Generic Messaging SCF (Parlay 6)

English language (41 pages)
sale 15% off
Preview
sale 15% off
Preview
Standardization document

SIST ES 204 915-9 V1.1.1:2008

English language (41 pages)
Preview
Preview
e-Library read for
×1 day

Get Certified

Connect with accredited certification bodies for this standard

BSI Group

BSI (British Standards Institution) is the business standards company that helps organizations make excellence a habit.

UKAS United Kingdom Verified

NYCE

Mexican standards and certification body.

EMA Mexico Verified

Sponsored listings

Frequently Asked Questions

SIST ES 204 915-9 V1.1.1:2008 is a standard published by the Slovenian Institute for Standardization (SIST). Its full title is "Open Service Access (OSA) - Application Programming Interface (API) - Part 9: Generic Messaging SCF (Parlay 6)". This standard covers: ETSI OSA APIs Phase 4. Based on ES 203 915 and the new requirements for OSA Phase 4, to produce ES 204 915 V1.1.1. ETSI OSA Phase 4 incorporates 3GPP OSA Release 7 and is also known as Parlay 6.0.The present document is part 9 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA). The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs. The present document specifies the Generic Messaging Service Capability Feature (SCF) aspects of the interface. All aspects of the Generic Messaging SCF are defined here, these being: • Sequence Diagrams. • Class Diagrams. • Interface specification plus detailed method descriptions. • State Transition diagrams. • Data Definitions. • IDL Description of the interfaces. The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

ETSI OSA APIs Phase 4. Based on ES 203 915 and the new requirements for OSA Phase 4, to produce ES 204 915 V1.1.1. ETSI OSA Phase 4 incorporates 3GPP OSA Release 7 and is also known as Parlay 6.0.The present document is part 9 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA). The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs. The present document specifies the Generic Messaging Service Capability Feature (SCF) aspects of the interface. All aspects of the Generic Messaging SCF are defined here, these being: • Sequence Diagrams. • Class Diagrams. • Interface specification plus detailed method descriptions. • State Transition diagrams. • Data Definitions. • IDL Description of the interfaces. The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

SIST ES 204 915-9 V1.1.1:2008 is classified under the following ICS (International Classification for Standards) categories: 35.100.01 - Open systems interconnection in general. The ICS classification helps identify the subject area and facilitates finding related standards.

SIST ES 204 915-9 V1.1.1:2008 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.

Standards Content (Sample)

Contents

  • 1 Scope
  • 2 References
  • 3 Definitions and abbreviations
  • 3.1 Definitions
  • 3.2 Abbreviations
  • 4 Generic Messaging SCF
  • 8 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 5 Sequence Diagrams
  • 5.1 Prepare Mailbox
  • 9 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 5.2 Open Mailbox
  • 5.3 Get Message
  • 10 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 5.4 Get Folder Information
  • 11 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 5.5 Close Mailbox
  • 6 Class Diagrams
  • 12 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 13 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 7.2 Base Interface
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 14 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 8 Generic Messaging Interface Classes
  • 15 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 8.1 Interface Class IpMessagingManager
  • 16 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 8.2 Interface Class IpAppMessagingManager
  • 17 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 18 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 8.3 Interface Class IpMailbox
  • 19 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 20 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 21 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 22 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 8.4 Interface Class IpMailboxFolder
  • 23 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 24 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 25 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 8.5 Interface Class IpMessage
  • 26 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 27 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 28 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 9 State Transition Diagrams
  • 29 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 10 Data Definitions
  • 10.1 Event notification Definitions
  • 30 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 10.2 Generic Messaging Data Definitions
  • 31 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 32 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 33 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 34 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 11 Exception Classes
  • 35 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 36 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 37 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 38 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 39 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 40 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)
  • 41 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

1 Scope

The present document is part 9 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).

The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.

The present document specifies the Generic Messaging Service Capability Feature (SCF) aspects of the interface. All aspects of the Generic Messaging SCF are defined here, these being:

  • Sequence Diagrams.
  • Class Diagrams.
  • Interface specification plus detailed method descriptions.
  • State Transition diagrams.
  • Data Definitions.
  • IDL Description of the interfaces.

The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

2 References

The references listed in clause 2 of ES 204 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

ETSI ES 204 915-1: "Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6)".

3 Definitions and abbreviations

3.1 Definitions

For the purposes of the present document, the terms and definitions given in ES 204 915-1 apply.

3.2 Abbreviations

For the purposes of the present document, the abbreviations given in ES 204 915-1 apply.

4 Generic Messaging SCF

The following clauses describe each aspect of the Generic Messaging Service Capability Feature (SCF). The order is as follows:

  • The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented.
  • The Class relationships clause shows how each of the interfaces applicable to the SCF, relate to one another. ETSI

8 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

  • The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part.
  • The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified in the Interface specification or events occurring in the underlying networks cause state transitions.
  • The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and are therefore defined within the Common Data types part ES 204 915-2.

An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at least one valid set of values for the parameters of that method. Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method.

5 Sequence Diagrams

5.1 Prepare Mailbox

IpAppLogic IpAppMess agingManager IpMessagingManager 1: new() 2: enableMessagingNotification( ) 3: messagingEventNotify( ) 4: 'forward event'

1: This message is used by the application to create an object implementing the IpAppMessagingManager interface.

2: This message is used to enable the notification mechanism so that events can be sent to the application. When new mail, that matches the event criteria set in message 2, arrives a message indicating the presence of new mail (not shown) is directed to the object implementing the IpMessagingManager. 3: This message is used to pass the new mail event to the object implementing the IpAppMessagingManager interface.

4: This message is used to forward message 3 to the IpAppLogic. ETSI

9 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

5.2 Open Mailbox

: : : IpMailbox IpAppLogic IpMessagingManager 1: openMailbox( ) 2: new()

1: This message requests the object implementing the IpMessagingManager interface to create an object implementing the IpMailbox interface.

2: Assuming that the criteria for creating an object implementing the IpMailbox interface is met, message 2 is used to create it.

5.3 Get Message

: : IpMailbox : IpMailboxFolder : IpMessage IpAppLogic 1: openFolder( ) 2: getInfoAmount( ) 3: getInfoProperties( ) 4: getMessage( ) 5: new()

1: This message requests a folder to be opened and returns a reference to that folder. 2: This message requests the number of folder information properties of the opened folder. 3: This message requests all of the folder information properties. ETSI

10 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

4: This message requests a message from the opened mailbox folder. 5: Assuming that the criteria for creating an object implementing the IpMessage interface are met, the (internal) message 5 is used to create it.

5.4 Get Folder Information

IpAppLogic IpMailboxFolder 1: getInfoAmount( ) 2: getInfoProperties( ) 3: getInfoProperties( )

1: This message requests the number of folder information properties of the specified folder. 2: This message requests the first set of folder information properties. 3: This message requests the second set of folder information properties. ETSI

11 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

5.5 Close Mailbox

: : IpMailbox IpAppLogic 1: close( )

1: This message requests the object implementing the IpMailbox interface to de-assign.

6 Class Diagrams

<<Interface>> IpService (f ro m c sap i) setCallback() setCallbackWithSessionID() <<Interface>> <<Interface>> <<Interface>> <<Interface>> IpMessagingManager IpMailbox IpMailboxFolder IpMessage (from gms) (from gms) (from gms) (from gms) 00..n..n 11 00..n..n 11 22..n..n 11

Figure 1: Package Overview : Service Interfaces The application generic messaging service package consists of only one IpAppMessagingManager interface. The generic messaging service package consists of one IpMessagingManager interface, zero or more IpMailbox interfaces, zero or more IpMailboxFolder and zero or more IpMessage interfaces. The class diagram in the following figure shows the interfaces that make up the application generic messaging service package and the generic messaging service package. Communication between these packages is done via the +uses the IpMessagingManager channels. Communication with the IpMailbox and IpMailboxFolder interfaces has to be done via the application logic (not shown).

ETSI

12 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

<<Interface>> IpInterface (from csapi) <<Interface>> IpAppMessagingManager (from gms) mailboxTerminated() mailboxFaultDetected() messagingEventNotify() messagingNotificationTerminated()

<<uses>> <<Interface>> IpMailbox <<Interface>>

(from gms) IpMailboxFolder <<Interface>> (from gms) <<Interface>> IpMessage (from gms) IpMessagingManager close() (from gms) lock() getInfoAmount() unlock() getInfoProperties() getInfoAmount() openMailbox() getInfoAmount() setInfoProperties() getInfoProperties() 1100....nn 1100....nn 11 22..n..n enableMessagingNotification() getInfoProperties() putMessage() setInfoProperties() disableMessagingNotification() setInfoProperties() getMessage() remove() openFolder() close() getContent() createFolder() remove() remove()

Figure 2: Package Overview: Application and Service Interfaces

7 The Service Interface Specifications

7.1 Interface Specification Format

This clause defines the interfaces, methods and parameters that form a part of the API specification. The Unified Modelling Language (UML) is used to specify the interface classes. The general format of an interface specification is described below.

7.1.1 Interface Class

This shows a UML interface class description of the methods supported by that interface, and the relevant parameters and types. The Service and Framework interfaces for enterprise-based client applications are denoted by classes with name Ip<name>. The callback interfaces to the applications are denoted by classes with name IpApp<name>. For the interfaces between a Service and the Framework, the Service interfaces are typically denoted by classes with name IpSvc<name>, while the Framework interfaces are denoted by classes with name IpFw<name>.

7.1.2 Method descriptions

Each method (API method "call") is described. Both synchronous and asynchronous methods are used in the API. Asynchronous methods are identified by a 'Req' suffix for a method request, and, if applicable, are served by asynchronous methods identified by either a 'Res' or 'Err' suffix for method results and errors, respectively. To handle responses and reports, the application or service developer must implement the relevant IpApp<name> or IpSvc<name> interfaces to provide the callback mechanism.

ETSI

13 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

7.1.3 Parameter descriptions

Each method parameter and its possible values are described. Parameters described as 'in' represent those that must have a value when the method is called. Those described as 'out' are those that contain the return result of the method when the method returns.

7.1.4 State Model

If relevant, a state model is shown to illustrate the states of the objects that implement the described interface.

7.2 Base Interface

7.2.1 Interface Class IpInterface

All application, framework and service interfaces inherit from the following interface. This API Base Interface does not provide any additional methods.

<<Interface>> IpInterface

7.3 Service Interfaces

7.3.1 Overview

The Service Interfaces provide the interfaces into the capabilities of the underlying network - such as call control, user interaction, messaging, mobility and connectivity management.

The interfaces that are implemented by the services are denoted as 'Service Interface'. The corresponding interfaces that must be implemented by the application (e.g. for API callbacks) are denoted as 'Application Interface'.

7.4 Generic Service Interface

7.4.1 Interface Class IpService

Inherits from: IpInterface; All service interfaces inherit from the following interface.

<<Interface>> IpService

setCallback (appInterface : in IpInterfaceRef) : void setCallbackWithSessionID (appInterface : in IpInterfaceRef, sessionID : in TpSessionID) : void

ETSI

14 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

7.4.1.1 Method setCallback()

This method specifies the reference address of the callback interface that a service uses to invoke methods on the application. It is not allowed to invoke this method on an interface that uses SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used. Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. Raises TpCommonExceptions, P_INVALID_INTERFACE_TYPE

7.4.1.2 Method setCallbackWithSessionID()

This method specifies the reference address of the application's callback interface that a service uses for interactions associated with a specific session ID: e.g. a specific call, or call leg. It is not allowed to invoke this method on an interface that does not use SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. sessionID : in TpSessionID Specifies the session for which the service can invoke the application's callback interface. Raises TpCommonExceptions, P_INVALID_SESSION_ID, P_INVALID_INTERFACE_TYPE

8 Generic Messaging Interface Classes

The Generic Messaging Service interface (GMS) is used by applications to send, store and receive messages. GMS has voice mail and electronic mail as the messaging mechanisms. The messaging service interface can be used by both. A messaging system is assumed to have the following entities:

  • Mailboxes. This is the application's main entry point to the messaging system. The framework may or may not need to authenticate an application before it accesses a mailbox.
  • Folders. A mailbox has at least the inbox and the outbox as folders. The name of the inbox is "INBOX", and the name of the outbox is "OUTBOX". These folders may have sub-folders. The names of these sub-folders are appended to their parents' names with '/' as the delimiter. For instance, if there is a sub-folder in INBOX called 'Personal' and a sub-folder in that folder called 'archive' then the fully qualified names, which are required for all operations, of the four folders are 'INBOX', 'OUTBOX', 'INBOX/Personal', and 'INBOX/Personal/archive'. The names are case sensitive. A messaging service may have other folders other than the inbox and the outbox.
  • Messages. Messages are stored in folders. Messages usually have properties associated with them. The GMS is represented by the IpMessagingManager, IpMailbox, IpMailboxFolder and IpMessage interfaces to services provided by the network. To handle responses and reports, the developer must implement IpAppMessagingManager to provide the callback mechanism for the Messaging service manager. ETSI

15 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

8.1 Interface Class IpMessagingManager

Inherits from: IpService.

This interface is the 'service manager' interface for the Generic Messaging Service. The generic messaging manager interface provides the management functions to the generic messaging service. The application programmer can use this interface to open mailbox objects and also to enable or disable event notifications. <<Interface>> IpMessagingManager

openMailbox (mailboxID : in TpAddress, authenticationInfo : in TpString) : TpMailboxIdentifier enableMessagingNotification (appInterface : in IpAppMessagingManagerRef, eventCriteria : in TpMessagingEventCriteria) : TpAssignmentID disableMessagingNotification (assignmentID : in TpAssignmentID) : void

8.1.1 Method openMailbox()

This method opens a mailbox for the application. The session ID for use by the application is returned. Authentication information may be needed to open the mailbox.

The application can open more than one mailbox at the same time. The application is not allowed to open the same mailbox more than once at the same time.

Returns: mailboxReference.

Specifies the reference to the opened mailbox.

Parameters mailboxID : in TpAddress Specifies the identity of the mailbox. If the mailbox chosen is invalid, the error code P_GMS_INVALID_MAILBOX is returned.

authenticationInfo : in TpString Authentication information needed for the application to open a mailbox in the messaging system, such as a key or password. If the authentication process is considered strong enough for the application to gain access to the mailbox, then the authentication information will be an empty string. If the authentication information is not valid, the error code P_GMS_INVALID_AUTHENTICATION_INFORMATION is returned.

Returns TpMailboxIdentifier Raises TpCommonExceptions, P_GMS_INVALID_MAILBOX, P_GMS_INVALID_AUTHENTICATION_INFORMATION ETSI

16 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

8.1.2 Method enableMessagingNotification()

This method is used to enable messaging notifications so that events can be sent to the application. Returns: assignmentID.

Specifies the ID assigned by the generic messaging manager interface for this newly-enabled event notification. Parameters appInterface : in IpAppMessagingManagerRef If this parameter is set (i.e. not NULL) it specifies a reference to the application interface, which is used for callbacks. If set to NULL, the application interface defaults to the interface specified via the setCallback() method. eventCriteria : in TpMessagingEventCriteria Specifies the event specific criteria used by the application to define the event required. Returns TpAssignmentID Raises TpCommonExceptions, P_INVALID_CRITERIA

8.1.3 Method disableMessagingNotification()

This method is used by the application to disable call notifications. Parameters assignmentID : in TpAssignmentID Specifies the assignment ID given by the generic messaging manager interface when the previous enableNotification() was called. If the assignment ID does not correspond to one of the valid assignment IDs, the framework will return the error code P_INVALID_ASSIGNMENTID.

Raises TpCommonExceptions, P_INVALID_ASSIGNMENT_ID

8.2 Interface Class IpAppMessagingManager

Inherits from: IpInterface.

The client application developer implements the generic messaging manager application interface to handle mailbox termination, mailbox fault and messaging event notifications.

ETSI

17 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

<<Interface>> IpAppMessagingManager

mailboxTerminated (mailbox : in IpMailboxRef, mailboxSessionID : in TpSessionID) : void mailboxFaultDetected (mailbox : in IpMailboxRef, mailboxSessionID : in TpSessionID, fault : in TpMessagingFault) : void messagingEventNotify (messagingManager : in IpMessagingManagerRef, eventInfo : in TpMessagingEventInfo, assignmentID : in TpAssignmentID) : void messagingNotificationTerminated () : void

8.2.1 Method mailboxTerminated()

This method indicates to the application that the mailbox has terminated or closed abnormally. No further communication will be possible between the mailbox and application. Parameters mailbox : in IpMailboxRef Specifies the interface of the mailbox that has terminated.

mailboxSessionID : in TpSessionID Specifies the mailbox session ID of the mailbox that has terminated.

8.2.2 Method mailboxFaultDetected()

This method indicates to the application that a fault has been detected in the mailbox. Parameters mailbox : in IpMailboxRef Specifies the interface of the mailbox in which the fault has been detected. mailboxSessionID : in TpSessionID Specifies the mailbox session ID of the mailbox in which the fault has been detected. fault : in TpMessagingFault Specifies the fault that has been detected.

8.2.3 Method messagingEventNotify()

This method notifies the application of the arrival of a messaging-related event. Parameters messagingManager : in IpMessagingManagerRef Specifies the reference to the messaging manager interface to which the notification relates. ETSI

18 Final draft ETSI ES 204 915-9 V1.1.1 (2008-02)

eventInfo : in TpMessagingEventInfo Specifies data associated with this event.

assignmentID : in TpAssignmentID Specifies the assignment id which was returned by the enableNotification() method. The application can use assignment id to associate events with event specific criteria and to act accordingly.

8.2.4 Method messagingNotificationTerminated()

This method indicates to the application that all event notifications have been terminated (for example, due to faults detected).

Parameters No Parameters were identified for this method.

8.3 Interface Class IpMailbox

Inherits from: IpService.

...

Contents

  • 1 Scope
  • 2 References
  • 3 Definitions and abbreviations
  • 3.1 Definitions
  • 3.2 Abbreviations
  • 4 Generic Messaging SCF
  • 8 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5 Sequence Diagrams
  • 5.1 Prepare Mailbox
  • 9 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5.2 Open Mailbox
  • 5.3 Get Message
  • 10 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5.4 Get Folder Information
  • 11 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5.5 Close Mailbox
  • 6 Class Diagrams
  • 12 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 13 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 7.2 Base Interface
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 14 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8 Generic Messaging Interface Classes
  • 15 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.1 Interface Class IpMessagingManager
  • 16 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.2 Interface Class IpAppMessagingManager
  • 17 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 18 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.3 Interface Class IpMailbox
  • 19 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 20 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 21 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 22 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.4 Interface Class IpMailboxFolder
  • 23 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 24 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 25 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.5 Interface Class IpMessage
  • 26 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 27 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 28 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 9 State Transition Diagrams
  • 29 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 10 Data Definitions
  • 10.1 Event notification Definitions
  • 30 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 10.2 Generic Messaging Data Definitions
  • 31 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 32 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 33 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 34 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 11 Exception Classes
  • 35 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 36 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 37 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 38 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 39 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 40 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 41 ETSI ES 204 915-9 V1.1.1 (2008-05)

1 Scope

The present document is part 9 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).

The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.

The present document specifies the Generic Messaging Service Capability Feature (SCF) aspects of the interface. All aspects of the Generic Messaging SCF are defined here, these being:

  • Sequence Diagrams.
  • Class Diagrams.
  • Interface specification plus detailed method descriptions.
  • State Transition diagrams.
  • Data Definitions.
  • IDL Description of the interfaces.

The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

2 References

The references listed in clause 2 of ES 204 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

ETSI ES 204 915-1: "Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6)".

3 Definitions and abbreviations

3.1 Definitions

For the purposes of the present document, the terms and definitions given in ES 204 915-1 apply.

3.2 Abbreviations

For the purposes of the present document, the abbreviations given in ES 204 915-1 apply.

4 Generic Messaging SCF

The following clauses describe each aspect of the Generic Messaging Service Capability Feature (SCF). The order is as follows:

  • The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented.
  • The Class relationships clause shows how each of the interfaces applicable to the SCF, relate to one another. ETSI

8 ETSI ES 204 915-9 V1.1.1 (2008-05)

  • The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part.
  • The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified in the Interface specification or events occurring in the underlying networks cause state transitions.
  • The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and are therefore defined within the Common Data types part ES 204 915-2.

An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at least one valid set of values for the parameters of that method. Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method.

5 Sequence Diagrams

5.1 Prepare Mailbox

IpAppLogic IpAppMess agingManager IpMessagingManager 1: new() 2: enableMessagingNotification( ) 3: messagingEventNotify( ) 4: 'forward event'

1: This message is used by the application to create an object implementing the IpAppMessagingManager interface.

2: This message is used to enable the notification mechanism so that events can be sent to the application. When new mail, that matches the event criteria set in message 2, arrives a message indicating the presence of new mail (not shown) is directed to the object implementing the IpMessagingManager. 3: This message is used to pass the new mail event to the object implementing the IpAppMessagingManager interface.

4: This message is used to forward message 3 to the IpAppLogic. ETSI

9 ETSI ES 204 915-9 V1.1.1 (2008-05)

5.2 Open Mailbox

: : : IpMailbox IpAppLogic IpMessagingManager 1: openMailbox( ) 2: new()

1: This message requests the object implementing the IpMessagingManager interface to create an object implementing the IpMailbox interface.

2: Assuming that the criteria for creating an object implementing the IpMailbox interface is met, message 2 is used to create it.

5.3 Get Message

: : IpMailbox : IpMailboxFolder : IpMessage IpAppLogic 1: openFolder( ) 2: getInfoAmount( ) 3: getInfoProperties( ) 4: getMessage( ) 5: new()

1: This message requests a folder to be opened and returns a reference to that folder. 2: This message requests the number of folder information properties of the opened folder. 3: This message requests all of the folder information properties. ETSI

10 ETSI ES 204 915-9 V1.1.1 (2008-05)

4: This message requests a message from the opened mailbox folder. 5: Assuming that the criteria for creating an object implementing the IpMessage interface are met, the (internal) message 5 is used to create it.

5.4 Get Folder Information

IpAppLogic IpMailboxFolder 1: getInfoAmount( ) 2: getInfoProperties( ) 3: getInfoProperties( )

1: This message requests the number of folder information properties of the specified folder. 2: This message requests the first set of folder information properties. 3: This message requests the second set of folder information properties. ETSI

11 ETSI ES 204 915-9 V1.1.1 (2008-05)

5.5 Close Mailbox

: : IpMailbox IpAppLogic 1: close( )

1: This message requests the object implementing the IpMailbox interface to de-assign.

6 Class Diagrams

<<Interface>> IpService (f ro m c sap i) setCallback() setCallbackWithSessionID() <<Interface>> <<Interface>> <<Interface>> <<Interface>> IpMessagingManager IpMailbox IpMailboxFolder IpMessage (from gms) (from gms) (from gms) (from gms) 00..n..n 11 00..n..n 11 22..n..n 11

Figure 1: Package Overview : Service Interfaces The application generic messaging service package consists of only one IpAppMessagingManager interface. The generic messaging service package consists of one IpMessagingManager interface, zero or more IpMailbox interfaces, zero or more IpMailboxFolder and zero or more IpMessage interfaces. The class diagram in the following figure shows the interfaces that make up the application generic messaging service package and the generic messaging service package. Communication between these packages is done via the +uses the IpMessagingManager channels. Communication with the IpMailbox and IpMailboxFolder interfaces has to be done via the application logic (not shown).

ETSI

12 ETSI ES 204 915-9 V1.1.1 (2008-05)

<<Interface>> IpInterface (from csapi) <<Interface>> IpAppMessagingManager (from gms) mailboxTerminated() mailboxFaultDetected() messagingEventNotify() messagingNotificationTerminated()

<<uses>> <<Interface>> IpMailbox <<Interface>>

(from gms) IpMailboxFolder <<Interface>> (from gms) <<Interface>> IpMessage (from gms) IpMessagingManager close() (from gms) lock() getInfoAmount() unlock() getInfoProperties() getInfoAmount() openMailbox() getInfoAmount() setInfoProperties() getInfoProperties() 1100....nn 1100....nn 11 22..n..n enableMessagingNotification() getInfoProperties() putMessage() setInfoProperties() disableMessagingNotification() setInfoProperties() getMessage() remove() openFolder() close() getContent() createFolder() remove() remove()

Figure 2: Package Overview: Application and Service Interfaces

7 The Service Interface Specifications

7.1 Interface Specification Format

This clause defines the interfaces, methods and parameters that form a part of the API specification. The Unified Modelling Language (UML) is used to specify the interface classes. The general format of an interface specification is described below.

7.1.1 Interface Class

This shows a UML interface class description of the methods supported by that interface, and the relevant parameters and types. The Service and Framework interfaces for enterprise-based client applications are denoted by classes with name Ip<name>. The callback interfaces to the applications are denoted by classes with name IpApp<name>. For the interfaces between a Service and the Framework, the Service interfaces are typically denoted by classes with name IpSvc<name>, while the Framework interfaces are denoted by classes with name IpFw<name>.

7.1.2 Method descriptions

Each method (API method "call") is described. Both synchronous and asynchronous methods are used in the API. Asynchronous methods are identified by a 'Req' suffix for a method request, and, if applicable, are served by asynchronous methods identified by either a 'Res' or 'Err' suffix for method results and errors, respectively. To handle responses and reports, the application or service developer must implement the relevant IpApp<name> or IpSvc<name> interfaces to provide the callback mechanism.

ETSI

13 ETSI ES 204 915-9 V1.1.1 (2008-05)

7.1.3 Parameter descriptions

Each method parameter and its possible values are described. Parameters described as 'in' represent those that must have a value when the method is called. Those described as 'out' are those that contain the return result of the method when the method returns.

7.1.4 State Model

If relevant, a state model is shown to illustrate the states of the objects that implement the described interface.

7.2 Base Interface

7.2.1 Interface Class IpInterface

All application, framework and service interfaces inherit from the following interface. This API Base Interface does not provide any additional methods.

<<Interface>> IpInterface

7.3 Service Interfaces

7.3.1 Overview

The Service Interfaces provide the interfaces into the capabilities of the underlying network - such as call control, user interaction, messaging, mobility and connectivity management.

The interfaces that are implemented by the services are denoted as 'Service Interface'. The corresponding interfaces that must be implemented by the application (e.g. for API callbacks) are denoted as 'Application Interface'.

7.4 Generic Service Interface

7.4.1 Interface Class IpService

Inherits from: IpInterface; All service interfaces inherit from the following interface.

<<Interface>> IpService

setCallback (appInterface : in IpInterfaceRef) : void setCallbackWithSessionID (appInterface : in IpInterfaceRef, sessionID : in TpSessionID) : void

ETSI

14 ETSI ES 204 915-9 V1.1.1 (2008-05)

7.4.1.1 Method setCallback()

This method specifies the reference address of the callback interface that a service uses to invoke methods on the application. It is not allowed to invoke this method on an interface that uses SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used. Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. Raises TpCommonExceptions, P_INVALID_INTERFACE_TYPE

7.4.1.2 Method setCallbackWithSessionID()

This method specifies the reference address of the application's callback interface that a service uses for interactions associated with a specific session ID: e.g. a specific call, or call leg. It is not allowed to invoke this method on an interface that does not use SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. sessionID : in TpSessionID Specifies the session for which the service can invoke the application's callback interface. Raises TpCommonExceptions, P_INVALID_SESSION_ID, P_INVALID_INTERFACE_TYPE

8 Generic Messaging Interface Classes

The Generic Messaging Service interface (GMS) is used by applications to send, store and receive messages. GMS has voice mail and electronic mail as the messaging mechanisms. The messaging service interface can be used by both. A messaging system is assumed to have the following entities:

  • Mailboxes. This is the application's main entry point to the messaging system. The framework may or may not need to authenticate an application before it accesses a mailbox.
  • Folders. A mailbox has at least the inbox and the outbox as folders. The name of the inbox is "INBOX", and the name of the outbox is "OUTBOX". These folders may have sub-folders. The names of these sub-folders are appended to their parents' names with '/' as the delimiter. For instance, if there is a sub-folder in INBOX called 'Personal' and a sub-folder in that folder called 'archive' then the fully qualified names, which are required for all operations, of the four folders are 'INBOX', 'OUTBOX', 'INBOX/Personal', and 'INBOX/Personal/archive'. The names are case sensitive. A messaging service may have other folders other than the inbox and the outbox.
  • Messages. Messages are stored in folders. Messages usually have properties associated with them. The GMS is represented by the IpMessagingManager, IpMailbox, IpMailboxFolder and IpMessage interfaces to services provided by the network. To handle responses and reports, the developer must implement IpAppMessagingManager to provide the callback mechanism for the Messaging service manager. ETSI

15 ETSI ES 204 915-9 V1.1.1 (2008-05)

8.1 Interface Class IpMessagingManager

Inherits from: IpService.

This interface is the 'service manager' interface for the Generic Messaging Service. The generic messaging manager interface provides the management functions to the generic messaging service. The application programmer can use this interface to open mailbox objects and also to enable or disable event notifications. <<Interface>> IpMessagingManager

openMailbox (mailboxID : in TpAddress, authenticationInfo : in TpString) : TpMailboxIdentifier enableMessagingNotification (appInterface : in IpAppMessagingManagerRef, eventCriteria : in TpMessagingEventCriteria) : TpAssignmentID disableMessagingNotification (assignmentID : in TpAssignmentID) : void

8.1.1 Method openMailbox()

This method opens a mailbox for the application. The session ID for use by the application is returned. Authentication information may be needed to open the mailbox.

The application can open more than one mailbox at the same time. The application is not allowed to open the same mailbox more than once at the same time.

Returns: mailboxReference.

Specifies the reference to the opened mailbox.

Parameters mailboxID : in TpAddress Specifies the identity of the mailbox. If the mailbox chosen is invalid, the error code P_GMS_INVALID_MAILBOX is returned.

authenticationInfo : in TpString Authentication information needed for the application to open a mailbox in the messaging system, such as a key or password. If the authentication process is considered strong enough for the application to gain access to the mailbox, then the authentication information will be an empty string. If the authentication information is not valid, the error code P_GMS_INVALID_AUTHENTICATION_INFORMATION is returned.

Returns TpMailboxIdentifier Raises TpCommonExceptions, P_GMS_INVALID_MAILBOX, P_GMS_INVALID_AUTHENTICATION_INFORMATION ETSI

16 ETSI ES 204 915-9 V1.1.1 (2008-05)

8.1.2 Method enableMessagingNotification()

This method is used to enable messaging notifications so that events can be sent to the application. Returns: assignmentID.

Specifies the ID assigned by the generic messaging manager interface for this newly-enabled event notification. Parameters appInterface : in IpAppMessagingManagerRef If this parameter is set (i.e. not NULL) it specifies a reference to the application interface, which is used for callbacks. If set to NULL, the application interface defaults to the interface specified via the setCallback() method. eventCriteria : in TpMessagingEventCriteria Specifies the event specific criteria used by the application to define the event required. Returns TpAssignmentID Raises TpCommonExceptions, P_INVALID_CRITERIA

8.1.3 Method disableMessagingNotification()

This method is used by the application to disable call notifications. Parameters assignmentID : in TpAssignmentID Specifies the assignment ID given by the generic messaging manager interface when the previous enableNotification() was called. If the assignment ID does not correspond to one of the valid assignment IDs, the framework will return the error code P_INVALID_ASSIGNMENTID.

Raises TpCommonExceptions, P_INVALID_ASSIGNMENT_ID

8.2 Interface Class IpAppMessagingManager

Inherits from: IpInterface.

The client application developer implements the generic messaging manager application interface to handle mailbox termination, mailbox fault and messaging event notifications.

ETSI

17 ETSI ES 204 915-9 V1.1.1 (2008-05)

<<Interface>> IpAppMessagingManager

mailboxTerminated (mailbox : in IpMailboxRef, mailboxSessionID : in TpSessionID) : void mailboxFaultDetected (mailbox : in IpMailboxRef, mailboxSessionID : in TpSessionID, fault : in TpMessagingFault) : void messagingEventNotify (messagingManager : in IpMessagingManagerRef, eventInfo : in TpMessagingEventInfo, assignmentID : in TpAssignmentID) : void messagingNotificationTerminated () : void

8.2.1 Method mailboxTerminated()

This method indicates to the application that the mailbox has terminated or closed abnormally. No further communication will be possible between the mailbox and application. Parameters mailbox : in IpMailboxRef Specifies the interface of the mailbox that has terminated.

mailboxSessionID : in TpSessionID Specifies the mailbox session ID of the mailbox that has terminated.

8.2.2 Method mailboxFaultDetected()

This method indicates to the application that a fault has been detected in the mailbox. Parameters mailbox : in IpMailboxRef Specifies the interface of the mailbox in which the fault has been detected. mailboxSessionID : in TpSessionID Specifies the mailbox session ID of the mailbox in which the fault has been detected. fault : in TpMessagingFault Specifies the fault that has been detected.

8.2.3 Method messagingEventNotify()

This method notifies the application of the arrival of a messaging-related event. Parameters messagingManager : in IpMessagingManagerRef Specifies the reference to the messaging manager interface to which the notification relates. ETSI

18 ETSI ES 204 915-9 V1.1.1 (2008-05)

eventInfo : in TpMessagingEventInfo Specifies data associated with this event.

assignmentID : in TpAssignmentID Specifies the assignment id which was returned by the enableNotification() method. The application can use assignment id to associate events with event specific criteria and to act accordingly.

8.2.4 Method messagingNotificationTerminated()

This method indicates to the application that all event notifications have been terminated (for example, due to faults detected).

Parameters No Parameters were identified for this method.

8.3 Interface Class IpMailbox

Inherits from: IpService.

...

Contents

  • 1 Scope
  • 2 References
  • 3 Definitions and abbreviations
  • 3.1 Definitions
  • 3.2 Abbreviations
  • 4 Generic Messaging SCF
  • 8 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5 Sequence Diagrams
  • 5.1 Prepare Mailbox
  • 9 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5.2 Open Mailbox
  • 5.3 Get Message
  • 10 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5.4 Get Folder Information
  • 11 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 5.5 Close Mailbox
  • 6 Class Diagrams
  • 12 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 13 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 7.2 Base Interface
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 14 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8 Generic Messaging Interface Classes
  • 15 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.1 Interface Class IpMessagingManager
  • 16 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.2 Interface Class IpAppMessagingManager
  • 17 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 18 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.3 Interface Class IpMailbox
  • 19 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 20 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 21 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 22 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.4 Interface Class IpMailboxFolder
  • 23 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 24 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 25 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 8.5 Interface Class IpMessage
  • 26 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 27 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 28 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 9 State Transition Diagrams
  • 29 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 10 Data Definitions
  • 10.1 Event notification Definitions
  • 30 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 10.2 Generic Messaging Data Definitions
  • 31 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 32 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 33 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 34 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 11 Exception Classes
  • 35 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 36 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 37 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 38 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 39 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 40 ETSI ES 204 915-9 V1.1.1 (2008-05)
  • 41 ETSI ES 204 915-9 V1.1.1 (2008-05)

1 Scope

The present document is part 9 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).

The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.

The present document specifies the Generic Messaging Service Capability Feature (SCF) aspects of the interface. All aspects of the Generic Messaging SCF are defined here, these being:

  • Sequence Diagrams.
  • Class Diagrams.
  • Interface specification plus detailed method descriptions.
  • State Transition diagrams.
  • Data Definitions.
  • IDL Description of the interfaces.

The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

2 References

The references listed in clause 2 of ES 204 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

ETSI ES 204 915-1: "Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6)".

3 Definitions and abbreviations

3.1 Definitions

For the purposes of the present document, the terms and definitions given in ES 204 915-1 apply.

3.2 Abbreviations

For the purposes of the present document, the abbreviations given in ES 204 915-1 apply.

4 Generic Messaging SCF

The following clauses describe each aspect of the Generic Messaging Service Capability Feature (SCF). The order is as follows:

  • The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented.
  • The Class relationships clause shows how each of the interfaces applicable to the SCF, relate to one another. ETSI

SIST ES 204 915-9 V1.1.1:2008

8 ETSI ES 204 915-9 V1.1.1 (2008-05)

  • The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part.
  • The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified in the Interface specification or events occurring in the underlying networks cause state transitions.
  • The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and are therefore defined within the Common Data types part ES 204 915-2.

An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at least one valid set of values for the parameters of that method. Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method.

5 Sequence Diagrams

5.1 Prepare Mailbox

IpAppLogic IpAppMess agingManager IpMessagingManager 1: new() 2: enableMessagingNotification( ) 3: messagingEventNotify( ) 4: 'forward event'

1: This message is used by the application to create an object implementing the IpAppMessagingManager interface.

2: This message is used to enable the notification mechanism so that events can be sent to the application. When new mail, that matches the event criteria set in message 2, arrives a message indicating the presence of new mail (not shown) is directed to the object implementing the IpMessagingManager. 3: This message is used to pass the new mail event to the object implementing the IpAppMessagingManager interface.

4: This message is used to forward message 3 to the IpAppLogic. ETSI

SIST ES 204 915-9 V1.1.1:2008

9 ETSI ES 204 915-9 V1.1.1 (2008-05)

5.2 Open Mailbox

: : : IpMailbox IpAppLogic IpMessagingManager 1: openMailbox( ) 2: new()

1: This message requests the object implementing the IpMessagingManager interface to create an object implementing the IpMailbox interface.

2: Assuming that the criteria for creating an object implementing the IpMailbox interface is met, message 2 is used to create it.

5.3 Get Message

: : IpMailbox : IpMailboxFolder : IpMessage IpAppLogic 1: openFolder( ) 2: getInfoAmount( ) 3: getInfoProperties( ) 4: getMessage( ) 5: new()

1: This message requests a folder to be opened and returns a reference to that folder. 2: This message requests the number of folder information properties of the opened folder. 3: This message requests all of the folder information properties. ETSI

SIST ES 204 915-9 V1.1.1:2008

10 ETSI ES 204 915-9 V1.1.1 (2008-05)

4: This message requests a message from the opened mailbox folder. 5: Assuming that the criteria for creating an object implementing the IpMessage interface are met, the (internal) message 5 is used to create it.

5.4 Get Folder Information

IpAppLogic IpMailboxFolder 1: getInfoAmount( ) 2: getInfoProperties( ) 3: getInfoProperties( )

1: This message requests the number of folder information properties of the specified folder. 2: This message requests the first set of folder information properties. 3: This message requests the second set of folder information properties. ETSI

SIST ES 204 915-9 V1.1.1:2008

11 ETSI ES 204 915-9 V1.1.1 (2008-05)

5.5 Close Mailbox

: : IpMailbox IpAppLogic 1: close( )

1: This message requests the object implementing the IpMailbox interface to de-assign.

6 Class Diagrams

<<Interface>> IpService (f ro m c sap i) setCallback() setCallbackWithSessionID() <<Interface>> <<Interface>> <<Interface>> <<Interface>> IpMessagingManager IpMailbox IpMailboxFolder IpMessage (from gms) (from gms) (from gms) (from gms) 00..n..n 11 00..n..n 11 22..n..n 11

Figure 1: Package Overview : Service Interfaces The application generic messaging service package consists of only one IpAppMessagingManager interface. The generic messaging service package consists of one IpMessagingManager interface, zero or more IpMailbox interfaces, zero or more IpMailboxFolder and zero or more IpMessage interfaces. The class diagram in the following figure shows the interfaces that make up the application generic messaging service package and the generic messaging service package. Communication between these packages is done via the +uses the IpMessagingManager channels. Communication with the IpMailbox and IpMailboxFolder interfaces has to be done via the application logic (not shown).

ETSI

SIST ES 204 915-9 V1.1.1:2008

12 ETSI ES 204 915-9 V1.1.1 (2008-05)

<<Interface>> IpInterface (from csapi) <<Interface>> IpAppMessagingManager (from gms) mailboxTerminated() mailboxFaultDetected() messagingEventNotify() messagingNotificationTerminated()

<<uses>> <<Interface>> IpMailbox <<Interface>>

(from gms) IpMailboxFolder <<Interface>> (from gms) <<Interface>> IpMessage (from gms) IpMessagingManager close() (from gms) lock() getInfoAmount() unlock() getInfoProperties() getInfoAmount() openMailbox() getInfoAmount() setInfoProperties() getInfoProperties() 1100....nn 1100....nn 11 22..n..n enableMessagingNotification() getInfoProperties() putMessage() setInfoProperties() disableMessagingNotification() setInfoProperties() getMessage() remove() openFolder() close() getContent() createFolder() remove() remove()

Figure 2: Package Overview: Application and Service Interfaces

7 The Service Interface Specifications

7.1 Interface Specification Format

This clause defines the interfaces, methods and parameters that form a part of the API specification. The Unified Modelling Language (UML) is used to specify the interface classes. The general format of an interface specification is described below.

7.1.1 Interface Class

This shows a UML interface class description of the methods supported by that interface, and the relevant parameters and types. The Service and Framework interfaces for enterprise-based client applications are denoted by classes with name Ip<name>. The callback interfaces to the applications are denoted by classes with name IpApp<name>. For the interfaces between a Service and the Framework, the Service interfaces are typically denoted by classes with name IpSvc<name>, while the Framework interfaces are denoted by classes with name IpFw<name>.

7.1.2 Method descriptions

Each method (API method "call") is described. Both synchronous and asynchronous methods are used in the API. Asynchronous methods are identified by a 'Req' suffix for a method request, and, if applicable, are served by asynchronous methods identified by either a 'Res' or 'Err' suffix for method results and errors, respectively. To handle responses and reports, the application or service developer must implement the relevant IpApp<name> or IpSvc<name> interfaces to provide the callback mechanism.

ETSI

SIST ES 204 915-9 V1.1.1:2008

13 ETSI ES 204 915-9 V1.1.1 (2008-05)

7.1.3 Parameter descriptions

Each method parameter and its possible values are described. Parameters described as 'in' represent those that must have a value when the method is called. Those described as 'out' are those that contain the return result of the method when the method returns.

7.1.4 State Model

If relevant, a state model is shown to illustrate the states of the objects that implement the described interface.

7.2 Base Interface

7.2.1 Interface Class IpInterface

All application, framework and service interfaces inherit from the following interface. This API Base Interface does not provide any additional methods.

<<Interface>> IpInterface

7.3 Service Interfaces

7.3.1 Overview

The Service Interfaces provide the interfaces into the capabilities of the underlying network - such as call control, user interaction, messaging, mobility and connectivity management.

The interfaces that are implemented by the services are denoted as 'Service Interface'. The corresponding interfaces that must be implemented by the application (e.g. for API callbacks) are denoted as 'Application Interface'.

7.4 Generic Service Interface

7.4.1 Interface Class IpService

Inherits from: IpInterface; All service interfaces inherit from the following interface.

<<Interface>> IpService

setCallback (appInterface : in IpInterfaceRef) : void setCallbackWithSessionID (appInterface : in IpInterfaceRef, sessionID : in TpSessionID) : void

ETSI

SIST ES 204 915-9 V1.1.1:2008

14 ETSI ES 204 915-9 V1.1.1 (2008-05)

7.4.1.1 Method setCallback()

This method specifies the reference address of the callback interface that a service uses to invoke methods on the application. It is not allowed to invoke this method on an interface that uses SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used. Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. Raises TpCommonExceptions, P_INVALID_INTERFACE_TYPE

7.4.1.2 Method setCallbackWithSessionID()

This method specifies the reference address of the application's callback interface that a service uses for interactions associated with a specific session ID: e.g. a specific call, or call leg. It is not allowed to invoke this method on an interface that does not use SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. sessionID : in TpSessionID Specifies the session for which the service can invoke the application's callback interface. Raises TpCommonExceptions, P_INVALID_SESSION_ID, P_INVALID_INTERFACE_TYPE

8 Generic Messaging Interface Classes

The Generic Messaging Service interface (GMS) is used by applications to send, store and receive messages. GMS has voice mail and electronic mail as the messaging mechanisms. The messaging service interface can be used by both. A messaging system is assumed to have the following entities:

  • Mailboxes. This is the application's main entry point to the messaging system. The framework may or may not need to authenticate an application before it accesses a mailbox.
  • Folders. A mailbox has at least the inbox and the outbox as folders. The name of the inbox is "INBOX", and the name of the outbox is "OUTBOX". These folders may have sub-folders. The names of these sub-folders are appended to their parents' names with '/' as the delimiter. For instance, if there is a sub-folder in INBOX called 'Personal' and a sub-folder in that folder called 'archive' then the fully qualified names, which are required for all operations, of the four folders are 'INBOX', 'OUTBOX', 'INBOX/Personal', and 'INBOX/Personal/archive'. The names are case sensitive. A messaging service may have other folders other than the inbox and the outbox.
  • Messages. Messages are stored in folders. Messages usually have properties associated with them. The GMS is represented by the IpMessagingManager, IpMailbox, IpMailboxFolder and IpMessage interfaces to services provided by the network. To handle responses and reports, the developer must implement IpAppMessagingManager to provide the callback mechanism for the Messaging service manager. ETSI

SIST ES 204 915-9 V1.1.1:2008

15 ETSI ES 204 915-9 V1.1.1 (2008-05)

8.1 Interface Class IpMessagingManager

Inherits from: IpService.

This interface is the 'service manager' interface for the Generic Messaging Service. The generic messaging manager interface provides the management functions to the generic messaging service. The application programmer can use this interface to open mailbox objects and also to enable or disable event notifications. <<Interface>> IpMessagingManager

openMailbox (mailboxID : in TpAddress, authenticationInfo : in TpString) : TpMailboxIdentifier enableMessagingNotification (appInterface : in IpAppMessagingManagerRef, eventCriteria : in TpMessagingEventCriteria) : TpAssignmentID disableMessagingNotification (assignmentID : in TpAssignmentID) : void

8.1.1 Method openMailbox()

This method opens a mailbox for the application. The session ID for use by the application is returned. Authentication information may be needed to open the mailbox.

The application can open more than one mailbox at the same time. The application is not allowed to open the same mailbox more than once at the same time.

Returns: mailboxReference.

Specifies the reference to the opened mailbox.

Parameters mailboxID : in TpAddress Specifies the identity of the mailbox. If the mailbox chosen is invalid, the error code P_GMS_INVALID_MAILBOX is returned.

authenticationInfo : in TpString Authentication information needed for the application to open a mailbox in the messaging system, such as a key or password. If the authentication process is considered strong enough for the application to gain access to the mailbox, then the authentication information will be an empty string. If the authentication information is not valid, the error code P_GMS_INVALID_AUTHENTICATION_INFORMATION is returned.

Returns TpMailboxIdentifier Raises TpCommonExceptions, P_GMS_INVALID_MAILBOX, P_GMS_INVALID_AUTHENTICATION_INFORMATION ETSI

SIST ES 204 915-9 V1.1.1:2008

16 ETSI ES 204 915-9 V1.1.1 (2008-05)

8.1.2 Method enableMessagingNotification()

This method is used to enable messaging notifications so that events can be sent to the application. Returns: assignmentID.

Specifies the ID assigned by the generic messaging manager interface for this newly-enabled event notification. Parameters appInterface : in IpAppMessagingManagerRef If this parameter is set (i.e. not NULL) it specifies a reference to the application interface, which is used for callbacks. If set to NULL, the application interface defaults to the interface specified via the setCallback() method. eventCriteria : in TpMessagingEventCriteria Specifies the event specific criteria used by the application to define the event required. Returns TpAssignmentID Raises TpCommonExceptions, P_INVALID_CRITERIA

8.1.3 Method disableMessagingNotification()

This method is used by the application to disable call notifications. Parameters assignmentID : in TpAssignmentID Specifies the assignment ID given by the generic messaging manager interface when the previous enableNotification() was called. If the assignment ID does not correspond to one of the valid assignment IDs, the framework will return the error code P_INVALID_ASSIGNMENTID.

Raises TpCommonExceptions, P_INVALID_ASSIGNMENT_ID

8.2 Interface Class IpAppMessagingManager

Inherits from: IpInterface.

The client application developer implements the generic messaging manager application interface to handle mailbox termination, mailbox fault and messaging event notifications.

ETSI

SIST ES 204 915-9 V1.1.1:2008

17 ETSI ES 204 915-9 V1.1.1 (2008-05)

<<Interface>> IpAppMessagingManager

mailboxTerminated (mailbox : in IpMailboxRef, mailboxSessionID : in TpSessionID) : void mailboxFaultDetected (mailbox : in IpMailboxRef, mailboxSessionID : in TpSessionID, fault : in TpMessagingFault) : void messagingEventNotify (messagingManager : in IpMessagingManagerRef, eventInfo : in TpMessagingEventInfo, assignmentID : in TpAssignmentID) : void messagingNotificationTerminated () : void

8.2.1 Method mailboxTerminated()

This method indicates to the application that the mailbox has terminated or closed abnormally. No further communication will be possible between the mailbox and application. Parameters mailbox : in IpMailboxRef Specifies the interface of the mailbox that has terminated.

mailboxSessionID : in TpSessionID Specifies the mailbox session ID of the mailbox that has terminated.

8.2.2 Method mailboxFaultDetected()

This method indicates to the application that a fault has been detected in the mailbox. Parameters mailbox : in IpMailboxRef Specifies the interface of the mailbox in which the fault has been detected. mailboxSessionID : in TpSessionID Specifies the mailbox session ID of the mailbox in which the fault has been detected. fault : in TpMessagingFault Specifies the fault that has been detected.

8.2.3 Method messagingEventNotify()

This method notifies the application of the arrival of a messaging-related event. Parameters messagingManager : in IpMessagingManagerRef Specifies the reference to the messaging manager interface to which the notification relates. ETSI

SIST ES 204 915-9 V1.1.1:2008

18 ETSI ES 204 915-9 V1.1.1 (2008-05)

eventInfo : in TpMessagingEventInfo Specifies data associated with this event.

assignmentID : in TpAssignmentID Specifies the assignment id which was returned by the enableNotification() method. The application can use assignment id to associate events with event specific criteria and to act accordingly.

8.2.4 Method messagingNotificationTerminated()

This method indicates to the application that all event notifications have been terminated (for example, due to faults detected).

Parameters No Parameters were identified for this method.

8.3 Interface Class IpMailbox

Inherits from: IpService.

<<Interface>> IpMailbox

...