Class SearchTransactionUtils
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.SearchTransactionUtils
-
public class SearchTransactionUtils extends java.lang.ObjectConvenience utilities forSearchTransaction.- Since:
- 11.0
-
-
Constructor Summary
Constructors Constructor Description SearchTransactionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasCollection(SearchTransaction st)Checks that a transaction has a question which has a collection.static booleanhasQuery(SearchTransaction st)Checks that a transaction has a question which has query.static booleanhasQueryAndCollection(SearchTransaction st)Checks that a transaction has question which has a query and a collection.static booleanhasQuestion(SearchTransaction st)Checks that a transaction has a question.static booleanhasResponse(SearchTransaction st)Checks that a transaction has a response.static booleanhasResultPacket(SearchTransaction st)Checks that a transaction has a response which has a result packetstatic booleanhasResults(SearchTransaction st)Checks that a transaction has a response which has results.static booleanhasSession(SearchTransaction st)Checks that a transaction has session data
-
-
-
Method Detail
-
hasQuestion
public static boolean hasQuestion(SearchTransaction st)
Checks that a transaction has a question.- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionis non null and has aSearchQuestion
-
hasQuery
public static boolean hasQuery(SearchTransaction st)
Checks that a transaction has a question which has query.- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionis non null and has aSearchQuestionand a non-null query.
-
hasCollection
public static boolean hasCollection(SearchTransaction st)
Checks that a transaction has a question which has a collection.- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionis non null and has aSearchQuestionand a non-nullCollection.
-
hasQueryAndCollection
public static boolean hasQueryAndCollection(SearchTransaction st)
Checks that a transaction has question which has a query and a collection.- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionis non null and has aSearchQuestion, a non-null query and a non-nullCollection.
-
hasResponse
public static boolean hasResponse(SearchTransaction st)
Checks that a transaction has a response.- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionis non null and has aSearchResponse.
-
hasSession
public static boolean hasSession(SearchTransaction st)
Checks that a transaction has session data- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionis non null and has aSearchSession.
-
hasResultPacket
public static boolean hasResultPacket(SearchTransaction st)
Checks that a transaction has a response which has a result packet- Parameters:
st-SearchTransactionto check- Returns:
- true if the
SearchTransactionhas a result packet, false otherwise
-
hasResults
public static boolean hasResults(SearchTransaction st)
Checks that a transaction has a response which has results.- Parameters:
st-- Returns:
- true if the
SearchTransactionis non null and has aSearchResponsewhich contains aResultPacketand has more than zero results.
-
-