|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IActionInboxService stores
IActionInboxNotificationss grouped by
IActionInboxCategory as IActionInboxItems into
IActionInboxItemCategorys.
A IActionInboxCategory represents the different types of the
IActionInboxNotifications. The
IActionInboxNotifications are like 'semantic events' which are
send by the IActionInboxItemProducers.
A IActionInboxNotification is stored as an
ActionInboxItem in a user's
IActionInboxItemCategory.
Copyright 2004 SAP AG
| Method Summary | |
IActionInboxItemList |
deleteItems(IActionInboxItemProducer producer,
java.lang.String categoryID,
java.lang.String[] itemIDs)
Delete several existing action inbox items. |
IActionInboxItemList |
deleteItems(IResourceContext context,
IActionInboxItemList items)
Delete several existing action inbox items. |
IActionInboxItemList |
executeItemActions(IResourceContext context,
java.lang.String actionName,
IActionInboxItemList items)
execute an action on several existing action inbox items. |
IActionInboxCategoryList |
getCategories()
Get the categories. |
IActionInboxCategory |
getCategory(java.lang.String categoryID)
Get a specific category by id. |
IActionInboxItemCategoryList |
getItemCategories(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
Get all item categories for a specific user/group/role. |
IActionInboxItemCategoryList |
getItemCategories(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
java.lang.String[] categoryIDs)
Get specific item categories for a specific user/group/role. |
IActionInboxItemCategory |
getItemCategory(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
IActionInboxCategory category)
Get a specific item category for a specific user/group/role. |
IActionInboxItemCategory |
getItemCategory(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
java.lang.String categoryID)
Get a specific item category for a specific user/group/role. |
IActionInboxItemList |
getItemsFromIDs(IResourceContext context,
java.lang.String categoryID,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
java.lang.String[] itemIDs)
Get a list of items for a given array of ids. |
IActionInboxCategory |
registerProducer(IActionInboxItemProducer itemProducer,
java.lang.String categoryID)
Register an item producer to a category at the IActionInboxService. |
IActionInboxItemList |
send(java.util.Collection recipients,
IActionInboxItemProducer producer,
IActionInboxNotification notification)
Store a notification in several user/group/role's inboxes for a given category as several items (same as send(recipients, producer, notification, false)).
|
IActionInboxItemList |
send(java.util.Collection recipients,
IActionInboxItemProducer producer,
IActionInboxNotification notification,
boolean isLinked)
Store a notification in several user/group/role's inboxes for a given category. |
IActionInboxItemList |
send(com.sapportals.portal.security.usermanagement.IUMPrincipal recipient,
IActionInboxItemProducer producer,
IActionInboxNotification notification)
Store a notification in a user/group/role's inbox for a given category. |
IActionInboxItemList |
sendToUsers(java.util.Collection recipients,
IActionInboxItemProducer producer,
IActionInboxNotification notification,
boolean isLinked)
Store a notification in several user's inboxes for a given category. |
IActionInboxItemList |
sendToUsers(com.sapportals.portal.security.usermanagement.IUMPrincipal recipient,
IActionInboxItemProducer producer,
IActionInboxNotification notification,
boolean isLinked)
Store a notification in a user's inbox for a given category. |
IActionInboxItemList |
setItemsDone(IActionInboxItemProducer producer,
java.lang.String categoryID,
com.sapportals.portal.security.usermanagement.IUser reasonAuthor,
java.lang.String reasonID,
java.lang.String[] itemIDs)
Set several existing action inbox items to 'done'. |
IActionInboxItemList |
setItemsDone(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUser reasonAuthor,
java.lang.String reasonID,
IActionInboxItemList items)
Set several existing action inbox items to 'done'. |
IActionInboxItemList |
setItemsRead(IResourceContext context,
IActionInboxItemList items)
Set several existing action inbox items to 'read'. |
void |
setItemsReadForCategory(IResourceContext context,
IActionInboxItemCategory category)
|
| Methods inherited from interface com.sapportals.wcm.service.IService |
getDescription, getDescription, getID |
| Method Detail |
public IActionInboxCategory registerProducer(IActionInboxItemProducer itemProducer,
java.lang.String categoryID)
throws WcmException
IActionInboxService.itemProducer - the IActionInboxItemProducer to register.categoryID - the String of the category's id, for which
the producer will produce items.IActionInboxCategory the producer registered to.WcmException - if an error occured.
public IActionInboxCategoryList getCategories()
throws WcmException
IActionInboxCategoryList of categories.a - WcmException if an error occurred.
public IActionInboxCategory getCategory(java.lang.String categoryID)
throws WcmException
categoryID - the String with the desired category's id.IActionInboxCategory for the given id.a - WcmException if an error occurred.
public IActionInboxItemCategoryList getItemCategories(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.owner - the IUMPrincipal of the user/group/role to get
the inbox for.IActionInboxItemCategoryList with the inbox
categories for the given user/group/role.
If the specified owner is not a user, the list will contain only
those groups which are not for users only.a - WcmException if an error occurred.
public IActionInboxItemCategoryList getItemCategories(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
java.lang.String[] categoryIDs)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.owner - the IUMPrincipal of the user/group/role to get
the inbox for.categoryIDs - an array of Strings with the ids of
the desired categories.IActionInboxItemCategoryList with the inbox
categories for the given user/group/role and ids.
If the specified owner is not a user, the list will contain only
those groups which are not for users only.a - WcmException if an error occurred.
public IActionInboxItemCategory getItemCategory(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
IActionInboxCategory category)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.owner - the IUMPrincipal of the user/group/role to get
the inbox for.category - the IActionInboxCategory with the category
of the item category to get.IActionInboxItemCategory with the inbox category
for the given user/group/role and id.
Is null if the specified owner is not a user but
the requested category is for users only.a - WcmException if an error occurred.
public IActionInboxItemCategory getItemCategory(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
java.lang.String categoryID)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.owner - the IUMPrincipal of the user/group/role to get
the inbox for.categoryID - the String with the desired category's id.IActionInboxItemCategory with the inbox category
for the given user/group/role and id.
Is null if the specified owner is not a user but
the requested category is for users only.a - WcmException if an error occurred.
public IActionInboxItemList getItemsFromIDs(IResourceContext context,
java.lang.String categoryID,
com.sapportals.portal.security.usermanagement.IUMPrincipal owner,
java.lang.String[] itemIDs)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.categoryID - a String with the id of the category to
get the items for.owner - the IUMPrincipal of the user/group/role to get
the inbox items for.IActionInboxItemList with the list of items for the
given ids.a - WcmException if an error occurred.
public IActionInboxItemList send(com.sapportals.portal.security.usermanagement.IUMPrincipal recipient,
IActionInboxItemProducer producer,
IActionInboxNotification notification)
throws WcmException
recipient - a IUMPrincipal with the owner to send the
notification to.producer - a IActionInboxItemProducer with the producer
of this notification.notification - the IActionInboxNotification to store.IActionInboxItemLists with the succesfully sent
items (might be more than one, if the recipient is not a user
and the category is for users only).WcmException - if an error occured.
public IActionInboxItemList send(java.util.Collection recipients,
IActionInboxItemProducer producer,
IActionInboxNotification notification)
throws WcmException
send(recipients, producer, notification, false)).
If the category is for users only, recipients which are not users will be
automatically resolved.recipients - a Collection of IUMPrincipals
with the users/roles/groups to send the notification to.producer - a IActionInboxItemProducer with the producer
of this notification.notification - the IActionInboxNotification to store.IActionInboxItemLists with the succesfully sent
items.WcmException - if an error occured.
public IActionInboxItemList send(java.util.Collection recipients,
IActionInboxItemProducer producer,
IActionInboxNotification notification,
boolean isLinked)
throws WcmException
recipients - a Collection of IUMPrincipals
with the users/roles/groups to send the notification to.producer - a IActionInboxItemProducer with the producer
of this notification.notification - the IActionInboxNotification to store.isLinked - a boolean true, if the
notification should be treated as a linked notification,
false if not (each notification is a separate item).IActionInboxItemLists with the succesfully sent
items.WcmException - if an error occured.
public IActionInboxItemList sendToUsers(com.sapportals.portal.security.usermanagement.IUMPrincipal recipient,
IActionInboxItemProducer producer,
IActionInboxNotification notification,
boolean isLinked)
throws WcmException
recipients - a IUMPrincipal with the user/role/group to
send the notification to.producer - a IActionInboxItemProducer with the producer
of this notification.notification - the IActionInboxNotification to store.isLinked - a boolean true, if the
notification should be treated as a linked notification,
false if not (each notification is a separate item).IActionInboxItemLists with the succesfully sent
items.WcmException - if an error occured.
public IActionInboxItemList sendToUsers(java.util.Collection recipients,
IActionInboxItemProducer producer,
IActionInboxNotification notification,
boolean isLinked)
throws WcmException
recipients - a Collection of IUMPrincipals
with the users/roles/groups to send the notification to.producer - a IActionInboxItemProducer with the producer
of this notification.notification - the IActionInboxNotification to store.isLinked - a boolean true, if the
notification should be treated as a linked notification,
false if not (each notification is a separate item).IActionInboxItemLists with the succesfully sent
items.WcmException - if an error occured.
public IActionInboxItemList setItemsDone(IActionInboxItemProducer producer,
java.lang.String categoryID,
com.sapportals.portal.security.usermanagement.IUser reasonAuthor,
java.lang.String reasonID,
java.lang.String[] itemIDs)
throws WcmException
producer - a IActionInboxItemProducer with the producer
of this notification.categoryID - the String with the desired category's id.reasonAuthor - a IUser with the user who caused the
'done' state.reasonID - a String with a reason code.itemIDs - an array of Strings with the ids of the
IActionInboxItem to set to 'done'.IActionInboxItemLists with the set items.WcmException - if an error occured.
public IActionInboxItemList setItemsRead(IResourceContext context,
IActionInboxItemList items)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.itemIDs - an array of Strings with the ids of the
IActionInboxItem to set to 'read'.IActionInboxItemLists with the set items.WcmException - if an error occured.
public IActionInboxItemList setItemsDone(IResourceContext context,
com.sapportals.portal.security.usermanagement.IUser reasonAuthor,
java.lang.String reasonID,
IActionInboxItemList items)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.reasonAuthor - a IUser with the user who caused the
'done' state.reasonID - a String with a reason code.itemIDs - an array of Strings with the ids of the
IActionInboxItem to set to 'done'.IActionInboxItemLists with the set items.WcmException - if an error occured.
public IActionInboxItemList deleteItems(IActionInboxItemProducer producer,
java.lang.String categoryID,
java.lang.String[] itemIDs)
throws WcmException
producer - a IActionInboxItemProducer with the producer
of this notification.categoryID - the String with the desired category's id.itemIDs - an array of Strings with the ids of the
IActionInboxItem to set to 'done'.IActionInboxItemLists with the deleted items.WcmException - if an error occured.
public IActionInboxItemList deleteItems(IResourceContext context,
IActionInboxItemList items)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.itemIDs - an array of Strings with the ids of the
IActionInboxItem to delete.IActionInboxItemLists with the deleted items.WcmException - if an error occured.
public IActionInboxItemList executeItemActions(IResourceContext context,
java.lang.String actionName,
IActionInboxItemList items)
throws WcmException
context - the IResourceContext to use for accessing the
inbox.actionName - a String with the name of the action to
excute. The name has to exist in all of the categories the
specified items in the array belong to.itemIDs - an array of Strings with the ids of the
IActionInboxItem to execute the action for.IActionInboxItemLists> with the items the action
has been executed for.WcmException - if an error occured.
public void setItemsReadForCategory(IResourceContext context,
IActionInboxItemCategory category)
throws WcmException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||