Class FilePermissionsExConfiguration<T>
- java.lang.Object
-
- ca.stellardrift.permissionsex.impl.config.FilePermissionsExConfiguration<T>
-
- All Implemented Interfaces:
PermissionsExConfiguration<T>
@ConfigSerializable public final class FilePermissionsExConfiguration<T> extends Object implements PermissionsExConfiguration<T>
Configuration for PermissionsEx.This is designed to be serialized with a Configurate
ObjectMapper.
-
-
Field Summary
Fields Modifier and Type Field Description static org.spongepowered.configurate.ConfigurationOptionsPEX_OPTIONS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.spongepowered.configurate.ConfigurationOptionsdecorateOptions(org.spongepowered.configurate.ConfigurationOptions input)static FilePermissionsExConfiguration<?>fromLoader(org.spongepowered.configurate.loader.ConfigurationLoader<?> loader)static <T> FilePermissionsExConfiguration<T>fromLoader(org.spongepowered.configurate.loader.ConfigurationLoader<?> loader, Class<T> platformConfigClass)ca.stellardrift.permissionsex.datastore.ProtoDataStore<?>getDataStore(String name)ca.stellardrift.permissionsex.datastore.ProtoDataStore<?>getDefaultDataStore()TgetPlatformConfig()Get a configuration containing options only applicable to one implementation of PermissionsExList<String>getServerTags()booleanisDebugEnabled()static org.spongepowered.configurate.ConfigurationNodeloadDefaultConfiguration()static org.spongepowered.configurate.serialize.TypeSerializerCollection.BuilderpopulateSerializers(org.spongepowered.configurate.serialize.TypeSerializerCollection.Builder coll)Register PEX's type serializers with the provided collectionFilePermissionsExConfiguration<T>reload()voidsave()voidvalidate()
-
-
-
Field Detail
-
PEX_OPTIONS
public static final org.spongepowered.configurate.ConfigurationOptions PEX_OPTIONS
-
-
Method Detail
-
decorateOptions
public static org.spongepowered.configurate.ConfigurationOptions decorateOptions(org.spongepowered.configurate.ConfigurationOptions input)
-
fromLoader
public static FilePermissionsExConfiguration<?> fromLoader(org.spongepowered.configurate.loader.ConfigurationLoader<?> loader) throws org.spongepowered.configurate.ConfigurateException
- Throws:
org.spongepowered.configurate.ConfigurateException
-
populateSerializers
public static org.spongepowered.configurate.serialize.TypeSerializerCollection.Builder populateSerializers(org.spongepowered.configurate.serialize.TypeSerializerCollection.Builder coll)
Register PEX's type serializers with the provided collection- Parameters:
coll- The collection to add to- Returns:
- provided collection
-
fromLoader
public static <T> FilePermissionsExConfiguration<T> fromLoader(org.spongepowered.configurate.loader.ConfigurationLoader<?> loader, Class<T> platformConfigClass) throws org.spongepowered.configurate.ConfigurateException
- Throws:
org.spongepowered.configurate.ConfigurateException
-
save
public void save() throws IOException
- Specified by:
savein interfacePermissionsExConfiguration<T>- Throws:
IOException
-
getDataStore
public ca.stellardrift.permissionsex.datastore.ProtoDataStore<?> getDataStore(String name)
- Specified by:
getDataStorein interfacePermissionsExConfiguration<T>
-
getDefaultDataStore
public ca.stellardrift.permissionsex.datastore.ProtoDataStore<?> getDefaultDataStore()
- Specified by:
getDefaultDataStorein interfacePermissionsExConfiguration<T>
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfacePermissionsExConfiguration<T>
-
getServerTags
public List<String> getServerTags()
- Specified by:
getServerTagsin interfacePermissionsExConfiguration<T>
-
validate
public void validate() throws ca.stellardrift.permissionsex.exception.PEBKACException
- Specified by:
validatein interfacePermissionsExConfiguration<T>- Throws:
ca.stellardrift.permissionsex.exception.PEBKACException
-
getPlatformConfig
public T getPlatformConfig()
Description copied from interface:PermissionsExConfigurationGet a configuration containing options only applicable to one implementation of PermissionsEx- Specified by:
getPlatformConfigin interfacePermissionsExConfiguration<T>- Returns:
- The configuration object
-
reload
public FilePermissionsExConfiguration<T> reload() throws IOException
- Specified by:
reloadin interfacePermissionsExConfiguration<T>- Throws:
IOException
-
loadDefaultConfiguration
public static org.spongepowered.configurate.ConfigurationNode loadDefaultConfiguration() throws org.spongepowered.configurate.ConfigurateException
- Throws:
org.spongepowered.configurate.ConfigurateException
-
-