Module database_gruu

GRUU database functions.

Introduced in: 3 Mar 2006 by Fredrik Thulin <ft@it.su.se>

Authors: Fredrik Thulin (ft@it.su.se).

Description

GRUU database functions.

Data Types

gruu()

gruu() = #gruu{}

private Mnesia record, the interface record is called gruu_dbe

transaction_result()

transaction_result() = {atomic, Result} | {aborted, Reason}

The result of a Mnesia transaction. Result is a term().

Function Index

delete/1 Delete all GRUUs matching a GRUU string.
delete_gruus_for_instance/1 Delete all GRUUs matching an Instance ID.
delete_gruus_for_user/1 Delete all GRUUs matching a SIP user.
fetch_all/0 Fetch all GRUU database entrys.
fetch_using_gruu/1 Fetch a GRUU database entry based on the GRUU string.
fetch_using_instance/1 Fetch all GRUU database entrys matching an Instance ID.
fetch_using_user_instance/2 Fetch a GRUU database entry based on a SipUser and an Instance ID.
insert/4 Create a new GRUU entry in the database.
list/0 List all GRUUs in the database.
update_last_registered/1 Update the 'last_registered' on the GRUU database entry matching GRUU.

Function Details

delete/1

delete(GRUU) -> transaction_result()

Delete all GRUUs matching a GRUU string.

delete_gruus_for_instance/1

delete_gruus_for_instance(InstanceId) -> transaction_result()

Delete all GRUUs matching an Instance ID.

delete_gruus_for_user/1

delete_gruus_for_user(SipUser) -> transaction_result()

Delete all GRUUs matching a SIP user.

fetch_all/0

fetch_all() -> {ok, GRUUs} | nomatch

Fetch all GRUU database entrys.

fetch_using_gruu/1

fetch_using_gruu(GRUU) -> {ok, GRUUs} | nomatch

Fetch a GRUU database entry based on the GRUU string.

fetch_using_instance/1

fetch_using_instance(InstanceId) -> {ok, GRUUs} | nomatch

Fetch all GRUU database entrys matching an Instance ID. There might be more than one if a UA uses a single Instance ID to acquire GRUUs for multiple users (AORs in the GRUU draft).

fetch_using_user_instance/2

fetch_using_user_instance(SipUser, InstanceId) -> {ok, GRUUs} | nomatch

Fetch a GRUU database entry based on a SipUser and an Instance ID.

insert/4

insert(GRUU, SIPuser, InstanceId, Flags) -> transaction_result()

Create a new GRUU entry in the database.

list/0

list() -> [#gruu{}]

List all GRUUs in the database.

update_last_registered/1

update_last_registered(GRUU) -> transaction_result()

Update the 'last_registered' on the GRUU database entry matching GRUU.


Generated by EDoc, Oct 17 2007, 16:48:08.