Skip to content

Commit

Permalink
Fix javadoc error
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schüth committed Apr 4, 2017
1 parent a2ae544 commit f8f6072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ private void addImportHandler() {
Endpoint endpoint = createEndpoint();
endpoint.path("/import");
endpoint.method(GET);
endpoint.description("Invoke a orientdb graph database import. The latest import file from the import directory will be used for this operation.");
endpoint.description(
"Invoke a orientdb graph database import. The latest import file from the import directory will be used for this operation.");
endpoint.produces(APPLICATION_JSON);
endpoint.exampleResponse(OK, miscExamples.getMessageResponse(), "Database import command was invoked.");
endpoint.handler(rc -> {
Expand Down Expand Up @@ -110,7 +111,7 @@ private void addBackupHandler() {
endpoint.produces(APPLICATION_JSON);
endpoint.exampleResponse(OK, miscExamples.getMessageResponse(), "Incremental backup was invoked.");
endpoint.handler(rc -> {
handler.handleBackup(rc);
handler.handleBackup(new InternalRoutingActionContextImpl(rc));
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@

import com.gentics.mesh.Mesh;
import com.gentics.mesh.context.InternalActionContext;
import com.gentics.mesh.context.impl.InternalRoutingActionContextImpl;
import com.gentics.mesh.core.verticle.handler.AbstractHandler;
import com.gentics.mesh.graphdb.spi.Database;

import io.vertx.core.shareddata.LocalMap;
import io.vertx.ext.web.RoutingContext;
import rx.Single;

/**
Expand All @@ -45,8 +43,7 @@ public AdminHandler(Database db) {
*
* @param ac
*/
public void handleBackup(RoutingContext rc) {
InternalActionContext ac = new InternalRoutingActionContextImpl(rc);
public void handleBackup(InternalActionContext ac) {
db.operateNoTx(() -> {
if (!ac.getUser()
.hasAdminRole()) {
Expand Down

0 comments on commit f8f6072

Please sign in to comment.