X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FRemoteLibrary.java;h=3e0e192d1806abb2e7d4bd270f0e808821c20991;hb=50df0f093afbc78a1d120bbc7c1233fa704688b1;hp=9fa8c66190174bd1a92536b995d181a16bc8744a;hpb=0c410e69d6891b49b88b1d9e12ebe127de5b7edf;p=fanfix.git
diff --git a/src/be/nikiroo/fanfix/library/RemoteLibrary.java b/src/be/nikiroo/fanfix/library/RemoteLibrary.java
index 9fa8c66..3e0e192 100644
--- a/src/be/nikiroo/fanfix/library/RemoteLibrary.java
+++ b/src/be/nikiroo/fanfix/library/RemoteLibrary.java
@@ -62,7 +62,7 @@ public class RemoteLibrary extends BasicLibrary {
* Create a {@link RemoteLibrary} linked to the given server.
*
* Note that the key is structured:
- * xxx(|yyy|wl)(|rw)
+ * xxx(|yyy(|wl)(|bl)(|rw)
*
* Note that anything before the first pipe (|) character is
* considered to be the encryption key, anything after that character is
@@ -77,16 +77,16 @@ public class RemoteLibrary extends BasicLibrary {
*
yyy: the secondary key
* rw: flag to allow read and write access if it is not the
* default on this server
- * wl: flag to allow access to all the stories (bypassing the
- * whitelist if it exists)
+ * bl: flag to bypass the blacklist (if it exists)
+ * wl: flag to bypass the whitelist if it exists
*
*
* Some examples:
*
* - my_key: normal connection, will take the default server
* options
- * - my_key|agzyzz|wl: will ask to bypass the white list (if it
- * exists)
+ * - my_key|agzyzz|wl|bl: will ask to bypass the black list and the
+ * white list (if it exists)
* - my_key|agzyzz|rw: will ask read-write access (if the default
* is read-only)
* - my_key|agzyzz|wl|rw: will ask both read-write access and white
@@ -141,8 +141,7 @@ public class RemoteLibrary extends BasicLibrary {
private Status getStatusDo() {
final Status[] result = new Status[1];
- result[0] = Status.INVALID;
-
+ result[0] = null;
try {
new RemoteConnectAction() {
@Override
@@ -447,7 +446,7 @@ public class RemoteLibrary extends BasicLibrary {
* @throws SSLException
* when the key was not accepted
*/
- public void exit() throws IOException, SSLException {
+ public void stop() throws IOException, SSLException {
connectRemoteAction(new RemoteAction() {
@Override
public void action(ConnectActionClientObject action)
@@ -486,7 +485,7 @@ public class RemoteLibrary extends BasicLibrary {
// The following methods are only used by Save and Delete in BasicLibrary:
@Override
- protected int getNextId() {
+ protected String getNextId() {
throw new java.lang.InternalError("Should not have been called");
}