Class Index | Minimal

Classes


Class jabberwerx.cisco.DirectoryGroupsController


Extends jabberwerx.Controller.

Controller class for dealing with Group Presence - LDAP Integration(IJEP-070) functionality.

Class Summary
Constructor Attributes Constructor Name and Description
 

Creates a new DirectoryGroupsController with the given client.

Field Summary
Field Attributes Field Name and Description
 

Errors of directory group controller.

 
Serial number for each search.
Fields borrowed from class jabberwerx.Controller:
client, name
Method Summary
Method Attributes Method Name and Description
 

Active subscribed groups

 
Destroy directory groups controller and unbind client events
 

Check the contact whether belong to LDAP groups.

 
searchGroup(groupName, count)

Search directory groups.

 
searchUsersByFields(searchFields, count)

Search LDAP users by custom field.

 
subscribeGroup(groupId)

Subscribe an LDAP group

 

Remove the subscription of an LDAP group.

Methods borrowed from class jabberwerx.Controller:
cleanupEntity, removeEntity, updateEntity
Methods borrowed from class jabberwerx.JWModel:
applyEvent, event, shouldBeSavedWithGraph
Methods borrowed from class jabberwerx.JWBase:
getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString, wasUnserialized, willBeSerialized
Class Detail
jabberwerx.cisco.DirectoryGroupsController(client)

Creates a new DirectoryGroupsController with the given client.

Parameters:
{jabberwerx.Client} client
The client object to use for communicating to the server
Throws:
{TypeError}
If {client} is not an instance of jabberwerx.Client
Field Detail
errors

Errors of directory group controller.

ActiveGroupServerFailedError : Can't active group subscription.
NoGroupAddressError : Can't get group server address.


searchID
Serial number for each search.
Method Detail
activateSubscriptions()

Active subscribed groups

Throws:
{jabberwerx.DirectoryGroupsController.errors.ActiveGroupServerFailedError}
CANT_ACTIVE_LDAP_SUBSCRIPTION error if an LDAP component does not exist on the connected server

destroy()
Destroy directory groups controller and unbind client events

{Boolean} isLDAPContact(jid)

Check the contact whether belong to LDAP groups.

Parameters:
{String} jid
The contact's jabber id.
Returns:
{Boolean} true if {jid} is belong to LDAP groups.

{Number} searchGroup(groupName, count)

Search directory groups.

Parameters:
{String} groupName
Group name to search for.
{Number} count
Optional, limit search result number.
Returns:
{Number} Search serial number.

{Number} searchUsersByFields(searchFields, count)

Search LDAP users by custom field.

Parameters:
{Object} searchFields
An object contains field name and value. For example: {'userid' : '007', 'displayname' : 'James Bond', 'firstname': 'James', 'lastname': 'Bond', 'ssoid_searchuser': 'ssoid'}
{Number} count
Optional, limit search result number.
Returns:
{Number} Search serial number.

subscribeGroup(groupId)

Subscribe an LDAP group

Parameters:
{String} groupId
The id of LDAP group

unsubscribeGroup(groupId)

Remove the subscription of an LDAP group.

Parameters:
{String} groupId
The id of LDAP group

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 02 2014 13:23:41 GMT-0600 (MDT)