Item
- public abstract class UserRepoRepository<Item extends RepositoryItem> extends ConfigRepository<Item>
Repository.Meta
Modifier and Type | Field and Description |
---|---|
static String |
REPO_CLASS_PROP_KEY
Field description
|
static String |
REPO_URI_PROP_KEY
Field description
|
items, itemsHash
COMP_REPO_BIND
Constructor and Description |
---|
UserRepoRepository() |
Modifier and Type | Method and Description |
---|---|
void |
getDefaults(Map<String,Object> defs,
Map<String,Object> params)
The method is called to obtain default configuration settings if there are
any for this repository implementation The configuration settings are
implementation dependent and there are no defaults set by the server.
|
String |
getItemsListPKey()
Method description
|
abstract BareJID |
getRepoUser()
Method description
|
void |
reload()
Method description
|
void |
setProperties(Map<String,Object> properties)
Method description
|
void |
store()
Method description
|
addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getConfigKey, getDefaultPropetyItems, getItem, getPropertyKey, initItemsMap, itemChanged, iterator, removeItem, removeRepoChangeListener, setAutoloadTimer, size, toString, validateItem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
destroy, getItemInstance
forEach, spliterator
initRepository
public static final String REPO_CLASS_PROP_KEY
public static final String REPO_URI_PROP_KEY
public abstract BareJID getRepoUser()
public void getDefaults(Map<String,Object> defs, Map<String,Object> params)
ComponentRepository
getDefaults
in interface ComponentRepository<Item extends RepositoryItem>
getDefaults
in class ConfigRepository<Item extends RepositoryItem>
defs
- is a Map
collection where all repository
configuration defaults must be put.params
- is a Map
collection with some preset properties for
the server. These settings can be used to adjust repository
defaults, for example they can contain database connection URL or
initial list of virtual domains.public String getItemsListPKey()
public void reload()
reload
in interface ComponentRepository<Item extends RepositoryItem>
reload
in class ConfigRepository<Item extends RepositoryItem>
public void setProperties(Map<String,Object> properties)
setProperties
in interface ComponentRepository<Item extends RepositoryItem>
setProperties
in class ConfigRepository<Item extends RepositoryItem>
properties
- public void store()
store
in interface ComponentRepository<Item extends RepositoryItem>
store
in class ConfigRepository<Item extends RepositoryItem>
Copyright © 2018 "Tigase, Inc.". All rights reserved.