Uses of Enum Class
nl.pim16aap2.animatedarchitecture.core.structures.PermissionLevel
Packages that use PermissionLevel
Package
Description
This package contains command definitions and command factories used by this project, as well as various base command
classes and interfaces.
This package contains managers that manage different certain aspects of the plugin.
This package contains storage-related classes, including storage interfaces, SQLite database storage classes, and
more.
Contains the storage implementation for SQLite.
This package contains classes that define, manipulate, and manage structures.
This package contains classes and interfaces related to retrieving structures from the database.
This package contains classes responsible for handling commands.
-
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.core.commands
Fields in nl.pim16aap2.animatedarchitecture.core.commands declared as PermissionLevelModifier and TypeFieldDescriptionprotected static final PermissionLevelAddOwner.DEFAULT_PERMISSION_LEVELThe default value to use forAddOwner.targetPermissionLevelwhen none is specified.Methods in nl.pim16aap2.animatedarchitecture.core.commands that return PermissionLevelMethods in nl.pim16aap2.animatedarchitecture.core.commands with parameters of type PermissionLevelModifier and TypeMethodDescriptionprotected CompletableFuture<Optional<Structure>> BaseCommand.getStructure(StructureRetriever doorRetriever, PermissionLevel permissionLevel) Attempts to get anStructurebased on the providedStructureRetrieverFactoryand the currentICommandSender.CommandFactory.newAddOwner(ICommandSender commandSender, StructureRetriever doorRetriever, IPlayer targetPlayer, PermissionLevel targetPermissionLevel) Constructors in nl.pim16aap2.animatedarchitecture.core.commands with parameters of type PermissionLevelModifierConstructorDescriptionDelayedInput(IPlayer targetPlayer, @Nullable PermissionLevel targetPermissionLevel) -
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.core.managers
Methods in nl.pim16aap2.animatedarchitecture.core.managers with parameters of type PermissionLevelModifier and TypeMethodDescriptionDatabaseManager.addOwner(Structure structure, IPlayer player, PermissionLevel permission) DatabaseManager.addOwner(Structure structure, IPlayer player, PermissionLevel permission, @Nullable IPlayer responsible) Adds a player as owner to aStructureat a given level of ownership.DatabaseManager.getIdentifiersFromPartial(String input, @Nullable IPlayer player, PermissionLevel maxPermission, Collection<Property<?>> properties) Retrieves allDatabaseManager.StructureIdentifiers that start with the provided input.DatabaseManager.getStructures(IPlayer player, String name, PermissionLevel maxPermission) Gets allStructureowned by a player with a specific name. -
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.core.storage
Methods in nl.pim16aap2.animatedarchitecture.core.storage with parameters of type PermissionLevelModifier and TypeMethodDescriptionbooleanIStorage.addOwner(long structureUID, PlayerData player, PermissionLevel permission) Adds a player as owner of a structure with at a certain permission level to a structure.IStorage.getPartialIdentifiers(String input, @Nullable IPlayer player, PermissionLevel maxPermission, Collection<Property<?>> properties) Retrieves allDatabaseManager.StructureIdentifiers that start with the provided input.IStorage.getStructures(UUID playerUUID, String structureName, PermissionLevel maxPermission) Gets all the structures with the given name, owned by the player with at least a certain permission level.IStorage.getStructures(UUID playerUUID, PermissionLevel maxPermission) Gets all the structures owned by a given player with at least a certain permission level. -
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.core.storage.sqlite
Methods in nl.pim16aap2.animatedarchitecture.core.storage.sqlite with parameters of type PermissionLevelModifier and TypeMethodDescriptionbooleanSQLiteJDBCDriverConnection.addOwner(long structureUID, PlayerData player, PermissionLevel permission) SQLiteJDBCDriverConnection.getPartialIdentifiers(String input, @Nullable IPlayer player, PermissionLevel maxPermission, Collection<Property<?>> properties) SQLiteJDBCDriverConnection.getStructures(UUID playerUUID, String structureName, PermissionLevel maxPermission) SQLiteJDBCDriverConnection.getStructures(UUID playerUUID, PermissionLevel maxPermission) -
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.core.structures
Methods in nl.pim16aap2.animatedarchitecture.core.structures that return PermissionLevelModifier and TypeMethodDescriptionstatic @Nullable PermissionLevelRetrieves thePermissionLevelfrom its name.static @Nullable PermissionLevelPermissionLevel.fromValue(int id) Retrieves thePermissionLevelmapped to a given id.StructureAttribute.getPermissionLevel()The minimum level of ownership required to access an attribute.StructureOwner.permission()Returns the value of thepermissionrecord component.static PermissionLevelReturns the enum constant of this class with the specified name.static PermissionLevel[]PermissionLevel.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in nl.pim16aap2.animatedarchitecture.core.structures that return types with arguments of type PermissionLevelModifier and TypeMethodDescriptionstatic List<PermissionLevel> PermissionLevel.getValues()Retrieves an unmodifiable list of all values.Methods in nl.pim16aap2.animatedarchitecture.core.structures with parameters of type PermissionLevelModifier and TypeMethodDescriptionbooleanStructureAttribute.canAccessWith(PermissionLevel permissionLevel) Checks if a given permission level has access to this attribute.booleanPermissionLevel.isLowerThan(PermissionLevel other) Checks if the current permission is lower than other permission level.booleanPermissionLevel.isLowerThanOrEquals(PermissionLevel other) Checks if the current permission is lower than or equal to the other permission level.booleanIStructureConst.isOwner(UUID player, PermissionLevel permissionLevel) Checks if a player with a given UUID is a (co-)owner of this structure with a given level of ownership.default booleanIStructureConst.isOwner(IPlayer player, PermissionLevel permissionLevel) Checks if a player with a given UUID is a (co-)owner of this structure with a given level of ownership.booleanStructure.isOwner(UUID uuid, PermissionLevel permissionLevel) booleanStructureSnapshot.isOwner(UUID uuid, PermissionLevel permissionLevel) Constructors in nl.pim16aap2.animatedarchitecture.core.structures with parameters of type PermissionLevelModifierConstructorDescriptionStructureOwner(long structureUID, PermissionLevel permission, PlayerData playerData) Creates an instance of aStructureOwnerrecord class. -
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.core.structures.retriever
Fields in nl.pim16aap2.animatedarchitecture.core.structures.retriever declared as PermissionLevelModifier and TypeFieldDescriptionstatic final PermissionLevelStructureRetrieverFactory.DEFAULT_PERMISSION_LEVELThe default permission level to use when searching for structures when not specified.Methods in nl.pim16aap2.animatedarchitecture.core.structures.retriever with parameters of type PermissionLevelModifier and TypeMethodDescriptionabstract CompletableFuture<Optional<Structure>> StructureRetriever.getStructure(IPlayer player, PermissionLevel permissionLevel) Gets the structure that is referenced by thisStructureRetrieverand owned by the provided player if exactly 1 structure matches the description.StructureRetriever.getStructure(ICommandSender commandSender, PermissionLevel permissionLevel) Gets the structure referenced by thisStructureRetriever.StructureRetriever.getStructureInteractive(IPlayer player, PermissionLevel permissionLevel) Attempts to retrieve a structure from its specification (seeStructureRetriever.getStructure(IPlayer, PermissionLevel)).StructureRetriever.getStructures(IPlayer player, PermissionLevel permissionLevel) Gets all structures referenced by thisStructureRetrieverwhere the provided player is a (co)owner of with any permission level.StructureRetriever.getStructures(ICommandSender commandSender, PermissionLevel permissionLevel) Gets all structures referenced by thisStructureRetriever.StructureRetrieverFactory.search(ICommandSender commandSender, String input, PermissionLevel maxPermission, Collection<Property<?>> properties) StructureRetrieverFactory.search(ICommandSender commandSender, String input, StructureRetrieverFactory.StructureFinderMode mode, PermissionLevel maxPermission, Collection<Property<?>> properties) Gets theStructureFinderto find structures from partial string matches.StructureRetrieverFactory.search(ICommandSender commandSender, String input, StructureRetrieverFactory.StructureFinderMode mode, PermissionLevel maxPermission, Property<?>... properties) -
Uses of PermissionLevel in nl.pim16aap2.animatedarchitecture.spigot.core.comands
Methods in nl.pim16aap2.animatedarchitecture.spigot.core.comands that return types with arguments of type PermissionLevelModifier and TypeMethodDescriptioncloud.commandframework.arguments.parser.ArgumentParseResult<PermissionLevel> PermissionLevelArgument.PermissionLevelArgumentParser.parse(cloud.commandframework.context.CommandContext<ICommandSender> commandContext, Queue<String> inputQueue) Methods in nl.pim16aap2.animatedarchitecture.spigot.core.comands with parameters of type PermissionLevelModifier and TypeMethodDescriptionPermissionLevelArgument.PermissionLevelArgumentBuilder.maximumLevel(@Nullable PermissionLevel maximumLevel) StructureArgument.StructureArgumentBuilder.maxPermission(PermissionLevel maxPermission) PermissionLevelArgument.PermissionLevelArgumentBuilder.minimumLevel(@Nullable PermissionLevel minimumLevel) Constructors in nl.pim16aap2.animatedarchitecture.spigot.core.comands with parameters of type PermissionLevelModifierConstructorDescriptionPermissionLevelArgument(boolean required, String name, @Nullable String defaultValue, @Nullable BiFunction<cloud.commandframework.context.CommandContext<ICommandSender>, String, List<String>> suggestionsProvider, @Nullable cloud.commandframework.ArgumentDescription defaultDescription, ILocalizer localizer, @Nullable PermissionLevel minimumLevel, @Nullable PermissionLevel maximumLevel) PermissionLevelArgumentParser(ILocalizer localizer, @Nullable PermissionLevel minimumLevel, @Nullable PermissionLevel maximumLevel) StructureArgument(boolean required, String name, @Nullable String defaultValue, @Nullable BiFunction<cloud.commandframework.context.CommandContext<ICommandSender>, String, List<String>> suggestionsProvider, @Nullable cloud.commandframework.ArgumentDescription defaultDescription, boolean asyncSuggestions, IExecutor executor, StructureRetrieverFactory structureRetrieverFactory, PermissionLevel maxPermission, Property<?>... properties) StructureArgumentParser(boolean asyncSuggestions, StructureRetrieverFactory structureRetrieverFactory, PermissionLevel maxPermission, IExecutor executor, Property<?>... properties)