Package xal.extension.logbook
Class LogbookProvider
java.lang.Object
xal.extension.logbook.LogbookProvider
- Direct Known Subclasses:
ElogProvider,OlogProvider
Abstract class that defines a logbook service provider.
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@ess.eu>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringabstract booleanabstract voidlogout()abstract longabstract longabstract longpost(String[] logbooks, Map<String, List<String>> fields, String textBody, List<Attachment> attachments) abstract longpost(List<Attachment> attachments, String[] defaultLogbooks, Map<String, List<String>> defaultAttributes) abstract longabstract longvoidsetDefaultLogbook(String logbook) final voidsetDefaultServerUrl(String serverUrl) void
-
Constructor Details
-
LogbookProvider
protected LogbookProvider()
-
-
Method Details
-
getServer
-
setServer
-
getDefaultLogbook
- Returns:
- the name of the default logbook
-
setDefaultLogbook
-
getDefaultServerUrl
-
setDefaultServerUrl
-
login
-
logout
public abstract void logout() -
post
public abstract long post(String[] logbooks, Map<String, List<String>> fields, String textBody) throws LogbookException- Parameters:
logbook- Name of the logbooks where the entry should be postedfields- map containing metadata as pair of name of the attribute and valuetextBody- entry body text- Returns:
- the message ID
- Throws:
LogbookException
-
post
public abstract long post(String[] logbooks, Map<String, List<String>> fields, String textBody, List<Attachment> attachments) throws LogbookException- Throws:
LogbookException
-
post
- Throws:
LogbookException
-
post
public abstract long post(String[] defaultLogbooks, Map<String, List<String>> defaultAttributes) throws LogbookException- Throws:
LogbookException
-
post
public abstract long post(List<Attachment> attachments, Map<String, List<String>> defaultAttributes) throws LogbookException- Throws:
LogbookException
-
post
public abstract long post(List<Attachment> attachments, String[] defaultLogbooks, Map<String, List<String>> defaultAttributes) throws LogbookException- Throws:
LogbookException
-