Search in sources :

Example 1 with DbScope

use of com.qlangtech.tis.offline.DbScope in project tis by qlangtech.

the class OfflineDatasourceAction method doDeleteDatasourceDbById.

/**
 * 删除db
 *
 * @param context
 */
@Func(value = PermissionConstant.PERMISSION_DATASOURCE_EDIT)
public void doDeleteDatasourceDbById(Context context) throws Exception {
    Integer id = this.getInt("id");
    Objects.requireNonNull(id, "param id can not be null");
    DbScope dbModel = DbScope.parse(this.getString("dbModel"));
    this.offlineManager.deleteDbById(id, dbModel, this, context);
}
Also used : DbScope(com.qlangtech.tis.offline.DbScope) Func(com.qlangtech.tis.manage.spring.aop.Func)

Aggregations

Func (com.qlangtech.tis.manage.spring.aop.Func)1 DbScope (com.qlangtech.tis.offline.DbScope)1