getType();
- /**
- * Get the preference value
- * @return value
- */
- T getValue();
- /**
- * Get the preference name / key
- * @return key name
- */
- String getKey();
-
- boolean isPublicWritable();
- boolean isPublicReadable();
-
- /**
- * Perform a public update by user
- * @param user user name
- * @param value value
- */
- public void setValue(T value, String user);
-
- /**
- * Set the value by the system user
- * @param value value
- */
- public void setValue(T value);
-
- /**
- * Set the value to the given string representation. The value
- * is changed by the system user.
- * @param value string representing the value
- * @throws IllegalArgumentException if the string conversion fails
- */
- public void setValueString(String value) throws IllegalArgumentException;
-
- /**
- * Set the value to the given string representation. The specified
- * user name is used to perform the change.
- *
- * @param value string value
- * @param user user name
- * @throws IllegalArgumentException if string conversion fails
- */
- public void setValueString(String value, String user) throws IllegalArgumentException;
-}
diff --git a/src/main/java/org/aktin/prefs/Preferences.java b/src/main/java/org/aktin/prefs/Preferences.java
deleted file mode 100644
index d6566c2ec53cb018f2c62c82a61df331fd06b9b3..0000000000000000000000000000000000000000
--- a/src/main/java/org/aktin/prefs/Preferences.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.aktin.prefs;
-
-import java.io.IOException;
-/**
- * API for AKTIN preferences.
- *
- * To access preferences, use a CDI injection
- * in your class (e.g with {@code javax.inject.Inject}
- * annotation.
- *
- * @author R.W.Majeed
- *
- */
-public interface Preferences {
- public String getString(String key);
- public Integer getInteger(String key);
-
- public void putString(String key, String value);
- public void putInteger(String key, Integer value);
-
- public Preference> get(String key);
- /**
- * Write the changed preferences to the underlying
- * storage (e.g. database)
- * @throws IOException flush error
- */
- public void flush() throws IOException;
-}
diff --git a/src/main/java/org/aktin/prefs/Validator.java b/src/main/java/org/aktin/prefs/Validator.java
deleted file mode 100644
index 1fb71e5d67ae992fc83a7a997d0ad2fddb28fdf2..0000000000000000000000000000000000000000
--- a/src/main/java/org/aktin/prefs/Validator.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.aktin.prefs;
-
-/**
- * Validates preference settings.
- * A validator may work for one or more preferences,
- * e.g for R executable (one preference) or email server settings (multiple)
- * @author R.W.Majeed
- *
- */
-public interface Validator {
-
-}