@Bean(name="repository",
parent=AbstractModule.class,
active=true)
@ConfigAliases(value=@ConfigAlias(field="items",alias="api-keys"))
@ConfigType(value={DefaultMode,SessionManagerMode,ConnectionManagersMode,ComponentMode})
public class ApiKeyRepository
extends tigase.db.comp.UserRepoRepository<ApiKeyItem>
| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEYS_KEY |
| Constructor and Description |
|---|
ApiKeyRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getConfigKey() |
String[] |
getDefaultPropetyItems() |
ApiKeyItem |
getItemInstance() |
String |
getItemsListPKey() |
String |
getPropertyKey() |
tigase.xmpp.BareJID |
getRepoUser() |
void |
initRepository(String resource_uri,
Map<String,String> params)
Deprecated.
|
boolean |
isAllowed(String key,
String domain,
String path) |
void |
setItems(String[] items) |
void |
setRepo(tigase.db.UserRepository userRepository) |
void |
setRepoUser(tigase.xmpp.BareJID repoUserJid) |
addItem, addItemNoStore, addRepoChangeListener, allItems, beforeUnregister, contains, getDefaults, getItem, getItems, initialize, initItemsMap, isInitialized, itemChanged, iterator, removeItem, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setProperties, size, toString, validateItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final String API_KEYS_KEY
public tigase.xmpp.BareJID getRepoUser()
getRepoUser in class tigase.db.comp.UserRepoRepository<ApiKeyItem>public void setRepoUser(tigase.xmpp.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 setItems(String[] items)
setItems in class tigase.db.comp.ConfigRepository<ApiKeyItem>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.DBInitExceptionCopyright © 2017 Tigase. All rights reserved.