public class ValidityUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<NotificationDTO> |
getNotificationsForProblem(Cable cable,
Names names) |
static String |
getReasonsForProblem(Cable cable,
Names names)
Generates message with reason(s) for problem when there is a problem with cable.
|
static String |
getReasonsForProblem(Cable cable,
Names names,
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 |
isCableEndpointEssNameDeleted(Cable cable,
boolean isEndpointA,
Names names)
Return boolean if cable endpoint ESS name is invalid.
|
static boolean |
isCableEndpointEssNameFbsTagAvailable(Cable cable,
boolean isEndpointA)
Return boolean if cable ESS name or FBS tag is available.
|
static boolean |
isCableEndpointEssNameUuidInvalid(Cable cable,
boolean isEndpointA,
Names names)
Return boolean if cable endpoint ESS name uuid is invalid.
|
static boolean |
isCableTypeInvalid(Cable cable)
Return boolean if cable type is invalid.
|
static String |
uuidUpdateCableEndpointEssName(Cable cable,
boolean isEndpointA,
Names names)
Update cable endpoint ESS name based on uuid for name, if ESS name is outdated,
and return message to write to log (non-null if applicable).
|
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 isCableEndpointEssNameDeleted(Cable cable, boolean isEndpointA, Names names)
cable - cableisEndpointA - if endpointA or not, if true then endpointA, if false then endpointBnames - handle to set of namespublic static boolean isCableEndpointEssNameUuidInvalid(Cable cable, boolean isEndpointA, Names names)
cable - cableisEndpointA - if endpointA or not, if true then endpointA, if false then endpointBnames - handle to set of namespublic static String uuidUpdateCableEndpointEssName(Cable cable, boolean isEndpointA, Names names)
cable - cableisEndpointA - if endpointA or not, if true then endpointA, if false then endpointBnames - handle to set of namespublic 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, Names names)
cable - cablepublic static String getReasonsForProblem(Cable cable, Names names, String messageSeparator)
cable - cablenames - namesmessageSeparator - message separatorpublic static List<NotificationDTO> getNotificationsForProblem(Cable cable, Names names)
Copyright © 2025 European Spallation Source. All rights reserved.