FetchUtils

Utility class to handle fetch requests.

new FetchUtils()
Static Members
fetch(uri, payload, callback, method, errorMessage)
getErrorMessage(error, errorMessage)

StyleUtils

Utility class that provdides CSS-related functionality.

new StyleUtils()
Static Members
parseColor(colorToParse, tryCssColorNames)
blendInts(from, to, percentage)
toHexColor(color)
blendColors(from, to, percentage)
lightenColor(orig, percentage)
darkenColor(orig, percentage)

ObjectUtils

Utility class for working with various types of JavaScript objects.

new ObjectUtils()
Static Members
removeItem(a, o)
deepEquals(objA, objB)
strMapToObj(strMap)
toMap(a)

StringUtils

Utility class that provides various string-manipulation functionality.

new StringUtils()
Static Members
fmt(format, value)
regexLastIndexOf(s, regex, startPos)
stripSimpleHtml(orig)
smartTruncate(orig, maxLen, ellipsis)
wrapLabel(orig, newLine, limit)
notEmpty(value)
formatNumber(formatString, value)
normalizeAutocompleteSuggestion(original)
isDigit(c)
isPunctuation(c)
isWhitespace(c)
isNumericOnlyBefore(s, pos)
isNumericOnlyAfter(s, pos)
stripPunctuation(orig)
coalesceWhitespace(orig)
stripQuestionMarks(orig)

DateUtils

Utility class with functions that help manipulate dates.

new DateUtils()
Static Members
formatDate(date, format, locale)
formatDateCustom(date, formatString, locale)
stringToDate(dateString)
formatDateString(dateString, format, locale)
formatDateRange(start, end)

ElasticToQueryResponse

Convert the response from a call to the Elasticsearch engine into an Attivio QueryResponse so that it can be processed by the Search UI.

new ElasticToQueryResponse()
Static Members
wrapIfNotArray(v)

SolrToQueryResponse

Convert the response from a call to the Solr engine into an Attivio QueryResponse so that it can be processed by the Search UI.

new SolrToQueryResponse()
Static Members
convert(json, customOptions)
wrapIfNotArray(v)

AuthUtils

Utility class for handling auhentication in SUIT-based applications. Also handles configuration of application including the configuration used for components wrapped with the Configurable higher-order component.

new AuthUtils()
Static Members
ADMIN_ROLE
configure(users, config, simpleValidation)
mappify(orig)
logout()
obfuscate(orig)
passwordMatches(comp, compTo)
findUser(username)
login(username, password)
saveLoggedInUser(userInfo)
hasRole(user, role)
isLoggedIn(role)
getSavedUser()
getLoggedInUserInfo(callback)
getUserName(userInfo)
validateUsers(users)
validateConfiguration(config, simpleValidation)

KnowledgeGraphUtils

Utility functions used by the KnowledgeGraphPanel component to construct the queries needed for populating it's graph.

new KnowledgeGraphUtils()
Static Members
buildQuery(docId, table, tableField, linkingFields, maxLinkedDocs, entityName, entityValue)
searchResultsToGraph(mainDoc, linkingFields, firstIsPrimary, filterOutSingletons)