Module acl [erl svg]
acl() = {acl, ACLName, ACLSpec}
Record in its Ejabberd-configuration-file variant.
aclspec() = all | JID_Exact | JID_Regexp | JID_Glob | Shared_Group
- JID_Exact = {user, U} | {user, U, S} | {server, S} | {resource, R}
- U = string()
- S = string()
- R = string()
- JID_Regexp = {user_regexp, UR} | {user_regexp, UR, S} | {server_regexp, SR} | {resource_regexp, RR} | {node_regexp, UR, SR}
- UR = string()
- SR = string()
- RR = string()
- JID_Glob = {user_glob, UG} | {user_glob, UG, S} | {server_glob, SG} | {resource_glob, RG} | {node_glob, UG, SG}
- UG = string()
- SG = string()
- RG = string()
- Shared_Group = {shared_group, G} | {shared_group, G, H}
- G = string()
- H = string()
storedacl() = {acl, {ACLName, Host}, ACLSpec}
- ACLName = atom()
- Host = global | string()
- ACLSpec = aclspec()
Record in its Mnesia-table-record variant.
add(Host, ACLName, ACLSpec) -> {atomic, ok} | {aborted, Reason}
- Host = global | string()
- ACLName = atom()
- ACLSpec = all | none | aclspec()
- Reason = term()
add_list(Host, ACLs, Clear) -> ok | false
- Host = global | string()
- ACLs = [acl()]
- Clear = bool()
is_glob_match(String, Glob) -> bool()
- String = string() | undefined
- Glob = string()
is_regexp_match(String, RegExp) -> bool()
- String = string() | undefined
- RegExp = string()
match_acl(ACLName, JID, Host) -> bool()
match_acls(ACLs, JID, Host) -> Access
- ACLs = [{Access, ACLName}]
- Access = deny | atom()
- ACLName = atom()
- JID = exmpp_jid:jid()
- Host = string()
match_rule(Host, Rule, JID) -> Access
- Host = global | string()
- Rule = all | none | atom()
- JID = exmpp_jid:jid()
- Access = allow | deny | atom()
normalize(String) -> Prepd_String
- String = string()
- Prepd_String = string()
normalize_spec(X1::ACLSpec) -> Normalized_ACLSpec
to_record(Host, ACLName, ACLSpec) -> storedacl()
- Host = global | string()
- ACLName = atom()
- ACLSpec = aclspec()
Generated by EDoc, May 23 2012, 07:15:18.