Uses of Record Class
eu.cloudnetservice.driver.permission.Permission
Packages that use Permission
-
Uses of Permission in eu.cloudnetservice.driver.permission
Fields in eu.cloudnetservice.driver.permission with type parameters of type PermissionModifier and TypeFieldDescriptionprotected final Map<String,Set<Permission>> AbstractPermissible.groupPermissionsprivate Map<String,Set<Permission>> PermissionGroup.Builder.groupPermissionsprivate Map<String,Set<Permission>> PermissionUser.Builder.groupPermissionsprotected final Set<Permission>AbstractPermissible.permissionsprivate Set<Permission>PermissionGroup.Builder.permissionsprivate Set<Permission>PermissionUser.Builder.permissionsMethods in eu.cloudnetservice.driver.permission that return PermissionModifier and TypeMethodDescriptionPermission.Builder.build()Builds the new permission with all previously set options.DefaultPermissionManagement.findHighestPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the highest permission (sorted by the potency) in the given permission collection using the given permission potency as the starting point.PermissionManagement.findHighestPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the highest permission (sorted by the potency) in the given permission collection using the given permission potency as the starting point.default @Nullable PermissionPermissible.findMatchingPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the best matching permission in the given permissions by logically checking the absolute potency against each other to find the permission with the highest positive or negative potency.static @NonNull PermissionCreates a new permission with the given name.default @Nullable PermissionPermissible.permission(@Nullable String name) Gets a permission of this permissible by its name.Methods in eu.cloudnetservice.driver.permission that return types with arguments of type PermissionModifier and TypeMethodDescriptionDefaultPermissionManagement.allGroupPermissions(@NonNull Permissible permissible, String group) Gets all permission of the specified permissible on the given group.PermissionManagement.allGroupPermissions(@NonNull Permissible permissible, @Nullable String group) Gets all permission of the specified permissible on the given group.DefaultPermissionManagement.allPermissions(@NonNull Permissible permissible) Gets all permission of the specified permissible.PermissionManagement.allPermissions(@NonNull Permissible permissible) Gets all permission of the specified permissible.protected @NonNull Collection<Permission>DefaultPermissionManagement.collectAllPermissions(@NonNull Permissible permissible, @Nullable String[] groups) protected @NonNull Collection<Permission>DefaultPermissionManagement.collectAllPermissionsTo(@NonNull Collection<Permission> target, @NonNull Permissible permissible, @Nullable String[] groups) Collects all permissions for the given permissible into the given target collection.AbstractPermissible.groupPermissions()Gets all group specific permissions.Permissible.groupPermissions()Gets all group specific permissions.AbstractPermissible.permissions()Gets all global permissions of this permissible.Permissible.permissions()Gets all global permissions of this permissible.Methods in eu.cloudnetservice.driver.permission with parameters of type PermissionModifier and TypeMethodDescriptionvoidAbstractPermissible.addPermission(@NonNull Permission permission) Adds the given permission to this permissible.voidAbstractPermissible.addPermission(@NonNull String group, @NonNull Permission permission) Adds the given permission to this permissible for the specified target group.private voidAbstractPermissible.addPermission(@NonNull Set<Permission> permissions, @NonNull Permission permission) Adds the given permission into the set of permissions.voidPermissible.addPermission(@NonNull Permission permission) Adds the given permission to this permissible.voidPermissible.addPermission(@NonNull String group, @NonNull Permission permission) Adds the given permission to this permissible for the specified target group.PermissionGroup.Builder.addPermission(@NonNull Permission permission) Adds the given permission to the permissions of the group.PermissionUser.Builder.addPermission(@NonNull Permission permission) Adds the given permission to the permissions of the new user.static @NonNull Permission.BuilderPermission.builder(@NonNull Permission permission) Creates a new permission builder instance and copies all values of the given permission into the new builder.intPermission.compareTo(@NonNull Permission other) Compares the absolute potency of this permission with the absolute potency of the given permission.DefaultPermissionManagement.findHighestPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the highest permission (sorted by the potency) in the given permission collection using the given permission potency as the starting point.PermissionManagement.findHighestPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the highest permission (sorted by the potency) in the given permission collection using the given permission potency as the starting point.default @Nullable PermissionPermissible.findMatchingPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the best matching permission in the given permissions by logically checking the absolute potency against each other to find the permission with the highest positive or negative potency.static @NonNull PermissionCheckResultPermissionCheckResult.fromPermission(@Nullable Permission permission) Converts the given permission into a permission check result.DefaultPermissionManagement.groupPermissionResult(@NonNull Permissible permissible, @NonNull String group, @NonNull Permission permission) Checks if the given permissible has the given permission for the given group.PermissionManagement.groupPermissionResult(@NonNull Permissible permissible, @NonNull String group, @NonNull Permission permission) Checks if the given permissible has the given permission for the given group.DefaultPermissionManagement.groupsPermissionResult(@NonNull Permissible permissible, @NonNull String[] groups, @NonNull Permission permission) Checks if the given permissible has the given permission for the given groups.PermissionManagement.groupsPermissionResult(@NonNull Permissible permissible, @NonNull String[] groups, @NonNull Permission permission) Checks if the given permissible has the given permission for the given groups.default booleanPermissionManagement.hasGroupPermission(@NonNull Permissible permissible, @NonNull String group, @NonNull Permission permission) Checks if the given permissible has the given permission for the given group.default @NonNull PermissionCheckResultPermissible.hasPermission(@NonNull Permission permission) Checks if this permissible has the given permission.default @NonNull PermissionCheckResultPermissible.hasPermission(@NonNull String group, @NonNull Permission permission) Checks if this permissible has the given permission for the specified target group.default @NonNull PermissionCheckResultPermissible.hasPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Checks if the collection of given permissions contains a permission that matches the given permission.default booleanPermissionManagement.hasPermission(@NonNull Permissible permissible, @NonNull Permission permission) Checks if the given permissible or any group that is associated with the permissible has the permission, and it is not overriden by another permission with a negative potency.DefaultPermissionManagement.permissionResult(@NonNull Permissible permissible, @NonNull Permission permission) Checks if the given permissible or any group that is associated with the permissible has the permission, and it is not overriden by another permission with a negative potency.PermissionManagement.permissionResult(@NonNull Permissible permissible, @NonNull Permission permission) Checks if the given permissible or any group that is associated with the permissible has the permission, and it is not overriden by another permission with a negative potency.Method parameters in eu.cloudnetservice.driver.permission with type arguments of type PermissionModifier and TypeMethodDescriptionprivate voidAbstractPermissible.addPermission(@NonNull Set<Permission> permissions, @NonNull Permission permission) Adds the given permission into the set of permissions.protected voidDefaultPermissionManagement.collectAllGroupPermissionsInto(@NonNull Collection<Permission> target, @NonNull Collection<PermissionGroup> groups, @Nullable String[] taskGroups, @NonNull Collection<String> travelledGroups) Collects all permissions into the given target collection by travelling recursively through every of the given group and the parents of the groups.protected @NonNull Collection<Permission>DefaultPermissionManagement.collectAllPermissionsTo(@NonNull Collection<Permission> target, @NonNull Permissible permissible, @Nullable String[] groups) Collects all permissions for the given permissible into the given target collection.protected voidDefaultPermissionManagement.collectPermissionsInto(@NonNull Collection<Permission> permissions, @NonNull Permissible permissible, @Nullable String[] groups) Collects all permissions of the given permissible into the given permission collection.DefaultPermissionManagement.findHighestPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the highest permission (sorted by the potency) in the given permission collection using the given permission potency as the starting point.PermissionManagement.findHighestPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the highest permission (sorted by the potency) in the given permission collection using the given permission potency as the starting point.default @Nullable PermissionPermissible.findMatchingPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Finds the best matching permission in the given permissions by logically checking the absolute potency against each other to find the permission with the highest positive or negative potency.PermissionGroup.Builder.groupPermissions(@NonNull Map<String, Set<Permission>> groupPermissions) Sets the group permissions of the permission group.PermissionUser.Builder.groupPermissions(@NonNull Map<String, Set<Permission>> groupPermissions) Sets the group permissions of the new permission user.default @NonNull PermissionCheckResultPermissible.hasPermission(@NonNull Collection<Permission> permissions, @NonNull Permission permission) Checks if the collection of given permissions contains a permission that matches the given permission.PermissionGroup.Builder.permissions(@NonNull Collection<Permission> permissions) Sets the permissions of the permission group.PermissionUser.Builder.permissions(@NonNull Collection<Permission> permissions) Sets the permissions of the new permission user.Constructor parameters in eu.cloudnetservice.driver.permission with type arguments of type PermissionModifierConstructorDescriptionAbstractPermissible(@NonNull String name, int potency, long createdTime, @NonNull Set<Permission> permissions, @NonNull Map<String, Set<Permission>> groupPermissions, @NonNull Document properties) Constructs a new abstract permissible instance.AbstractPermissible(@NonNull String name, int potency, long createdTime, @NonNull Set<Permission> permissions, @NonNull Map<String, Set<Permission>> groupPermissions, @NonNull Document properties) Constructs a new abstract permissible instance.protectedPermissionGroup(@NonNull String color, @NonNull String prefix, @NonNull String suffix, @NonNull String display, int sortId, boolean defaultGroup, @NonNull Set<String> groups, @NonNull String name, int potency, long createdTime, @NonNull Set<Permission> permissions, @NonNull Map<String, Set<Permission>> groupPermissions, @NonNull Document properties) Constructs a new permission group.protectedPermissionUser(@NonNull UUID uniqueId, @Nullable String hashedPassword, @NonNull Set<PermissionUserGroupInfo> groups, @NonNull String name, int potency, long createdTime, @NonNull Set<Permission> permissions, @NonNull Map<String, Set<Permission>> groupPermissions, @NonNull Document properties) Constructs a new permission group.