|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines item retrieval methods from Provider systems.
The IProviderConnector interface should be implemented by all
the Provider system connectors.
IProviderConnector implementations can use any communication mechanism
to connect to the systems and reteive the Items. For example: EJB call, JCO, Web Service etc.
IProviderConnector implementations are expected to be stateless and hence
thread safe.
IProviderConnector implementation should be registered to IUWLService
and systems to which they can connect should be set up in the UWL configuration.
Without these Items are not retreived from the connector.
If ProviderConnector implementation supports bundling of items for different users, it should implement
IOptimizedPullSupport interface in addition.
IUWLService.registerProviderConnector(com.sap.netweaver.bc.uwl.connect.IProviderConnector),
IActionHandler,
IOptimizedPullSupport,
Item,
ConnectorResult,
ConnectorFilter| Field Summary | |
static String |
ACTIONINBOX_CONNECTOR
Knowledge Management:: Action inbox connector |
static String |
ACTIONINBOX_SYSTEM
|
static String |
ADHOC_WORKFLOW_CONNECTOR_ID
Java AdHow Workflow Connector identifier |
static String |
ADHOC_WORKFLOW_SYSTEM
Java adhoc connector should use this system id |
static String |
ALERT_CONNECTOR_ID
Alert framework connector id |
static String |
GENERIC_ABAP_CONNECTOR
Connnector for any Abap application that wants to send items to UWL |
static String |
WEBFLOW_CONNECTOR_ID
Business Workflow Connector identifier |
| Method Summary | |
IActionHandler |
getActionHandler(String actionHandlerId)
This method is called to get hold of connector specific implementation of action handler. |
Map |
getAllActionsForItem(UWLContext ctx,
Map currentActions,
Item item)
Passes the current actions defined in the configuration to the provider connector and asks for the final Actions Map. |
Attachment[] |
getAttachmentHeaders(UWLContext context,
Item item)
This method is called to retreive the attachment headers for the item. |
String |
getDescription(Item item,
UWLContext context)
This method gets called when description for an item is needed. |
String |
getId()
Every IProviderConnector should identify itself with a unique identifer. |
Item |
getItem(UWLContext ctx,
String systemId,
String externalId)
This method gets called if one item needs to be refreshed. |
ConnectorResult |
getItems(UWLContext context,
String itemType,
ConnectorFilter connectorFilter,
String system)
Method getItems is called to retreive items from the connector.
|
WorkLog |
getLogData(Locale lc,
String processId)
Return workflow log data of a (sub)process with respect to the locale given. |
WorkLog |
getLogData(UWLContext context,
Item item)
Return the workflow log data for the requested item, including both the executed steps and the pending step. |
boolean |
isActionValidForItem(UWLContext ctx,
Item item,
Action action)
This method gives the connector an opportunity to say if an action is invalid for an Item. |
boolean |
isItemValid(UWLContext ctx,
Item item)
Depending upon the configuration settings, this method is called to check if item is still valid for the user before performing any actions on the item. |
boolean |
isLogRetrievalSupported(UWLContext context,
Item item)
Return true if the provider supports workflow log query from an item. |
boolean |
needsRemoteConnection(String systemId)
This method is used to do certain performance optimizations. |
boolean |
populateHollowItem(UWLContext context,
Item item)
Method for populating the incompletely filled Item. |
boolean |
supportsCacheClearance(String system)
By default items are stored in the back end as well as in the UWL cache. |
boolean |
supportsItemType(String itemType)
Someof the connectors may support only specific ItemTypes from provider systems. |
| Field Detail |
public static final String WEBFLOW_CONNECTOR_ID
public static final String ADHOC_WORKFLOW_CONNECTOR_ID
public static final String ADHOC_WORKFLOW_SYSTEM
public static final String ACTIONINBOX_SYSTEM
public static final String ALERT_CONNECTOR_ID
public static final String GENERIC_ABAP_CONNECTOR
public static final String ACTIONINBOX_CONNECTOR
| Method Detail |
public String getId()
IProviderConnector should identify itself with a unique identifer.
public boolean supportsItemType(String itemType)
itemType - String could be null
ItemTypepublic boolean supportsCacheClearance(String system)
public ConnectorResult getItems(UWLContext context,
String itemType,
ConnectorFilter connectorFilter,
String system)
throws ConnectorException
getItems is called to retreive items from the connector.
This method should retreive items for the system value passed.
Parameter connectorFilter is used for certain item types like completed tasks,
to restrict the number of items.
Typically this method is called in a seperate thread. Timeout may occur if this method implementation consumes more time that time out specified in the UWL configuration. In case of timeout result are ignored.
context - contains information regarding user and application context and portal request objectitemType - specifies what types of items are needed, if null or '*' it means all itemsconnectorFilter - specifies additional information regarding time intervals
for which items are needed, it could be null, if null no delta results are supportedsystem - specifies the only system from which items are to be retreived, it is non null
ConnectorException - in case of problems from the provider source
public boolean populateHollowItem(UWLContext context,
Item item)
throws ConnectorException
getItems is called, some of the items may be marked as hollow
by using item.setHollow() method. Such hollow items
could be filled in a second step when populateHollowItem is called.
After calling this method, item is no longer hollow
if no exceptions are thrown by the connector. Typically item
should be marked as hollow in the first step if some of its
non critical attributes can not be retreived in a performant
way and could be retreived later lazily.
context - not nullitem - not null
ConnectorException - in case of problems from the provider source
public String getDescription(Item item,
UWLContext context)
throws ConnectorException
item - not nullcontext - not null
ConnectorException - in case of problems from the provider source
public Attachment[] getAttachmentHeaders(UWLContext context,
Item item)
throws ConnectorException
Implementation of this method need not set the attachments to item
using item.setAttachmentInfo. Caller of this method takes care of it.
context - not nullitem - not null
ConnectorException - in case of problems from the provider sourceIAttachmentConnectorpublic IActionHandler getActionHandler(String actionHandlerId)
actionHandlerId - not null, identifier for the action handler
Action
public Map getAllActionsForItem(UWLContext ctx,
Map currentActions,
Item item)
throws ConnectorException
ctx - not nullcurrentActions - as defined in the configuration XML, not nullitem - not null
ConnectorException - in case of problems from the provider source
public boolean isActionValidForItem(UWLContext ctx,
Item item,
Action action)
ctx - not null contains user info.item - not null item under usageaction - not null, typically taken from the XML
public boolean isItemValid(UWLContext ctx,
Item item)
throws ConnectorException
ctx - contains user informationitem - not null
ConnectorException - in case of problems from the provider sourceIActionHandler.needsItemValidation()
public Item getItem(UWLContext ctx,
String systemId,
String externalId)
throws ConnectorException
ctx - not nullsystemId - system from which to retreive the itemexternalId - externalId of the item in the system
ConnectorException - in case of problems from the provider source. In this case old item in the cache is used.public boolean needsRemoteConnection(String systemId)
systemId - system which UWL is dealing with.
public boolean isLogRetrievalSupported(UWLContext context,
Item item)
public WorkLog getLogData(UWLContext context,
Item item)
throws ConnectorException
context - UWL contextitem - Item to be queried
ConnectorException - in case of problems from the provider source.
public WorkLog getLogData(Locale lc,
String processId)
throws ConnectorException
lc - Locale to retrieve the log dataprocessId - Process id recognized by the provider
ConnectorException - Not supported by the provider or
in case of problems from the provider
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||