Class UserServiceNext
- java.lang.Object
- com.orchestranetworks.userservice.UserServiceNext
 
 - public final class UserServiceNext extends Object This class provides static methods to create standard outcome values specifying what to do next.- Since:
- 5.8.0
- See Also:
- UserServiceEvent.processEvent(UserServiceEventContext)
 
-   Constructor SummaryConstructors Constructor Description UserServiceNext()
 -   Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static UserServiceEventOutcomenextClose()The user will be redirected to the previous selection.static UserServiceEventOutcomenextClose (String aJavaScriptCommandIfPopup)If the service is opened in a popup, will execute the JavaScript code before closing the popup.static UserServiceEventOutcomenextService (ServiceKey aServiceKey)The current user service will close and a new one will be displayed.static UserServiceEventOutcomenextService (ServiceKey aServiceKey, Adaptation aRecordOrDataSet)The current user service will close, the specified record or dataset will be selected and the specified service started.static UserServiceEventOutcomenextService (ServiceKey aServiceKey, AdaptationHome aDataSpaceOrSnapshot)The current user service will close, the specified dataspace or snapshot will be selected and the specified service started.static UserServiceEventOutcomenextService (ServiceKey aServiceKey, AdaptationTable aTable)The current user service will close, the specified table will be selected and the specified service started.static UserServiceEventOutcomenextTableView (Adaptation aDataSet, String aTableViewPublicationId)The current user service will close and the specified table view will be selected.static UserServiceEventOutcomenextURL (String anURL)The current user service will close and user will be redirected.static UserServiceEventOutcomenextWorkflowView (WorkflowView aWorkflowView)The current user service will close and a workflow view will be selected.static UserServiceEventOutcomenextWorkItem (WorkItemKey aWorkItemKey)The current user service will close and the work item be selected.static UserServiceEventOutcomenextWorkItem (WorkItemKey aWorkItemKey, boolean startWorkItem)The current user service will close and the work item be selected.
 
-   
-   Method Detail- nextClose- public static UserServiceEventOutcome nextClose() The user will be redirected to the previous selection.- Returns:
- the event outcome.
 
 - nextClose- public static UserServiceEventOutcome nextClose(String aJavaScriptCommandIfPopup) If the service is opened in a popup, will execute the JavaScript code before closing the popup.- If the service is not opened in a popup, the user will be redirected to the previous selection. - Parameters:
- aJavaScriptCommandIfPopup- The JavaScript code to execute. This parameter is ignored if the user service is not opened in a popup. Parent windows can be accessed from the JavaScript code using the property- window.parent.
- Returns:
- the event outcome.
 
 - nextService- public static UserServiceEventOutcome nextService(ServiceKey aServiceKey) The current user service will close and a new one will be displayed. Current service selection is unchanged.- This method requires that the service to be displayed is implemented using the UserService API. For other other type of services, including built-ins, use one of the other variants of method - nextService().- Parameters:
- aServiceKey- the key for the service to display. This service must be implemented using the UserService API.
 
 - nextService- public static UserServiceEventOutcome nextService(ServiceKey aServiceKey, AdaptationHome aDataSpaceOrSnapshot) The current user service will close, the specified dataspace or snapshot will be selected and the specified service started.- Parameters:
- aServiceKey- the service key.
- aDataSpaceOrSnapshot- the dataspace or snapshot.
 
 - nextService- public static UserServiceEventOutcome nextService(ServiceKey aServiceKey, Adaptation aRecordOrDataSet) The current user service will close, the specified record or dataset will be selected and the specified service started.- Parameters:
- aServiceKey- the service key.
- aRecordOrDataSet- the record or dataset.
 
 - nextService- public static UserServiceEventOutcome nextService(ServiceKey aServiceKey, AdaptationTable aTable) The current user service will close, the specified table will be selected and the specified service started.- Parameters:
- aServiceKey- the service key.
- aTable- the table.
 
 - nextTableView- public static UserServiceEventOutcome nextTableView(Adaptation aDataSet, String aTableViewPublicationId) The current user service will close and the specified table view will be selected.- Parameters:
- aDataSet- the dataset that contains the table.
- aTableViewPublicationId- the publication id of the table view.
 
 - nextWorkItem- public static UserServiceEventOutcome nextWorkItem(WorkItemKey aWorkItemKey) The current user service will close and the work item be selected.- Parameters:
- aWorkItemKey- the work item key.
 
 - nextWorkItem- public static UserServiceEventOutcome nextWorkItem(WorkItemKey aWorkItemKey, boolean startWorkItem) The current user service will close and the work item be selected.- Parameters:
- aWorkItemKey- the work item key.
- startWorkItem- if- true, and if necessary, the work item will automatically be allocated and started for the current user.
 
 - nextWorkflowView- public static UserServiceEventOutcome nextWorkflowView(WorkflowView aWorkflowView) The current user service will close and a workflow view will be selected.- Parameters:
- aWorkflowView- the workflow view to select.
 
 - nextURL- public static UserServiceEventOutcome nextURL(String anURL) The current user service will close and user will be redirected.- Parameters:
- anURL- the URL to redirect the user to.
- Since:
- 5.8.1
 
 
 
-