public class ValidityUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<NotificationDTO> |
getNotificationsForProblem(Cable cable) |
static String |
getReasonsForProblem(Cable cable)
Generates message with reason(s) for problem when there is a problem with cable.
|
static String |
getReasonsForProblem(Cable cable,
String messageSeparator)
Generates message with reason(s) for problem when there is a problem with cable.
|
static boolean |
isCableArticleCableTypeActive(Cable cable)
Return boolean if cable article or cable type is active.
|
static boolean |
isCableArticleInvalid(Cable cable)
Return boolean if cable article is invalid.
|
static boolean |
isCableEndpointConnectorInvalid(Cable cable,
boolean isEndpointA)
Return boolean if cable endpoint connector is invalid.
|
static boolean |
isCableEndpointEssNameFbsTagAvailable(Cable cable,
boolean isEndpointA)
Return boolean if cable ESS name or FBS tag is available.
|
static boolean |
isCableTypeInvalid(Cable cable)
Return boolean if cable type is invalid.
|
public static boolean isCableArticleInvalid(Cable cable)
cable - cablepublic static boolean isCableTypeInvalid(Cable cable)
cable - cablepublic static boolean isCableArticleCableTypeActive(Cable cable)
cable - cablepublic static boolean isCableEndpointEssNameFbsTagAvailable(Cable cable, boolean isEndpointA)
cable - cableisEndpointA - if endpointA or not, if true then endpointA, if false then endpointBpublic static boolean isCableEndpointConnectorInvalid(Cable cable, boolean isEndpointA)
cable - cableisEndpointA - if endpointA or not, if true then endpointA, if false then endpointBpublic static String getReasonsForProblem(Cable cable)
cable - cablepublic static String getReasonsForProblem(Cable cable, String messageSeparator)
cable - cablemessageSeparator - message separatorpublic static List<NotificationDTO> getNotificationsForProblem(Cable cable)
Copyright © 2026 European Spallation Source. All rights reserved.