Commit Graph

2384 Commits

Author SHA1 Message Date
Tim Visée f8cf9e2e48 Created inGroup method in permissions manager 2015-11-21 15:44:57 +01:00
Tim Visée a05a97a0a6 Fixed setGroup method in permissions manager 2015-11-21 15:38:20 +01:00
Tim Visée 1091db0e15 Created removeAllGroups method in permissions manager 2015-11-21 15:34:38 +01:00
Tim Visée f7f455a56a Created setGroups method in permissions manager 2015-11-21 15:24:53 +01:00
Tim Visée a84e219899 Fixed minor Essentials Group Manager issue in addGroup method of permissions manager 2015-11-21 15:18:01 +01:00
Tim Visée 462a2e9878 Created removeGroups method in permissions manager 2015-11-21 15:16:19 +01:00
Tim Visée bcf4eeab00 Created removeGroup method in permissions manager 2015-11-21 15:15:04 +01:00
Tim Visée b07e4b62cc Created addGroups method in permissions manager 2015-11-21 15:07:46 +01:00
Tim Visée a6fe728d79 Fixed addGroup method for PermissionsBukkit in permissions manager 2015-11-21 15:00:14 +01:00
Tim Visée f4da63fee6 Added note to getGroups method in permissions manager for PermissionsBukkit 2015-11-21 14:57:34 +01:00
Tim Visée 42dee2e101 Created addGroup method in permissions manager 2015-11-21 14:44:43 +01:00
Tim Visée 400d014e7b Fixed setGroup in PermissionsManager for Essentials Group Manager and zPermissions 2015-11-21 14:41:14 +01:00
ljacqu b633b9a005 Create test for change password command 2015-11-21 13:23:18 +01:00
ljacqu 4702a1b82d Merge ListUtil into StringUtil; refactor HelpSyntaxHelper + create test
The HelpSyntaxHelper had suppressed warnings for string concatenation within StringBuilder - the point of the StringBuilder is that it is faster when you use it to concatenate many elements. If you still use string concatenation with + within these calls it beats the purpose.
(cherry picked from commit bb00be2)
2015-11-21 12:12:26 +01:00
ljacqu 115680a363 Create test for HelpSyntaxHelperTest
(cherry picked from commit 9a6e96d)
2015-11-21 12:07:21 +01:00
ljacqu e65319d42c Add tests for LogoutCommand and RegisterCommand. Add more generic mockUtil
(cherry picked from commit 06cfd13)
2015-11-21 12:07:10 +01:00
ljacqu 987e38c5df Add test for LoginCommand; create AuthMe mock test util
Had to create a getter for the Management instance in the AuthMe class for mocking, but fields should generally not be accessed globally. Hopefully soon we will be able to make the field private.
(cherry picked from commit f1a0022)
2015-11-21 12:07:00 +01:00
ljacqu 3934d67330 Command refactor - remove unused fields, reduce variable "scope"
Minor refactorings in the command section for familiarization.

1. Removed suppressWarning("Deprecated") - the method is deprecated for a reason and we should be made aware of that.
2. Removed same javadoc on ExecutableCommand implementation that just had the same as the interface (this is just clutter; @Override signals that it's an implementing class and a developer can view the superclass javadoc)
3. In places where the AuthMe instance was retrieved at the top but used at the very bottom, moved it to the bottom to reduce its "scope"
(cherry picked from commit 45a50f3)
2015-11-21 12:06:49 +01:00
ljacqu 9a68aa5517 Proper Javadoc example / add test for StringUtils
- Proper example for the purpose of javadoc and how it could look like
- Fix containsAny to be null safe
- Add tests
2015-11-21 08:28:53 +01:00
ljacqu 38cc217cff Revert certain JavaDoc changes
Ideally JavaDoc should provide additional information to the developer
as to the method's purpose and usage. Typically you do not add the
return type of the method and the parameter's types since this can be
seen in the code.

A short description of what the parameter really is (e.g. a String can
hold many types of information) is a lot more beneficial. A JavaDoc
statement simply restating the parameter types and the method name is,
put bluntly, simply noise, since all of these things are already
contained in the code itself.

Similarly, @see references are great for pointing to other, related
methods but aren't very helpful to point to a superclass method (the
implemented or overriden method) since it is implied by @Override. A
developer can navigate easily to the superclass method with any
reasonable IDE.
2015-11-21 07:41:56 +01:00
Tim Visée 504106f835 Added base of setGroup method in permissions manager 2015-11-21 03:01:45 +01:00
Tim Visée 06d6bd4a7e Fixed formatting in PermissionsManager class 2015-11-21 02:43:32 +01:00
Tim Visée 5ff9b7550e Combined Plugin and Server listener, removed plugin listener 2015-11-21 02:33:59 +01:00
Gabriele C bd1f868c6d standard javadoc 2015-11-21 01:31:18 +01:00
Gabriele C 118c79401a Prepare the project for javadocs 2015-11-21 01:27:06 +01:00
Gabriele C adcd70b91d auto cleanup 2015-11-21 01:15:52 +01:00
Gabriele C ada992785c login process cleanup 2015-11-21 00:36:46 +01:00
Gabriele C 68ae6ee701 remove useless inventory store event 2015-11-20 23:59:25 +01:00
Gabriele C d6355adb51 cleanup 2015-11-20 23:52:20 +01:00
Gabriele C ba483af807 fix project layout 2015-11-20 23:43:26 +01:00
ljacqu 84de22c9c0 Refactor Log4JFilter and improve branch coverage 2015-11-20 23:17:50 +01:00
Tim Visée 4978f195f8 Use different logger in permissions manager 2015-11-20 20:50:45 +01:00
Tim Visée a4b2306e16 Added some comments to legacy permissions methods 2015-11-20 20:23:52 +01:00
Tim Visée 3500ee6fb7 Replaced code that used legacy deprecated permissions methods 2015-11-20 20:23:03 +01:00
Tim Visée 33ca2691b2 Updated deprecated information for legacy permission methods 2015-11-20 20:16:02 +01:00
Tim Visée 8ba126b681 Updated permissions checking system in command handler 2015-11-20 20:13:23 +01:00
Tim Visée 10b69403fc Deprecated legacy permissions methods 2015-11-20 20:11:46 +01:00
Tim Visée ffd36ba325 Updated authmePermissable methods in main class 2015-11-20 20:08:02 +01:00
Tim Visée eae6eb384f Updated soft depends 2015-11-20 20:04:59 +01:00
Tim Visée 5e7e7a14fd Added comment to permissions manager 2015-11-20 20:03:44 +01:00
Tim Visée 71e24fe80a Improved permissions manager 2015-11-20 20:01:43 +01:00
Tim Visée 82e65250b8 Added permissions manager to main class, along with a setup and get method 2015-11-20 20:01:31 +01:00
Tim Visée f17f1fe5fb Fixed plugin listener 2015-11-20 19:56:06 +01:00
Tim Visée 5df1dc2dfb Created plugin listener 2015-11-20 19:55:19 +01:00
Tim Visée 66365d6cf9 Removed unused code 2015-11-20 19:53:00 +01:00
Tim Visée e3c4655b19 Added new permissions manager class, based on DungeonMaze's one 2015-11-20 19:43:10 +01:00
DNx5 9a79332933 add getPlayer method into Utils class 2015-11-17 09:32:33 +07:00
DNx5 3e1c7edb2d reorder isAuthAvailable call 2015-11-17 08:47:14 +07:00
DNx5 6bc5bb3cb1 optimize some code. 2015-11-17 06:54:24 +07:00
DNx5 f6c6a7c6d4 update and cleanup PlayerAuth 2015-11-17 05:04:34 +07:00