public class ManagedWordSetResource extends ManagedResource implements ManagedResource.ChildResourceSupport
ManagedResource.ChildResourceSupport
Modifier and Type | Field and Description |
---|---|
static String |
IGNORE_CASE_INIT_ARG |
static String |
WORD_SET_JSON_FIELD |
INIT_ARGS_JSON_FIELD, INITIALIZED_ON_JSON_FIELD, initializedOn, lastUpdateSinceInitialization, log, MANAGED_JSON_LIST_FIELD, MANAGED_JSON_MAP_FIELD, managedInitArgs, solrResourceLoader, storage, UPDATED_SINCE_INIT_JSON_FIELD
Constructor and Description |
---|
ManagedWordSetResource(String resourceId,
SolrResourceLoader loader,
ManagedResourceStorage.StorageIO storageIO) |
Modifier and Type | Method and Description |
---|---|
protected Object |
applyUpdatesToManagedData(Object updates)
Applies updates to the word set being managed by this resource.
|
void |
doDeleteChild(BaseSolrResource endpoint,
String childId)
Deletes words managed by this resource.
|
void |
doGet(BaseSolrResource endpoint,
String childId)
Implements the GET request to provide the list of words to the client.
|
boolean |
getIgnoreCase()
Returns the boolean value of the
IGNORE_CASE_INIT_ARG init arg,
or the default value (false) if it has not been specified |
boolean |
getIgnoreCase(NamedList<?> initArgs)
Returns the boolean value of the
IGNORE_CASE_INIT_ARG init arg,
or the default value (false) if it has not been specified |
Set<String> |
getWordSet()
Returns the set of words in this managed word set.
|
protected void |
onManagedDataLoadedFromStorage(NamedList<?> initArgs,
Object data)
Invoked when loading data from storage to initialize the
list of words managed by this instance.
|
protected boolean |
updateInitArgs(NamedList<?> updatedArgs)
Called from
ManagedResource.doPut(BaseSolrResource,Representation,Object)
to update this resource's init args using the given updatedArgs |
buildMapToStore, convertNamedListToMap, createStorage, doPost, doPut, getInitializedOn, getResourceId, getResourceLoader, getServerResourceClass, getUpdatedSinceInitialization, hasChangesSinceInitialization, loadManagedDataAndNotify, notifyObserversDuringInit, onResourceDeleted, reloadFromStorage, storeManagedData
public static final String WORD_SET_JSON_FIELD
public static final String IGNORE_CASE_INIT_ARG
public ManagedWordSetResource(String resourceId, SolrResourceLoader loader, ManagedResourceStorage.StorageIO storageIO) throws SolrException
SolrException
public boolean getIgnoreCase()
IGNORE_CASE_INIT_ARG
init arg,
or the default value (false) if it has not been specifiedpublic boolean getIgnoreCase(NamedList<?> initArgs)
IGNORE_CASE_INIT_ARG
init arg,
or the default value (false) if it has not been specifiedprotected void onManagedDataLoadedFromStorage(NamedList<?> initArgs, Object data) throws SolrException
onManagedDataLoadedFromStorage
in class ManagedResource
SolrException
public void doGet(BaseSolrResource endpoint, String childId)
doGet
in class ManagedResource
public void doDeleteChild(BaseSolrResource endpoint, String childId)
doDeleteChild
in class ManagedResource
protected Object applyUpdatesToManagedData(Object updates)
applyUpdatesToManagedData
in class ManagedResource
protected boolean updateInitArgs(NamedList<?> updatedArgs)
ManagedResource
ManagedResource.doPut(BaseSolrResource,Representation,Object)
to update this resource's init args using the given updatedArgsupdateInitArgs
in class ManagedResource
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.