Class Utils
java.lang.Object
com.tikal.hudson.plugins.notification.Utils
Helper utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getSecretUrl
(String credentialId, ItemGroup itemGroup) Get the actual URL from the credential idstatic boolean
Determines if any of Strings specified is either null or empty.static void
verifyNotEmpty
(String... strings) Verifies neither of Strings specified is null or empty.
-
Method Details
-
isEmpty
Determines if any of Strings specified is either null or empty.- Parameters:
strings
- - Strings to check for empty (whitespace is trimmed) or null.- Returns:
- True if any string is empty
-
verifyNotEmpty
Verifies neither of Strings specified is null or empty.- Parameters:
strings
- Strings to check for empty (whitespace is trimmed) or null.- Throws:
IllegalArgumentException
- Throws this exception if any string is empty.
-
getSecretUrl
Get the actual URL from the credential id- Parameters:
credentialId
- Credential id to lookupitemGroup
- the item group to look for the credential- Returns:
- Actual URL
-