X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=library%2FBasicLibrary.java;h=f6024eef85025eefc0f0df1ada0b02fd2c2b254a;hb=4536c5cf2d7b8e68768f90d281b3e4974cd26ae9;hp=78f0f6208d098dcaf410e85c631dc3808330a2bd;hpb=b459e462a5c3447d0693674253c40bc7385a4f66;p=fanfix.git diff --git a/library/BasicLibrary.java b/library/BasicLibrary.java index 78f0f62..f6024ee 100644 --- a/library/BasicLibrary.java +++ b/library/BasicLibrary.java @@ -41,11 +41,11 @@ abstract public class BasicLibrary { READ_WRITE, /** The library is ready, but read-only. */ READ_ONLY, - /** The library is invalid (not correctly set up). */ - INVALID, /** You are not allowed to access this library. */ UNAUTHORIZED, - /** The library is currently out of commission. */ + /** The library is invalid, and will never work as is. */ + INVALID, + /** The library is currently out of commission, but may work later. */ UNAVAILABLE; /** @@ -311,7 +311,7 @@ abstract public class BasicLibrary { * * @return the next luid */ - protected abstract int getNextId(); + protected abstract String getNextId(); /** * Delete the target {@link Story}. @@ -741,7 +741,7 @@ abstract public class BasicLibrary { pg.setName("Saving story"); if (luid == null || luid.isEmpty()) { - meta.setLuid(String.format("%03d", getNextId())); + meta.setLuid(getNextId()); } else { meta.setLuid(luid); }