|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPushChannel
This interface defines typical methods needed to be used by the ProviderConnector.
A handle to IPushChannel is got by calling IUWLService.getPushChannel()
method. Typically, when certain Action is performed on an Item, it is
necessary to update the Item in the UWL persistence cache.
IPushChannel acts as a communication channel from Provider Connector
to the UWL system.
IPushChannel interface also defines method to push items to UWL.
IUWLService.getPushChannel(),
IProviderConnector,
ConnectorResult| Method Summary | |
|---|---|
void |
attachSubProcess(IProviderConnector pc,
String userWhoCreatedItem,
long parentItemId,
String subProcessId)
Method to attach a sub process with an item. |
boolean |
deleteItem(IProviderConnector pc,
UWLContext uwlContext,
Item item)
Method that deletes the item from the UWL cache. |
void |
deleteSharedItemsWithExternalIds(IProviderConnector pc,
String system,
List externalIds)
This method deletes all shared items with external ids passed. |
boolean |
detachSubProcess(IProviderConnector pc,
UWLContext uwlContext,
long parentItemId,
Action action,
Map actionProperties)
Method to detach a sub process from an item. |
void |
forceRefresh(String userId,
String providerId,
String systemId,
String itemType)
Force the refresh of items for a user from a particular provider and system on a particular item type |
Item |
getItemByKey(ItemKey key)
Connector implementation can get hold of an Item object using this method. |
ItemKey |
getItemKeyByInternalId(long itemId)
Method that returns the Key for item. |
ItemCollection |
getItemsByKey(ItemKey key)
Connector implementation can get hold of an Items object using this method. |
Date |
getLastCachedTime(IProviderConnector pc,
String system,
String userId,
String itemType)
Method to retrieve last cachend time for a user. |
boolean |
isUserActive(String userId)
Method that checks if there is an UWL session existing for the user that is asked for. |
List |
pushItems(IProviderConnector pc,
com.sap.security.api.IUser user,
ConnectorResult pushedItems)
Method used to push items to UWL. |
void |
pushSharedItem(IProviderConnector pc,
Item item,
Set assignedUsers)
This is meant only for Adhoc Workflow Connector. |
boolean |
updateItem(IProviderConnector pc,
UWLContext uwlContext,
Item item)
This method should be called if item is changed in the provider system. |
| Method Detail |
|---|
boolean isUserActive(String userId)
userId -
Date getLastCachedTime(IProviderConnector pc,
String system,
String userId,
String itemType)
pc - userId - neededitemType -
List pushItems(IProviderConnector pc,
com.sap.security.api.IUser user,
ConnectorResult pushedItems)
throws UWLException
pc - Provider Connector that is pushing the item.user - User to whom the items belong, not null.pushedItems - contains information on Items pushed.
UWLException - in case of system problems
void pushSharedItem(IProviderConnector pc,
Item item,
Set assignedUsers)
throws UWLException
Item item = new Items(); //create the item and fill all its fields
item.setShared();
Set users=new HashSet();
users.add("USER.PRIVATE_DATASOURCE.un:test88");
users.add(someIUser.getUniqueId());
users.add("USER.PRIVATE_DATASOURCE.un:testuser1");
try{
uwlReceiver.pushSharedItems( this, item, users);
}catch( UWLException ex){
///oops, something went wrong. log it.
}
pc - item - not null needed.assignedUsers - should contain one or more portal user ids. Do note that UWL always uses the
uniqueID of IUser object and not uniqueName() of the IUser object. If this is empty only items current
user is treated as the assignee. Do note this assignedUsers differs from items attribute assigned users.
This difference arises from the fact that under substition cases, assignedUsers passed in this method
may include substituted users for whom item may not be assigned actually.
UWLException - if any of the assignedUsers is not present in the UM.Item
boolean updateItem(IProviderConnector pc,
UWLContext uwlContext,
Item item)
throws UWLException
pc - the provider connector.uwlContext - could be null, in which case, user's active sessions information in the memory
may not be uptodate.item - the item in question. should belong to the provider connector that calls this method.
UWLException - in case of cache problems
boolean deleteItem(IProviderConnector pc,
UWLContext uwlContext,
Item item)
throws UWLException
pc - not nulluwlContext - could be null, if null, user's active sessions
are not uptodate with the deletion of item. If this method is called from
an IActionHandler code, pass proper uwlContext.item - not null, should have valid externalId,systemId,connectorId. If it is a shared
item it is okey for userId not to be filled in this Item. But it is highly recommended to pass
the user id of atlest one user who is assigned to it.
UWLException - if there is cache related problem or connector is not registered.
Item getItemByKey(ItemKey key)
throws UWLException
UWLException - in case of cache related problems.
ItemCollection getItemsByKey(ItemKey key)
throws UWLException
UWLException - in case of cache related problems.
ItemKey getItemKeyByInternalId(long itemId)
throws UWLException
itemId -
UWLException
void deleteSharedItemsWithExternalIds(IProviderConnector pc,
String system,
List externalIds)
throws UWLException
pc - not nullsystem - system to which these shared items belong toexternalIds, - non null String list of External Identifiers.
UWLException - if there is deletion error
void attachSubProcess(IProviderConnector pc,
String userWhoCreatedItem,
long parentItemId,
String subProcessId)
throws UWLException
pc - connector not nulluserWhoCreatedItem - not null, contains user who is creating ititemId - key of parent item on which a sub process is startedsubProcessId - identifier for the sub proess.
UWLException - if there is cache problem.
boolean detachSubProcess(IProviderConnector pc,
UWLContext uwlContext,
long parentItemId,
Action action,
Map actionProperties)
throws UWLException
pc - connector not nulluwlContext - not nullactionProperties - not null properties passed in the performAction method of IActionHandlerparentItemId - key of item on which a sub process was started earlieraction - terminating action of the sub process, could be null. If action is not null,
if parent item represented by itemId has the same action, parent item's action is invoked.
UWLException - in case of cache problems
void forceRefresh(String userId,
String providerId,
String systemId,
String itemType)
throws UWLException
userId - providerId - systemId - itemType -
UWLException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
-
|
EP-BC-UWL
|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
default
|
EP-BC-UWL
|
|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||