Class jabberwerx.cisco.DirectoryGroupsController
Extends
jabberwerx.Controller.
Controller class for dealing with Group Presence - LDAP Integration(IJEP-070) functionality.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new DirectoryGroupsController with the given client. |
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 Attributes | Method Name and Description |
---|---|
Active subscribed groups |
|
destroy()
Destroy directory groups controller and unbind client events
|
|
isLDAPContact(jid)
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 |
|
unsubscribeGroup(groupId)
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
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
Errors of directory group controller.
ActiveGroupServerFailedError : Can't active group subscription. NoGroupAddressError : Can't get group server address.
Active subscribed groups
- Throws:
- {jabberwerx.DirectoryGroupsController.errors.ActiveGroupServerFailedError}
- CANT_ACTIVE_LDAP_SUBSCRIPTION error if an LDAP component does not exist on the connected server
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.
Search directory groups.
- Parameters:
- {String} groupName
- Group name to search for.
- {Number} count
- Optional, limit search result number.
- Returns:
- {Number} Search serial number.
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.
Subscribe an LDAP group
- Parameters:
- {String} groupId
- The id of LDAP group
Remove the subscription of an LDAP group.
- Parameters:
- {String} groupId
- The id of LDAP group