@Bean(name="repository",
parent=AbstractModule.class,
active=true)
@ConfigType(value={DefaultMode,SessionManagerMode,ConnectionManagersMode,ComponentMode})
public class ApiKeyRepository
extends tigase.db.comp.UserRepoRepository<ApiKeyItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiKeyRepository.ItemsChangedEvent |
| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEYS_KEY |
| Constructor and Description |
|---|
ApiKeyRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(ApiKeyItem item) |
void |
beforeUnregister() |
void |
destroy() |
String |
getConfigKey() |
String[] |
getDefaultPropetyItems() |
ApiKeyItem |
getItemInstance() |
String |
getItemsListPKey() |
String |
getPropertyKey() |
tigase.xmpp.jid.BareJID |
getRepoUser() |
void |
initialize() |
void |
initRepository(String resource_uri,
Map<String,String> params)
Deprecated.
|
boolean |
isAllowed(String key,
String domain,
String path) |
void |
itemsChanged(ApiKeyRepository.ItemsChangedEvent itemsChanged) |
void |
removeItem(String key) |
void |
setRepo(tigase.db.UserRepository userRepository) |
void |
setRepoUser(tigase.xmpp.jid.BareJID repoUserJid) |
addItemNoStore, addRepoChangeListener, allItems, contains, getDefaultItems, getDefaults, getItem, getItemsOld, initItemsMap, isInitialized, itemChanged, iterator, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setItemsOld, setProperties, size, toString, validateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String API_KEYS_KEY
public tigase.xmpp.jid.BareJID getRepoUser()
getRepoUser in class tigase.db.comp.UserRepoRepository<ApiKeyItem>public void setRepoUser(tigase.xmpp.jid.BareJID repoUserJid)
public String getConfigKey()
getConfigKey in class tigase.db.comp.ConfigRepository<ApiKeyItem>public String[] getDefaultPropetyItems()
getDefaultPropetyItems in class tigase.db.comp.ConfigRepository<ApiKeyItem>public String getItemsListPKey()
getItemsListPKey in class tigase.db.comp.UserRepoRepository<ApiKeyItem>public String getPropertyKey()
getPropertyKey in class tigase.db.comp.ConfigRepository<ApiKeyItem>public ApiKeyItem getItemInstance()
public void setRepo(tigase.db.UserRepository userRepository)
setRepo in class tigase.db.comp.UserRepoRepository<ApiKeyItem>public void destroy()
@Deprecated public void initRepository(String resource_uri, Map<String,String> params) throws tigase.db.DBInitException
tigase.db.DBInitExceptionpublic void initialize()
initialize in interface tigase.kernel.beans.Initializableinitialize in class tigase.db.comp.ConfigRepository<ApiKeyItem>public void beforeUnregister()
beforeUnregister in interface tigase.kernel.beans.UnregisterAwarebeforeUnregister in class tigase.db.comp.ConfigRepository<ApiKeyItem>public void addItem(ApiKeyItem item)
addItem in interface tigase.db.comp.ComponentRepository<ApiKeyItem>addItem in class tigase.db.comp.ConfigRepository<ApiKeyItem>public void removeItem(String key)
removeItem in interface tigase.db.comp.ComponentRepository<ApiKeyItem>removeItem in class tigase.db.comp.ConfigRepository<ApiKeyItem>@HandleEvent public void itemsChanged(ApiKeyRepository.ItemsChangedEvent itemsChanged)
Copyright © 2013–2021 Tigase. All rights reserved.