Class PermissionsUtils
java.lang.Object
overit.geocallapp.utilities.system.PermissionsUtils
Utility class for working with
Provides static methods to extract and manipulate permission names and aliases.
This class cannot be instantiated.
Permission objects.Provides static methods to extract and manipulate permission names and aliases.
This class cannot be instantiated.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getAliases(Permission... permissions) Extracts all permission names and aliases from the given permissions.
-
Method Details
-
getAliases
Extracts all permission names and aliases from the given permissions. Combines the main permission names with their associated aliases into a single array.- Parameters:
permissions- thePermissionobjects to process- Returns:
- an array containing all permission names and aliases
- Throws:
IllegalArgumentException- if permissions is null or empty
-