public abstract class VerificationStorage extends Object
| Constructor and Description | 
|---|
VerificationStorage()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getNewFileName()
Get a new file name according to the  
PATTERN_FILE_NAME format
 Don't return the file path, just the name (with json extension) | 
static VerificationStorage | 
getStorage()
Get the current verification storage system
 If the storage ID is not found, it will return the instance of  
VoidVerificationStorage | 
static String | 
getStorageId()
Get the storage ID currently used 
 | 
static void | 
init()
Load verification storage 
 | 
abstract CompletableFuture<List<Verificator>> | 
loadAllVerifications(UUID playerId)
Get all verification made previously 
 | 
static void | 
register(String id,
        VerificationStorage storage)
Register a new verification storage 
 | 
abstract CompletableFuture<Void> | 
saveVerification(Verificator account)
Save verification 
 | 
static void | 
setDefaultStorage(String storageId)
Edit the default storage ID 
 | 
static void | 
setStorageId(String storageId)
Edit the current storage ID 
 | 
public abstract CompletableFuture<List<Verificator>> loadAllVerifications(UUID playerId)
playerId - the player UUIDpublic abstract CompletableFuture<Void> saveVerification(Verificator account)
account - the verificator to savepublic static VerificationStorage getStorage()
VoidVerificationStoragepublic static void register(String id, VerificationStorage storage)
id - the storage IDstorage - the storage instancepublic static String getStorageId()
public static String getNewFileName()
PATTERN_FILE_NAME format
 Don't return the file path, just the name (with json extension)public static void setStorageId(String storageId)
storageId - the new storage IDpublic static void setDefaultStorage(String storageId)
storageId - the default storage IDpublic static void init()