Collection Manager
-
class
wlts.collections.collection_manager.CollectionManager This is a singleton to manage all collections instances available.
-
static
register_factories() → None Register the Collection.
-
insert(collection_type: str, collection_info: dict) → None Method to creates a new collection and stores in list of collections.
- Parameters
collection_type (str) – The collection type to be create.
collection_info (dict) – The collection information.
-
collection(collection_id: str) Return the collection.
- Parameters
collection_id (str) – Identifier (name) of an collection.
- Returns
A collection available in the server.
- Return type
collection
-
find_collections(names: list) Return list of collections.
- Parameters
names (list) – A list with the collections names.
- Returns
All collection available in the server.
- Return type
collections
-
collection_names() Return all available collections.
- Returns
A list with all collections identifier (name) available in the server.
- Return type
list
-
collections() → ValuesView Returns a list with all collections objects.
-
load_all() → None Creates all collection based on json of feature and feature collection.
-
static
-
class
wlts.collections.collection_manager.CollectionFactory Factory Class for Collection.
-
classmethod
register(name, factory) Register a new Collection.
-
classmethod
make(collection_type: str, collections_info: dict) Factory method to create a collection.
- Parameters
collection_type (str) – The collection type to be create.
collections_info (dict) – The collection information.
- Returns
A collection object.
- Return type
collection
-
classmethod