public class BigDataManager extends Object implements IBigDataManagerSPI
IBigDataRepository
implementations.Constructor and Description |
---|
BigDataManager() |
Modifier and Type | Method and Description |
---|---|
void |
addSynonym(ISynonym synonym)
Adds the given synonyms to be used during
document creation . |
ISynonym |
createSynonym()
|
void |
deleteSynonyms(String... synonymIds)
Removes the synonyms with the given identifiers.
|
void |
destroy(boolean shutdown)
Destroy all repositories in this manager and free any required resources.
|
IBigDataRepository |
getDefaultRepository()
Returns the default big data repository.
|
ISynonym |
getSynonymById(String synonymId)
Returns the synonym with the given identifier.
|
SynonymsStatus |
getSynonymsStatus()
Returns the synonyms status.
|
boolean |
isThereSynonymsWithLocale(Locale locale)
Returns whether there are
synonyms for the given locale. |
void |
publishSynonyms(boolean forcePublish)
Writes the synonyms files and reloaded them into the repository .If status is SynonymsStatus.UPDATED , nothing will be performed, unless forcePublish parameter is true . |
void |
updateSynonym(ISynonym synonym)
Updates the given synonyms to be used during
document creation . |
public void destroy(boolean shutdown)
IBigDataManagerSPI
destroy
in interface IBigDataManagerSPI
shutdown
- whether this destroy is due to portal being shutdown. If true
, this manager must not
initialize any repository anymore.public IBigDataRepository getDefaultRepository()
IBigDataManager
getDefaultRepository
in interface IBigDataManager
public ISynonym createSynonym()
IBigDataManager
createSynonym
in interface IBigDataManager
ISynonym
to be added
later.public void addSynonym(ISynonym synonym) throws IllegalArgumentException, TransactionRequiredException, PortalException
IBigDataManager
document creation
.
This operation, however, may not have an instant effect.
IBigDataManager.createSynonym()
must be called to create a new instance, so it can be added.
transaction
and an active user's session
.
The user calling this, must have the manage portal
permission.addSynonym
in interface IBigDataManager
synonym
- the synonyms to be added.IllegalArgumentException
- if the given synonym is null
or invalid.TransactionRequiredException
- if there's no active transaction.AccessDeniedException
- if there's no active user session or the given session does not have the required permission.PortalException
- if other error occur.public void updateSynonym(ISynonym synonym) throws IllegalArgumentException, TransactionRequiredException, PortalException
IBigDataManager
document creation
.
This operation, however, may not have an instant effect.
transaction
and an active user's session
.
The user calling this, must have the manage portal
permission.updateSynonym
in interface IBigDataManager
synonym
- the synonyms to be updated -- it must have been gotten through IBigDataManager.getSynonymById(String)
.IllegalArgumentException
- if the given synonym is null
or invalid.TransactionRequiredException
- if there's no active transaction.AccessDeniedException
- if there's no active user session or the given session does not have the required permission.PortalException
- if other error occur.public void deleteSynonyms(String... synonymIds) throws IllegalArgumentException, TransactionRequiredException, PortalException
IBigDataManager
transaction
and an active user's session
.
The user calling this, must have the manage portal
permission.deleteSynonyms
in interface IBigDataManager
synonymIds
- the synonyms identifier.IllegalArgumentException
- if synonymId
is null
.TransactionRequiredException
- if there's no active transaction.AccessDeniedException
- if there's no active user session or the given session does not have the required permission.PortalException
- if other error occur.public ISynonym getSynonymById(String synonymId) throws AccessDeniedException, IllegalArgumentException, TransactionRequiredException, PortalObjectNotFoundException
IBigDataManager
transaction
and an active user's session
.getSynonymById
in interface IBigDataManager
synonymId
- the synonym identifier.AccessDeniedException
- if there's no active user session.IllegalArgumentException
- if synonymId
is null
.TransactionRequiredException
- if there's no active transaction.PortalObjectNotFoundException
- if there's no synonym with the given identifier.public boolean isThereSynonymsWithLocale(Locale locale)
IBigDataManagerSPI
synonyms
for the given locale.isThereSynonymsWithLocale
in interface IBigDataManagerSPI
locale
- the locale.synonyms
for the given locale.public SynonymsStatus getSynonymsStatus() throws TransactionRequiredException
IBigDataManagerSPI
getSynonymsStatus
in interface IBigDataManagerSPI
TransactionRequiredException
- if there's no current active transaction.public void publishSynonyms(boolean forcePublish) throws TransactionRequiredException, IOException, PortalException, TimeoutException
IBigDataManagerSPI
Writes
the synonyms files and reloaded them into the repository
.status
is SynonymsStatus.UPDATED
, nothing will be performed, unless forcePublish
parameter is true
.publishSynonyms
in interface IBigDataManagerSPI
forcePublish
- indicates whether the publishing must be performed, even if the synonyms are up-to-date.TransactionRequiredException
- if there's no currently active transaction.IOException
- if there was an error writing the files.PortalException
- if some error occur.TimeoutException
- if there was a timeout while waiting all the cluster members to write the synonyms files.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.