public abstract class DouiBigDataUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DouiBigDataUtil.DouiBigDataInitObserver
Portal event observer used to initialize big data for doui usage when repository is initialized.
|
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_IDS_TO_HAVE_POPULARITY_RESET_TRANSACTION_ATTRIBUTE_NAME
Transaction attribute that holds the item ids that will have their popularity reset.
|
static String |
POPULARITIES_TRANSACTION_ATTRIBUTE_NAME
Transaction attribute that holds the items popularities.
|
Constructor and Description |
---|
DouiBigDataUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteServiceInstanceDocuments(ServiceInstanceConfig serviceInstance)
Deletes the documents stored in a service instance.
|
static void |
deleteSourcesBigData(ServiceInstanceConfig serviceInstance)
Deletes the big data for the sources in a service.
|
static String |
getDocumentTypeFieldId(Source<?> source)
Returns the identifier of the big data document type source field to be used.
|
static String |
getDocumentTypeFieldId(String serviceId,
String sourceId)
Returns the identifier of the big data document type source field to be used.
|
static String |
getDocumentTypeId(Source<?> source)
Returns the identifier of the big data document type to be used, by default, for a source.
|
static String |
getDocumentTypeId(String serviceId,
String sourceId)
Returns the identifier of the big data document type to be used, by default, for a source.
|
static void |
initializeBigDataIfNecessary(ServiceInstanceConfig serviceInstance)
Initializes the big data for the sources in a service, if not already initialized.
|
static void |
recreateServicesBigDataStructure()
Recreates the big data structure for all services.
|
static void |
reindexService(ServiceConfig service)
Re-index a service to big data, re-creating all source big data structure corresponding to the service.
|
static void |
reindexServiceInstance(ServiceInstanceConfig serviceInstanceConfig)
Re-index a service instance to big data, deleting current documents and adding the corresponding generated
documents.
|
static void |
updateSourcesBigData(ServiceConfig serviceConfig)
Updates the sources big data of a service.
|
public static final String ITEM_IDS_TO_HAVE_POPULARITY_RESET_TRANSACTION_ATTRIBUTE_NAME
public static final String POPULARITIES_TRANSACTION_ATTRIBUTE_NAME
public static String getDocumentTypeFieldId(Source<?> source)
source
- the source.public static String getDocumentTypeFieldId(String serviceId, String sourceId)
serviceId
- the service id.sourceId
- the source id.public static String getDocumentTypeId(Source<?> source)
source
- the source.public static String getDocumentTypeId(String serviceId, String sourceId)
source
- the source.public static void reindexServiceInstance(ServiceInstanceConfig serviceInstanceConfig) throws PortalException
serviceInstanceConfig
- the service instance.PortalException
public static void initializeBigDataIfNecessary(ServiceInstanceConfig serviceInstance)
serviceInstance
- the service's service instance to use to create the sources.public static void updateSourcesBigData(ServiceConfig serviceConfig)
serviceConfig
- the service.public static void deleteSourcesBigData(ServiceInstanceConfig serviceInstance)
serviceInstance
- the service's service instance to use to create the sources.public static void deleteServiceInstanceDocuments(ServiceInstanceConfig serviceInstance)
serviceInstance
- the service instance.public static void reindexService(ServiceConfig service) throws PortalException
service
- the service.PortalException
public static void recreateServicesBigDataStructure() throws PortalException
PortalException
LumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.