public interface DictionaryClient extends ExposedApi
Modifier and Type | Field and Description |
---|---|
static String |
DICTIONARY_RESOURCES_NAME
Name of
GlobalMap that contains published dictionaries. |
Modifier and Type | Method and Description |
---|---|
DictionaryInfo |
approveDictionary(DictionaryInfo info)
Approve pending changes to dictionary identified by
info . |
DictionaryInfo |
cloneDictionary(DictionaryInfo source,
DictionaryInfo dest)
Clone dictionary
source to dest . |
DictionaryInfo |
createDictionary(DictionaryInfo info)
Create dictionary
info . |
DictionaryInfo |
createDictionaryEntries(DictionaryInfo info,
String contentStoreId)
Add all entries from
contentStorId in csv format to dictionary identified by info . |
DictionaryEntry |
createDictionaryEntry(DictionaryEntry entry)
Create a dictionary entry.
|
DictionaryInfo |
deleteDictionary(DictionaryInfo info)
Delete dictionary
info . |
DictionaryEntry |
deleteDictionaryEntry(DictionaryEntry entry)
Delete a dictionary entry.
|
void |
deleteDictionaryFromContentStore(String contentStoreId)
Deprecated.
|
String |
exportDictionary(DictionaryInfo info)
Export published form of dictionary.
|
AdminQueryResult<DictionaryInfo> |
getDictionaries(AdminQuery query,
int offset,
int rows)
Get all matching dictionaries.
|
DictionaryInfo |
getDictionary(RevisionStatus view,
DictionaryType type,
String name,
String group)
Get a dictionary info based on the (type, name, group).
|
AdminQueryResult<DictionaryEntry> |
getDictionaryEntries(AdminQuery query,
int offset,
int rows)
Get dictionary entries.
|
DictionaryEntry |
getDictionaryEntry(RevisionStatus view,
String entryId)
Get a dictionary entry based on its entryId.
|
String |
getDictionaryUri(DictionaryInfo info) |
String |
getIndexFeature() |
AdminQueryResult<DictionaryEntry> |
getPublishedEntities(String name,
String group,
String query,
int offset,
int rows)
Get a list of published entries for an entity dictionary.
|
void |
importDictionary(String contentStoreId) |
DictionaryInfo |
publishDictionary(DictionaryInfo info)
Publish approved changes to dictionary identified by
info . |
DictionaryInfo |
refreshDictionary(DictionaryInfo info)
Refresh dictionary identified by
info . |
DictionaryInfo |
registerDictionary(DictionaryInfo info,
String contentStoreId)
Create dictionary defined by
info and import all dictionary entries at contentStoreId in csv format. |
void |
replaceDictionary(String contentStoreId)
Replace dictionary with import.
|
DictionaryInfo |
replaceDictionaryEntries(DictionaryInfo info,
String contentStoreId)
Add all entries from
contentStorId in csv format to dictionary identified by info . |
DictionaryInfo |
revertDictionary(DictionaryInfo info,
boolean recursive)
Revert pending changes to dictionary.
|
DictionaryInfo |
revertDictionaryApproval(DictionaryInfo info,
boolean recursive)
Revert approved changes to dictionary.
|
DictionaryEntry |
revertDictionaryEntry(DictionaryEntry entry)
Revert pending changes to dictionary entry.
|
DictionaryEntry |
revertDictionaryEntryApproval(DictionaryEntry entry)
Revert approved changes to dictionary entry.
|
void |
storeDictionaryInContentStore(String contentStoreId,
byte[] bytes)
Deprecated.
|
DictionaryInfo |
updateDictionary(DictionaryInfo info)
Update dictionary
info . |
DictionaryEntry |
updateDictionaryEntry(DictionaryEntry entry)
Update a dictionary entry.
|
static final String DICTIONARY_RESOURCES_NAME
GlobalMap
that contains published dictionaries.String getDictionaryUri(DictionaryInfo info)
String getIndexFeature()
DictionaryInfo registerDictionary(DictionaryInfo info, String contentStoreId) throws AttivioException
info
and import all dictionary entries at contentStoreId
in csv format.
Dictionary identified by info
must not exist.
AttivioException
DictionaryInfo createDictionaryEntries(DictionaryInfo info, String contentStoreId) throws AttivioException
contentStorId
in csv format to dictionary identified by info
.
Dictionary identified by info
must already exist.
AttivioException
DictionaryInfo cloneDictionary(DictionaryInfo source, DictionaryInfo dest) throws AttivioException
source
to dest
.
Dictionary type for source
and dest
must be the same.
AttivioException
String exportDictionary(DictionaryInfo info) throws AttivioException
Returns ContentStore Id where export has been stored.
AttivioException
void importDictionary(String contentStoreId) throws AttivioException
AttivioException
@Deprecated void storeDictionaryInContentStore(String contentStoreId, byte[] bytes) throws AttivioException
contentStoreId
- bytes
- AttivioException
@Deprecated void deleteDictionaryFromContentStore(String contentStoreId) throws AttivioException
contentStoreId
- AttivioException
void replaceDictionary(String contentStoreId) throws AttivioException
AttivioException
DictionaryInfo replaceDictionaryEntries(DictionaryInfo info, String contentStoreId) throws AttivioException
contentStorId
in csv format to dictionary identified by info
.
All dictionary entries that previously existed for info
will be removed.
Dictionary identified by info
must already exist.
AttivioException
DictionaryInfo createDictionary(DictionaryInfo info) throws AttivioException
info
.
Dictionary must not exist yet.
AttivioException
DictionaryInfo updateDictionary(DictionaryInfo info) throws AttivioException
info
.
Dictionary must already exist and must not be deleted.
AttivioException
DictionaryInfo deleteDictionary(DictionaryInfo info) throws AttivioException
info
.
Dictionary must already exist and must not be deleted already.
AttivioException
DictionaryInfo revertDictionary(DictionaryInfo info, boolean recursive) throws AttivioException
Dictionary already must exist
AttivioException
DictionaryInfo revertDictionaryApproval(DictionaryInfo info, boolean recursive) throws AttivioException
NOTE: any pending changes will be replaced with current approved version.
Dictionary must already exist
AttivioException
DictionaryEntry createDictionaryEntry(DictionaryEntry entry) throws AttivioException
Dictionary for entry must exist and dictionary term for entry must not yet exist.
AttivioException
DictionaryEntry updateDictionaryEntry(DictionaryEntry entry) throws AttivioException
DictionaryEntry must exist (identified by DictionaryEntry.getEntryId()
)
Dictionary term (if changed) must not exist yet.
Dictionary type/name/id must not be changed.
AttivioException
DictionaryEntry deleteDictionaryEntry(DictionaryEntry entry) throws AttivioException
DictionaryEntry must exist (identified by DictionaryEntry.getEntryId()
)
AttivioException
DictionaryEntry revertDictionaryEntry(DictionaryEntry entry) throws AttivioException
DictionaryEntry must exist (identified by DictionaryEntry.getEntryId()
)
AttivioException
DictionaryEntry revertDictionaryEntryApproval(DictionaryEntry entry) throws AttivioException
NOTE: any pending changes will be replaced with previously approved version.
DictionaryEntry must exist (identified by DictionaryEntry.getEntryId()
)
AttivioException
DictionaryInfo getDictionary(RevisionStatus view, DictionaryType type, String name, String group) throws AttivioException
AttivioException
AdminQueryResult<DictionaryEntry> getPublishedEntities(String name, String group, String query, int offset, int rows) throws AttivioException
The returned entries will be extracted from the published dictionary.
name
- The dictionary name to select entries from.group
- The dictionary group to select entries from.query
- The prefix query to select terms from dictionary.offset
- the offset into the result set for returned entries.rows
- the maximum number of entries to return (starting at offset).AttivioException
AdminQueryResult<DictionaryInfo> getDictionaries(AdminQuery query, int offset, int rows) throws AttivioException
query
- Query for selecting matching dictionaries.offset
- the offset into the result set for returned entries.rows
- the maximum number of dictionaries to return (starting at offset)AttivioException
DictionaryEntry getDictionaryEntry(RevisionStatus view, String entryId) throws AttivioException
AttivioException
AdminQueryResult<DictionaryEntry> getDictionaryEntries(AdminQuery query, int offset, int rows) throws AttivioException
query
- Query for selecting matching entries.offset
- the offset into the result set for returned entries.rows
- the maximum number of entries to return (starting at offset)AttivioException
DictionaryInfo approveDictionary(DictionaryInfo info) throws AttivioException
info
.AttivioException
DictionaryInfo publishDictionary(DictionaryInfo info) throws AttivioException
info
.AttivioException
DictionaryInfo refreshDictionary(DictionaryInfo info) throws AttivioException
info
.
For spellcheck dictionaries, this will result in extracting new terms/frequencies from the index.
For all dictionaries, this will result in notifying Query Transformers to reload their dictionary.
AttivioException
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.