public abstract class NsrCommandSupport<M,S extends NsrService,Q extends org.joyqueue.model.Query> extends Object implements com.jd.laf.web.vertx.Command<com.jd.laf.web.vertx.response.Response>, com.jd.laf.web.vertx.pool.Poolable
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.joyqueue.model.domain.Identity |
operator |
protected S |
service |
protected org.joyqueue.model.domain.User |
session |
protected io.vertx.core.Vertx |
vertx |
| 构造器和说明 |
|---|
NsrCommandSupport() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.jd.laf.web.vertx.response.Response |
add(M model) |
ErrorCode |
addErrorCode() |
void |
clean() |
com.jd.laf.web.vertx.response.Response |
delete(String id) |
ErrorCode |
deleteErrorCode() |
com.jd.laf.web.vertx.response.Response |
execute() |
com.jd.laf.web.vertx.response.Response |
get(String id) |
ErrorCode |
getErrorCode() |
void |
publish(AuditLogMessage.ActionType auditType,
org.joyqueue.model.domain.OperLog.OperType operType,
M model) |
com.jd.laf.web.vertx.response.Response |
update(String id,
M model) |
ErrorCode |
updateErrorCode() |
com.jd.laf.web.vertx.response.Response |
updateStatus(String id,
M model) |
protected S extends NsrService service
protected org.joyqueue.model.domain.User session
protected org.joyqueue.model.domain.Identity operator
protected io.vertx.core.Vertx vertx
public com.jd.laf.web.vertx.response.Response execute()
throws Exception
execute 在接口中 com.jd.laf.web.vertx.Command<com.jd.laf.web.vertx.response.Response>Exceptionpublic void clean()
clean 在接口中 com.jd.laf.web.vertx.pool.Poolablepublic com.jd.laf.web.vertx.response.Response delete(String id) throws Exception
Exceptionpublic com.jd.laf.web.vertx.response.Response update(String id, M model) throws Exception
Exceptionpublic com.jd.laf.web.vertx.response.Response updateStatus(String id, M model) throws Exception
Exceptionpublic ErrorCode addErrorCode()
public ErrorCode deleteErrorCode()
public ErrorCode updateErrorCode()
public ErrorCode getErrorCode()
public void publish(AuditLogMessage.ActionType auditType, org.joyqueue.model.domain.OperLog.OperType operType, M model)
Copyright © 2020 Joyqueue Community. All rights reserved.