Class CombinedConfigurateStorage
java.lang.Object
me.lucko.luckperms.common.storage.implementation.file.AbstractConfigurateStorage
me.lucko.luckperms.common.storage.implementation.file.CombinedConfigurateStorage
- All Implemented Interfaces:
StorageImplementation
Flat-file storage using Configurate
ConfigurationNodes.
The data for users/groups/tracks is stored in a single shared file.-
Field Summary
Fields inherited from class me.lucko.luckperms.common.storage.implementation.file.AbstractConfigurateStorage
dataDirectory, loader, plugin -
Constructor Summary
ConstructorsConstructorDescriptionCombinedConfigurateStorage(LuckPermsPlugin plugin, String implementationName, ConfigurateLoader loader, String fileExtension, String dataFolderName) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBulkUpdate(BulkUpdate bulkUpdate) voidinit()voidvoidprotected ninja.leaping.configurate.ConfigurationNodereadFile(StorageLocation location, String name) Reads a configuration node from the given locationprotected voidsaveFile(StorageLocation location, String name, ninja.leaping.configurate.ConfigurationNode node) Saves a configuration node to the given locationsearchGroupNodes(ConstraintNodeMatcher<N> constraint) searchUserNodes(ConstraintNodeMatcher<N> constraint) voidshutdown()Methods inherited from class me.lucko.luckperms.common.storage.implementation.file.AbstractConfigurateStorage
createAndLoadGroup, createAndLoadTrack, deleteGroup, deletePlayerData, deleteTrack, getImplementationName, getLog, getMeta, getPlayerName, getPlayerUniqueId, getPlugin, loadGroup, loadTrack, loadUser, loadUsers, logAction, processBulkUpdate, readNodes, saveGroup, savePlayerData, saveTrack, saveUser
-
Constructor Details
-
CombinedConfigurateStorage
public CombinedConfigurateStorage(LuckPermsPlugin plugin, String implementationName, ConfigurateLoader loader, String fileExtension, String dataFolderName)
-
-
Method Details
-
readFile
protected ninja.leaping.configurate.ConfigurationNode readFile(StorageLocation location, String name) throws IOException Description copied from class:AbstractConfigurateStorageReads a configuration node from the given location- Specified by:
readFilein classAbstractConfigurateStorage- Parameters:
location- the locationname- the name of the object- Returns:
- the node
- Throws:
IOException- if an io error occurs
-
saveFile
protected void saveFile(StorageLocation location, String name, ninja.leaping.configurate.ConfigurationNode node) throws IOException Description copied from class:AbstractConfigurateStorageSaves a configuration node to the given location- Specified by:
saveFilein classAbstractConfigurateStorage- Parameters:
location- the locationname- the name of the objectnode- the node- Throws:
IOException- if an io error occurs
-
init
- Specified by:
initin interfaceStorageImplementation- Overrides:
initin classAbstractConfigurateStorage- Throws:
IOException
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceStorageImplementation- Overrides:
shutdownin classAbstractConfigurateStorage
-
applyBulkUpdate
- Throws:
Exception
-
getUniqueUsers
- Throws:
IOException
-
searchUserNodes
public <N extends net.luckperms.api.node.Node> List<NodeEntry<UUID,N>> searchUserNodes(ConstraintNodeMatcher<N> constraint) throws Exception - Throws:
Exception
-
loadAllGroups
- Throws:
IOException
-
searchGroupNodes
public <N extends net.luckperms.api.node.Node> List<NodeEntry<String,N>> searchGroupNodes(ConstraintNodeMatcher<N> constraint) throws Exception - Throws:
Exception
-
loadAllTracks
- Throws:
IOException
-