Module ejabberd_piefxis [erl svg]

Function Index

add_user/2*
add_user/5*Add a new user to the database.
build_password_string/1*
create_user/3* Create a new user.
export_host/2
export_host/3*
export_hosts/2*
export_server/1
export_user/3*Extract user information and print it.
extract_user/2*
extract_user_info/3*
file_close/1*
file_open/1*
get_user_private_mnesia/2*
import_file/1
import_file/2*
loaded_module/2*
make_filename_template/0*
make_host_basefilename/2*
make_host_filename/2*Make the filename for the host.
make_main_basefilename/2*
make_piefxis_host_head/1*
make_piefxis_host_tail/0*
make_piefxis_server_head/0*
make_piefxis_server_tail/0*
make_piefxis_xml_head/0*
make_piefxis_xml_tail/0*
make_timestamp/0*
make_xinclude/1*
mnesia_pop_offline_messages/3*
populate_user/3* Add a new user from a XML file with a roster list.
populate_user_with_elements/3*
prepare_password/3*
print/2*
process_chunk/2*
process_element/2*
process_elements/2*
read_chunks/2*
try_open_file/1*
try_start_exmpp/0*

Function Details

add_user/2 *

add_user(El, Domain) -> any()

add_user/5 *

add_user(El::xmlel(), Domain::string(), User::binary(), PasswordFormat::binary(), Password::binary() | none) -> ok | {error, ErrorText::string()}

Add a new user to the database. If user already exists, it will be only updated.

build_password_string/1 *

build_password_string(Password) -> any()

create_user/3 *

create_user(User::string(), Password::string(), Domain::string()) -> ok | {atomic, exists} | {error, not_allowed}

Create a new user

export_host/2

export_host(Dir::string(), Host::string()) -> ok

export_host/3 *

export_host(Dir::string(), Fn::string(), Host::string()) -> ok

export_hosts/2 *

export_hosts(Dir::string(), Hosts::[string()]) -> ok

export_server/1

export_server(Dir::string()) -> ok

export_user/3 *

export_user(Fd, Username::string(), Host::string()) -> ok

Extract user information and print it.

extract_user/2 *

extract_user(Username::string(), Host::string()) -> string()

extract_user_info/3 *

extract_user_info(InfoName::atom(), Username::string(), Host::string()) -> string()

file_close/1 *

file_close(Fd) -> ok

file_open/1 *

file_open(Fn::string()) -> {ok, Fd}

get_user_private_mnesia/2 *

get_user_private_mnesia(Username, Host) -> any()

import_file/1

import_file(FileName) -> any()

import_file/2 *

import_file(FileName, RootDepth) -> any()

loaded_module/2 *

loaded_module(Domain, Options) -> any()

make_filename_template/0 *

make_filename_template() -> string()

make_host_basefilename/2 *

make_host_basefilename(Dir, FnT) -> any()

make_host_filename/2 *

make_host_filename(FnT::string(), Host::string()) -> FnH::string()

Make the filename for the host. Example: ("20080804-231550", "jabber.example.org") -> "20080804-231550_jabber_example_org.xml"

make_main_basefilename/2 *

make_main_basefilename(Dir::string(), FnT::string()) -> string()

make_piefxis_host_head/1 *

make_piefxis_host_head(Host::string()) -> string()

make_piefxis_host_tail/0 *

make_piefxis_host_tail() -> string()

make_piefxis_server_head/0 *

make_piefxis_server_head() -> string()

make_piefxis_server_tail/0 *

make_piefxis_server_tail() -> string()

make_piefxis_xml_head/0 *

make_piefxis_xml_head() -> string()

make_piefxis_xml_tail/0 *

make_piefxis_xml_tail() -> string()

make_timestamp/0 *

make_timestamp() -> any()

make_xinclude/1 *

make_xinclude(Fn::string()) -> string()

mnesia_pop_offline_messages/3 *

mnesia_pop_offline_messages(Ls, User, Server) -> any()

populate_user/3 *

populate_user(User::string(), Domain::string(), El::xml()) -> ok | {error, not_found}

Add a new user from a XML file with a roster list.

Example of a file:
  <?xml version='1.0' encoding='UTF-8'?>
  <server-data xmlns='http://www.xmpp.org/extensions/xep-0227.html#ns'>
    <host jid='localhost'>
      <user name='juliet' password='s3crEt'>
        <query xmlns='jabber:iq:roster'>
          <item jid='romeo@montague.net'
                name='Romeo'
                subscription='both'>
            <group>Friends</group>
          </item>
        </query>
      </user>
    </host>
   </server-data>

populate_user_with_elements/3 *

populate_user_with_elements(El, Domain, User) -> any()

prepare_password/3 *

prepare_password(X1, PasswordBinary, El) -> any()

print/2 *

print(Fd, String::string()) -> ok

process_chunk/2 *

process_chunk(Chunk, S) -> any()

process_element/2 *

process_element(El, State) -> any()

process_elements/2 *

process_elements(Elements, State) -> any()

read_chunks/2 *

read_chunks(IO, State) -> any()

try_open_file/1 *

try_open_file(FileName) -> any()

try_start_exmpp/0 *

try_start_exmpp() -> any()


Generated by EDoc, May 23 2012, 07:15:16.