Package tigase.http.modules.rest
Class ApiKeyRepository
java.lang.Object
tigase.db.comp.ConfigRepository<Item>
tigase.db.comp.UserRepoRepository<ApiKeyItem>
tigase.http.modules.rest.ApiKeyRepository
- All Implemented Interfaces:
Iterable<ApiKeyItem>
,tigase.db.comp.ComponentRepository<ApiKeyItem>
,tigase.db.Repository
,tigase.kernel.beans.Initializable
,tigase.kernel.beans.UnregisterAware
@Bean(name="repository",
parent=AbstractModule.class,
active=true)
@ConfigType({DefaultMode,SessionManagerMode,ConnectionManagersMode,ComponentMode})
public class ApiKeyRepository
extends tigase.db.comp.UserRepoRepository<ApiKeyItem>
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.db.Repository
tigase.db.Repository.Meta, tigase.db.Repository.SchemaId
-
Field Summary
Fields inherited from class tigase.db.comp.UserRepoRepository
repo, REPO_CLASS_PROP_KEY, REPO_URI_PROP_KEY
Fields inherited from class tigase.db.comp.ConfigRepository
autoReloadInterval, items, itemsHash
Fields inherited from interface tigase.db.comp.ComponentRepository
COMP_REPO_BIND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(ApiKeyItem item) void
void
destroy()
String[]
tigase.xmpp.jid.BareJID
void
void
initRepository
(String resource_uri, Map<String, String> params) Deprecated.boolean
void
itemsChanged
(ApiKeyRepository.ItemsChangedEvent itemsChanged) void
removeItem
(String key) void
setRepo
(tigase.db.UserRepository userRepository) void
setRepoUser
(tigase.xmpp.jid.BareJID repoUserJid) Methods inherited from class tigase.db.comp.UserRepoRepository
reload, store
Methods inherited from class tigase.db.comp.ConfigRepository
addItemNoStore, addRepoChangeListener, allItems, contains, getDefaultItems, getDefaults, getItem, getItemsOld, initItemsMap, isInitialized, itemChanged, iterator, removeItemNoStore, removeRepoChangeListener, setAutoloadTimer, setAutoReloadInterval, setItemsOld, setProperties, size, toString, validateItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
API_KEYS_KEY
- See Also:
-
-
Constructor Details
-
ApiKeyRepository
public ApiKeyRepository()
-
-
Method Details
-
getRepoUser
public tigase.xmpp.jid.BareJID getRepoUser()- Specified by:
getRepoUser
in classtigase.db.comp.UserRepoRepository<ApiKeyItem>
-
setRepoUser
public void setRepoUser(tigase.xmpp.jid.BareJID repoUserJid) -
getConfigKey
- Specified by:
getConfigKey
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
getDefaultPropetyItems
- Overrides:
getDefaultPropetyItems
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
getItemsListPKey
- Overrides:
getItemsListPKey
in classtigase.db.comp.UserRepoRepository<ApiKeyItem>
-
getPropertyKey
- Specified by:
getPropertyKey
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
getItemInstance
-
isAllowed
-
setRepo
public void setRepo(tigase.db.UserRepository userRepository) - Overrides:
setRepo
in classtigase.db.comp.UserRepoRepository<ApiKeyItem>
-
destroy
public void destroy() -
initRepository
@Deprecated public void initRepository(String resource_uri, Map<String, String> params) throws tigase.db.DBInitExceptionDeprecated.- Throws:
tigase.db.DBInitException
-
initialize
public void initialize()- Specified by:
initialize
in interfacetigase.kernel.beans.Initializable
- Overrides:
initialize
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
- Overrides:
beforeUnregister
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
addItem
- Specified by:
addItem
in interfacetigase.db.comp.ComponentRepository<ApiKeyItem>
- Overrides:
addItem
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
removeItem
- Specified by:
removeItem
in interfacetigase.db.comp.ComponentRepository<ApiKeyItem>
- Overrides:
removeItem
in classtigase.db.comp.ConfigRepository<ApiKeyItem>
-
itemsChanged
-