Class TuringUtils
Object
TuringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbasicAuth(IHandlerConfiguration config, HttpPost post) static StringchannelBreadcrumb(Channel channel, Locale locale) static ChannelgetChosenChannel(ChannelRef[] channelRefs, List<String> siteNames, IHandlerConfiguration config) static StringgetLocale(ManagedObject mo, IHandlerConfiguration config) static ChannelgetParentChannelFromBreadcrumb(Channel[] breadcrumb) static SitegetSite(ManagedObject mo, IHandlerConfiguration config) static StringgetSiteDomain(ManagedObject mo, IHandlerConfiguration config) static StringgetSiteDomainBySiteName(String siteName, IHandlerConfiguration config) static StringgetSiteName(ManagedObject mo, IHandlerConfiguration config) static StringgetSiteNameFromContentInstance(ManagedObject mo, IHandlerConfiguration config) static voidgetSiteNames(List<String> siteNames, Channel channel) static StringgetSiteUrl(ManagedObject mo, IHandlerConfiguration config) static List<ManagedObject> getVgnExtPagesFromChannel(Channel channel) static StringlistToString(List<String> stringList) static StringnormalizeText(String text) static voidsendToTuring(TurSNJobItems turSNJobItems, IHandlerConfiguration config, TurSNSiteConfig turSNSiteConfig) static voidsendToTuringAsZipFile(ByteArrayOutputStream byteArrayOutputStream, IHandlerConfiguration config, TurSNSiteConfig turSNSiteConfig) turingTagMapToSet(TuringTagMap turingTagMap)
-
Method Details
-
listToString
-
turingTagMapToSet
-
basicAuth
-
sendToTuringAsZipFile
public static void sendToTuringAsZipFile(ByteArrayOutputStream byteArrayOutputStream, IHandlerConfiguration config, TurSNSiteConfig turSNSiteConfig) -
sendToTuring
public static void sendToTuring(TurSNJobItems turSNJobItems, IHandlerConfiguration config, TurSNSiteConfig turSNSiteConfig) -
getChosenChannel
public static Channel getChosenChannel(ChannelRef[] channelRefs, List<String> siteNames, IHandlerConfiguration config) throws ApplicationException, ValidationException, RemoteException - Throws:
ApplicationExceptionValidationExceptionRemoteException
-
channelBreadcrumb
public static String channelBreadcrumb(Channel channel, Locale locale) throws ApplicationException, ValidationException - Throws:
ApplicationExceptionValidationException
-
normalizeText
-
getSite
-
getSiteName
-
getSiteNames
public static void getSiteNames(List<String> siteNames, Channel channel) throws ApplicationException, RemoteException - Throws:
ApplicationExceptionRemoteException
-
getSiteDomain
-
getSiteDomainBySiteName
-
getSiteUrl
public static String getSiteUrl(ManagedObject mo, IHandlerConfiguration config) throws ApplicationException - Throws:
ApplicationException
-
getSiteNameFromContentInstance
-
getLocale
-
getParentChannelFromBreadcrumb
public static Channel getParentChannelFromBreadcrumb(Channel[] breadcrumb) -
getVgnExtPagesFromChannel
-