|
SAP NetWeaver '04 | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
| IActionInboxAction | The IActionInboxAction defines an action
which can be performed for an item and is handled by a producer.
|
| IActionInboxCategory | A IActionInboxCategory describes the type of a
IActionInboxNotification. |
| IActionInboxCategoryList | A list of IActionInboxCategorys.
|
| IActionInboxCategoryListIterator | An iterator for a IActionInboxCategoryList.
|
| IActionInboxItem | The stored IActionInboxNotification object for a specific
user.
|
| IActionInboxItemCategory | A IActionInboxItemCategory is a representation of a specific
user's inbox folder for a category. |
| IActionInboxItemCategoryList | A list of IActionInboxItemCategorys.
|
| IActionInboxItemCategoryListIterator | An iterator for the IActionInboxItemCategoryList.
|
| IActionInboxItemList | A list of IActionInboxItems.
|
| IActionInboxItemListIterator | An iterator for the IActionInboxItemList.
|
| IActionInboxItemProducer | A IActionInboxProducer sends
IActionInboxNotifications to the action inbox.
|
| IActionInboxNotification | A IActionInboxNotification is something like a 'semantic event'
which will be stored as a IActionInboxItem in a user's
IActionInboxItemCategory.
|
| IActionInboxService | The IActionInboxService stores
IActionInboxNotificationss grouped by
IActionInboxCategory as IActionInboxItems into
IActionInboxItemCategorys. |
| Class Summary | |
| AbstractActionInboxAction | A base implementation for an IActionInboxAction.
|
| AbstractActionInboxCategory | A base implementation for an IActionInboxCategory.
|
| AbstractActionInboxNotification | A base implementation of a IActionInboxNotification.
|
| ActionInboxItemCategoryComparator | A IActionInboxCategoryComparator.
|
| ActionInboxUtils | Some methods which should make handling of action inbox objects a little bit easier. |
Provides a service that handles notifications by saving them as action
items.
The action inbox service manages an
inbox that is integrated in the Knowledge Management platform. Basically
it provides a link between applications and the action inbox of users.
Applications can use the service to post messages that have to be read
or processed by users.
The main task of the service is to
route the messages from the application to the correct inbox and to
organize the entries in the inbox into predefined categories. In
addition, it enables users to process messages by giving them direct
access to the functions of relevant applications. To process a message,
users simply need to choose an action offered in the inbox. The action
is then directed back to the application which presents the users with
the appropriate functions. It is the task of the service to provide the
direct link between the message and the functions of the application.
The subscription service, which
informs users of updates and changes to content, is
an example of an application that uses the action inbox service. It uses the service to post messages related to subscriptions in
the corresponding
category of a user’s inbox. If the user
wants to perform an action related to subscriptions, like the deletion
or update of a subscription, then he/she can click on a link included in
the message. The action inbox service then provides direct access to
the corresponding functions of the application. The user can access the
functions via the inbox without explicitly calling the subscription
application.
The following explains the
different components that play a role in the action inbox service. An
understanding of the components and how they interact is useful when you
are working with the API.
The main components are the
application, the notification, the service, and the inbox. The
application, also called the producer, generates
notifications that contain all the technical information required by the
action inbox service. The service, acts as an intermediary between the
application and the inbox. It analyses the notifications and then stores
them as messages in the inbox of a user.
In detail, the interaction
between the producer, the service and the inbox is as follows:
The central feature of the inbox is that actions can be performed on its items. Depending on the category an item belongs to, certain predefined actions are permissable. The application must define these actions and handle their execution. For example, if an item is in a subscription category, the subscription application must predefine permitted actions like delete or update and execute them whenever required.
The graphic
illustrates the interrelationship between the main interfaces of the
action inbox service.

The following table explains the
meaning of the central terms used for the action inbox service:
|
Term |
Meaning |
| user | A valid system user |
| category | All messages that are sent and stored in the
action inbox belong to a category, for example, a subscription
service category |
| item category | A category of a specific user (user + category = ItemCategory) |
| notification | A message that is sent from an IActionInboxItemProducer to one or more recipients via the action inbox service. |
| action item | A notification belonging to a specific item
category or a notification belonging to a specific category and a
specific user. (Item Category + Notification = user + category +
notification = action item). It has an ID, description, item
category and producer ID. |
| item | See: action item |
The action inbox API is comprised of a number of interrelated
interfaces that center around the IActionInboxService:
IActionInboxService myActionInbox = (IActionInboxService)myResourceFactory.getServiceFactory()
.getService(IServiceTypesConst.ACTION_INBOX_SERVICE);
if( myActionInbox != null ) {
// create Instance of our item producer
IActionInboxItemProducer myActionInboxItemProducer = new MyServicesActionInboxItemProducer();
// register producer at service
IActionInboxItemCategory myActionInboxCategory = myActionInbox.registerProducer(myActionInboxItemProducer,
"myService");
} else {// We have a problem...
}
The action inbox service can be configured with the parameters shown
in the table.
The parameters are set with the help of the user interface of the
Content Management configuration framework.
For more information, see the document Administering Content
Management.
The parameters in the table that are not required have default
values that are used if no value is specified.
| Property | Required | Description |
| serviceuser | Yes | User used for persisting the items to the userhome repository. |
categories |
Yes | Path to the XML files that describe all known item notifications. Default: /etc/actioninbox |
userhome |
Yes | Path to userhome repository where items for a user are
presisted. Default: /cm/repository_managers/RepositoryManager |
grouphome |
Yes | Path to userhome repository where items for a group are
persisted. Default: /cm/repository_managers/RepositoryManager |
rolehome |
Yes | Path to userhome repository where items for a role are
persisted. Default: /cm/repository_managers/RepositoryManager |
actioninbox |
Yes | Root folder name in userhome
where items are persisted. Default: actioninbox. |
unread |
Yes | Folder name where unread items are stored. |
read |
Yes | Folder name where read items are stored. |
| done | Yes | Folder name where done items are stored. |
doneage |
Yes | Time to live for done items. Default: -1 (unlimited) |
| poolid | Yes | Connection Pool ID for database access (items are persisted in DB as well as in userhome repository) |
The following shows a sample configuration for the subscription service:
| Name | Value |
| serviceuser | notificator_service |
categories |
/etc/actioninbox |
userhome |
userhome |
grouphome |
grouphome |
rolehome |
rolehome |
actioninbox |
actioninbox |
unread |
|
read |
|
| done | |
doneage |
-1 |
| poolid | dbcon_r |
In summary, an application
that wants to use the action inbox service must do the following:

|
SAP NetWeaver '04 | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||