Class DnDSaveServerOperation
java.lang.Object
com.levigo.jadice.web.demo.enterprise.server.DnDSaveServerOperation
- All Implemented Interfaces:
ServerOperation<DnDServerOperationParameters,
DnDServerOperationMessage>
@Component
public class DnDSaveServerOperation
extends Object
implements ServerOperation<DnDServerOperationParameters,DnDServerOperationMessage>
Saves the selection of the document in the OpenPortfolioFormat in local files. Because the JWT
profile is not available in the document platform the annotations are removed before the data for
the document platform are marshalled.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.levigo.jadice.web.server.ServerOperation
ServerOperation.Request<P>, ServerOperation.ResponseChannel<M>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(ServerOperation.Request<DnDServerOperationParameters> request, ServerOperation.ResponseChannel<DnDServerOperationMessage> responseChannel) Executes the operation asynchronously on the server side.
-
Constructor Details
-
DnDSaveServerOperation
public DnDSaveServerOperation()
-
-
Method Details
-
invoke
public void invoke(ServerOperation.Request<DnDServerOperationParameters> request, ServerOperation.ResponseChannel<DnDServerOperationMessage> responseChannel) throws Exception Description copied from interface:ServerOperation
Executes the operation asynchronously on the server side.- Specified by:
invoke
in interfaceServerOperation<DnDServerOperationParameters,
DnDServerOperationMessage> - Parameters:
request
- The client request containing the configuration for the executionresponseChannel
- The channel which the server uses to notify the client- Throws:
Exception
- In the case of a server side error during the execution of the operation an exception is thrown. Catching this exception on the client side can be used to implement error handling.
-