2019-12-17 18:47:37 +00:00
|
|
|
import RepositoryService from 'consul-ui/services/repository';
|
2020-02-21 16:48:54 +00:00
|
|
|
import { PRIMARY_KEY, SLUG_KEY } from 'consul-ui/models/nspace';
|
2019-12-17 18:47:37 +00:00
|
|
|
|
|
|
|
const modelName = 'nspace';
|
|
|
|
const DEFAULT_NSPACE = 'default';
|
2020-11-09 09:25:35 +00:00
|
|
|
export default class DisabledService extends RepositoryService {
|
|
|
|
getPrimaryKey() {
|
2020-02-21 16:48:54 +00:00
|
|
|
return PRIMARY_KEY;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getSlugKey() {
|
2020-02-21 16:48:54 +00:00
|
|
|
return SLUG_KEY;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getModelName() {
|
2019-12-17 18:47:37 +00:00
|
|
|
return modelName;
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
findAll(configuration = {}) {
|
2019-12-17 18:47:37 +00:00
|
|
|
return Promise.resolve([]);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getActive() {
|
2019-12-17 18:47:37 +00:00
|
|
|
return {
|
|
|
|
Name: DEFAULT_NSPACE,
|
|
|
|
};
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
authorize(dc, nspace) {
|
2019-12-17 18:47:37 +00:00
|
|
|
return Promise.resolve([]);
|
2020-11-09 09:25:35 +00:00
|
|
|
}
|
|
|
|
}
|