tigase.db.comp

## Class UserRepoRepository<Item extends RepositoryItem>

- java.lang.Object
- - tigase.db.comp.ConfigRepository<Item>
  - - tigase.db.comp.UserRepoRepository<Item>

- Type Parameters:
    `Item` -
  All Implemented Interfaces:
    Iterable<Item>, ComponentRepository<Item>, Repository
  Direct Known Subclasses:
    CompDBRepository, TaskConfigItemJDBCRepository, VHostJDBCRepository

      public abstract class UserRepoRepository<Item extends RepositoryItem>
      extends ConfigRepository<Item>

  Created: Oct 3, 2009 3:55:27 PM
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface tigase.db.Repository

      `Repository.Meta`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `REPO_CLASS_PROP_KEY` Field description
    `static String` | `REPO_URI_PROP_KEY` Field description

    - ### Fields inherited from class tigase.db.comp.ConfigRepository

      `items, itemsHash`

    - ### Fields inherited from interface tigase.db.comp.ComponentRepository

      `COMP_REPO_BIND`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UserRepoRepository()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    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

    - ### Methods inherited from class tigase.db.comp.ConfigRepository

      `addItem, addItemNoStore, addRepoChangeListener, allItems, contains, getConfigKey, getDefaultPropetyItems, getItem, getPropertyKey, initItemsMap, itemChanged, iterator, removeItem, removeRepoChangeListener, setAutoloadTimer, size, toString, validateItem`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface tigase.db.comp.ComponentRepository

      `destroy, getItemInstance`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

    - ### Methods inherited from interface tigase.db.Repository

      `initRepository`

- - ### Field Detail

    - #### REPO_CLASS_PROP_KEY

          public static final String REPO_CLASS_PROP_KEY

      Field description
      See Also:
        Constant Field Values

    - #### REPO_URI_PROP_KEY

          public static final String REPO_URI_PROP_KEY

      Field description
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### UserRepoRepository

          public UserRepoRepository()

  - ### Method Detail

    - #### getRepoUser

          public abstract BareJID getRepoUser()

      Method description

    - #### getDefaults

          public void getDefaults(Map<String,Object> defs,
                                  Map<String,Object> params)

      Description copied from interface: `ComponentRepository`
      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. Default settings returned by this method are then saved in the configuration file and presented to the admin for further adjustments.
      Specified by:
        `getDefaults` in interface `ComponentRepository<Item extends RepositoryItem>`
      Overrides:
        `getDefaults` in class `ConfigRepository<Item extends RepositoryItem>`
      Parameters:
        `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.

    - #### getItemsListPKey

          public String getItemsListPKey()

      Method description

    - #### reload

          public void reload()

      Method description
      Specified by:
        `reload` in interface `ComponentRepository<Item extends RepositoryItem>`
      Overrides:
        `reload` in class `ConfigRepository<Item extends RepositoryItem>`

    - #### setProperties

          public void setProperties(Map<String,Object> properties)

      Method description
      Specified by:
        `setProperties` in interface `ComponentRepository<Item extends RepositoryItem>`
      Overrides:
        `setProperties` in class `ConfigRepository<Item extends RepositoryItem>`
      Parameters:
        `properties` -

    - #### store

          public void store()

      Method description
      Specified by:
        `store` in interface `ComponentRepository<Item extends RepositoryItem>`
      Overrides:
        `store` in class `ConfigRepository<Item extends RepositoryItem>`

Copyright © 2022 "Tigase, Inc.". All rights reserved.