public class SmartContentUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INTERFACE_INSTANCE_PROPERTY_SEARCH_SCOPE_CHANNEL_IDS |
static String |
INTERFACE_INSTANCE_PROPERTY_SEARCH_SCOPE_SERVICE_INSTANCE_IDS |
static String |
INTERFACE_INSTANCE_PROPERTY_SEARCH_SCOPE_TIME_FRAME |
Constructor and Description |
---|
SmartContentUtil() |
Modifier and Type | Method and Description |
---|---|
static List<ISearchHit> |
chooseSearchByInterfaceType(SessionConfig sessionConfig,
String interfaceType,
TabularSource<?> source,
ITransaction transaction)
Choose a method use for an specific interface.
|
static List<ISearchHit> |
getInterestingContent(SessionConfig sessionConfig,
TabularSource<?> source,
ITransaction transaction)
Get contents that must be interesting for user by running a query on elasticSearch.
|
static List<ISearchHit> |
getLastContentNotRead(SessionConfig sessionConfig,
TabularSource<?> source,
ITransaction transaction)
Get last contents that wasn't read by me.
|
static List<ISearchHit> |
getLastContentRead(SessionConfig sessionConfig,
TabularSource<?> source,
ITransaction transaction)
Get last contents read by me, by running a query on elasticSearch.
|
static List<ISearchHit> |
getMostLikedOrCommentedOrViewsRecommendedContents(SessionConfig sessionConfig,
TabularSource<?> source,
String type,
ITransaction transaction)
Get most like, commented or viewed recommend contents.
|
static List<ISearchHit> |
getMostLikedOrCommnentedOrViewsContents(SessionConfig sessionConfig,
TabularSource<?> source,
String type,
ITransaction transaction)
Get most like, commented or viewed contents.
|
static List<ISearchHit> |
getRecommendToMe(SessionConfig sessionConfig,
TabularSource<?> source,
ITransaction transaction)
Get contents recommend to me by running a query on elasticSearch.
|
static SearchFieldClause |
getStartTimeFrameFieldClause(SessionConfig sessionConfig,
Source<?> source,
ITransaction transaction)
Returns the field clause that filters by the start of the time frame.
|
public static final String INTERFACE_INSTANCE_PROPERTY_SEARCH_SCOPE_CHANNEL_IDS
public static final String INTERFACE_INSTANCE_PROPERTY_SEARCH_SCOPE_SERVICE_INSTANCE_IDS
public static final String INTERFACE_INSTANCE_PROPERTY_SEARCH_SCOPE_TIME_FRAME
public static SearchFieldClause getStartTimeFrameFieldClause(SessionConfig sessionConfig, Source<?> source, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.source
- the source from data provider.PortalException
public static List<ISearchHit> getMostLikedOrCommnentedOrViewsContents(SessionConfig sessionConfig, TabularSource<?> source, String type, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.source
- the source from data provider.type
- that define which kind of search will be performed.transaction
- the current transaction.PortalException
public static List<ISearchHit> getMostLikedOrCommentedOrViewsRecommendedContents(SessionConfig sessionConfig, TabularSource<?> source, String type, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.source
- the source from data provider.type
- that define which kind of search will be performed.transaction
- the current transaction.PortalException
public static List<ISearchHit> getRecommendToMe(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.source
- the source from data provider.transaction
- the current transaction.PortalException
public static List<ISearchHit> getLastContentNotRead(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.source
- the source from data provider.transaction
- the transaction.PortalException
public static List<ISearchHit> getLastContentRead(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.source
- the source from data provider.transaction
- the current transaction.PortalException
public static List<ISearchHit> chooseSearchByInterfaceType(SessionConfig sessionConfig, String interfaceType, TabularSource<?> source, ITransaction transaction) throws PortalException
sessionConfig
- the session configuration.interfaceType
- the interface type that is used to choose the correct search method.source
- the source from data provider.transaction
- the current transaction.PortalException
public static List<ISearchHit> getInterestingContent(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction) throws PortalException
sessionConfig
- the session configurationsource
- the source from data providertransaction
- the transactionPortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.