summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends/external-backends.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/external-backends/external-backends.js')
-rw-r--r--server/lib/external-backends/external-backends.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/server/lib/external-backends/external-backends.js b/server/lib/external-backends/external-backends.js
index 0bf891e..be32c13 100644
--- a/server/lib/external-backends/external-backends.js
+++ b/server/lib/external-backends/external-backends.js
@@ -9,7 +9,8 @@ class ExternalBackends {
}
getCredentials () {
- return 'If this method gets called the backend class has NOT IMPLEMENTED the getCredentials method!'
+ console.log('If this method gets called the backend class has NOT IMPLEMENTED the getCredentials method!')
+ return null
}
getInstance (type) {
@@ -25,6 +26,20 @@ class ExternalBackends {
const backend = new (require(path.join(__appdir, 'lib', 'external-backends', 'backends', bType)))()
return backend
}
+
+ getSyncTypes () {
+ return []
+ }
+
+ async checkConnection (backend) {
+ console.log('If this method gets called the backend class has NOT IMPLEMENTED the checkConnection method!')
+ return null
+ }
+
+ // Return an empty array [] if the backends doesn't have such a function.
+ async getObjectTypes (credentials) {
+ return []
+ }
}
module.exports = ExternalBackends