|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOptimizedPullSupport
This interface defines methods used for optimized retrieval
of items from the Provider. For any connector implementation
of this interface is optional. Primarily this interface defines
methods for retrieving delta items for multiple users at the same time.
This concept is also known as bundled pull or aggregated retrieval.
Implementations of this interface is expected to be stateless.
All the state information is provided thro IPullChannel
IProviderConnector,
IPullChannel| Method Summary | |
|---|---|
boolean |
canAssignUserToChannel(IPullChannel channel,
IUser user)
Implementation should check if it is ok to assign the channel to the user. |
Date |
getCurrentSystemTime(String system)
Method that should return the current time at the system. |
String |
getId()
Every IProviderConnector should identify itself with a unique identifer. |
ConnectorResult |
getItems(IPullChannel pullChannel)
Method that gets called to get Items for all users assigned in the pull Channel. |
IPullChannelListener |
getPullChannelListener()
If ProviderConnecor needs to communicate pull channel events like user added, removed etc to the back end it could do so by adding a listener. |
boolean |
supportsOptimization(String system,
String itemType)
Method indicating if Optimized pull is supported for the particular system. |
boolean |
validateUsersAccessRights(IUser user,
String system)
Implementation should check if the user has rights to the system. |
| Method Detail |
|---|
String getId()
IProviderConnector should identify itself with a unique identifer.
boolean supportsOptimization(String system,
String itemType)
system - not null, indicates system for which support is queried.itemType - could be null. If it is null implementation should
just consider if system supports the optimization or not. If itemType
is not null, in addition to system, item Type also needs to be considered.
For example WebflowConnector might support optimization only for uwl.task
and not for uwl.completedtask.
ConnectorResult getItems(IPullChannel pullChannel)
throws ConnectorException
pullChannel, - do not hold reference to this after the method call
ConnectorExceptionIProviderConnector.getItems(com.sap.netweaver.bc.uwl.UWLContext, java.lang.String, com.sap.netweaver.bc.uwl.connect.ConnectorFilter, java.lang.String)IPullChannelListener getPullChannelListener()
Date getCurrentSystemTime(String system)
Calendar,
TimeZone,
Date.getTime()
boolean validateUsersAccessRights(IUser user,
String system)
user - not nullsystem - not null
boolean canAssignUserToChannel(IPullChannel channel,
IUser user)
user - not nullchannel - not null
|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||