Package io.deephaven.acl.tools
Class AclUtil
java.lang.Object
io.deephaven.acl.tools.AclUtil
Common code used across multiple internal ACL modules.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
columnsStringIsNormalized
(String columnsString) Checks whether an ACL columns string is normalized, meaning lexicographically sorted and removed of duplicates.static String
normalizeColumnsString
(String columnsString) Normalizes an ACL columns string if needed.static String
Java 8 requires specifying an encoding string and related exception handling.static String
Applies URL encoding with a null check.
-
Method Details
-
urlEncode
Applies URL encoding with a null check.- Parameters:
text
- text to URL encode- Returns:
- URL encoded text
-
urlDecode
Java 8 requires specifying an encoding string and related exception handling. Consider removing once we stop supporting Java 8.- Parameters:
text
- text to URL decode- Returns:
- URL decoded text
-
columnsStringIsNormalized
Checks whether an ACL columns string is normalized, meaning lexicographically sorted and removed of duplicates.Assumes column names and delimitation are already validated for correctness.
- Parameters:
columnsString
- the ACL columns string- Returns:
- whether columnsString is normalized
-
normalizeColumnsString
Normalizes an ACL columns string if needed. SeecolumnsStringIsNormalized(String)
for a definition of normalization.- Parameters:
columnsString
- the ACL columns string to normalize if needed- Returns:
- the normalized ACL columns string if needed; otherwise, the original ACL columns string
-