|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.messenger.ldap.LdapGroupProvider
public class LdapGroupProvider
LDAP implementation of the GroupProvider interface. All data in the directory is treated as read-only so any set operations will result in an exception.
Constructor Summary | |
---|---|
LdapGroupProvider()
Constructor of the LdapGroupProvider class. |
Method Summary | |
---|---|
void |
addMember(String groupName,
String username,
boolean administrator)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
Group |
createGroup(String name)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
void |
deleteGroup(String name)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
void |
deleteMember(String groupName,
String username)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
Group |
getGroup(String group)
Returns a group based on it's name. |
int |
getGroupCount()
Returns the number of groups in the system. |
Collection<Group> |
getGroups()
Returns the Collection of all groups in the system. |
Collection<Group> |
getGroups(int start,
int num)
Returns the Collection of all groups in the system. |
Collection<Group> |
getGroups(User user)
Returns the Collection of Groups that a user belongs to. |
boolean |
isReadOnly()
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
void |
setDescription(String name,
String description)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
void |
setName(String oldName,
String newName)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
void |
updateMember(String groupName,
String username,
boolean administrator)
Always throws an UnsupportedOperationException because LDAP groups are read-only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapGroupProvider()
Method Detail |
---|
public Group createGroup(String name) throws UnsupportedOperationException
createGroup
in interface GroupProvider
name
- the name of the group to create.
UnsupportedOperationException
- when called.public void deleteGroup(String name) throws UnsupportedOperationException
deleteGroup
in interface GroupProvider
name
- the name of the group to delete
UnsupportedOperationException
- when called.public Group getGroup(String group)
GroupProvider
getGroup
in interface GroupProvider
group
- the name of the group.
public void setName(String oldName, String newName) throws UnsupportedOperationException
setName
in interface GroupProvider
oldName
- the current name of the group.newName
- the desired new name of the group.
UnsupportedOperationException
- when called.public void setDescription(String name, String description) throws UnsupportedOperationException
setDescription
in interface GroupProvider
name
- the group name.description
- the group description.
UnsupportedOperationException
- when called.public int getGroupCount()
GroupProvider
getGroupCount
in interface GroupProvider
public Collection<Group> getGroups()
GroupProvider
getGroups
in interface GroupProvider
public Collection<Group> getGroups(int start, int num)
GroupProvider
getGroups
in interface GroupProvider
start
- start index in results.num
- number of results to return.
public Collection<Group> getGroups(User user)
GroupProvider
getGroups
in interface GroupProvider
user
- the user.
public void addMember(String groupName, String username, boolean administrator) throws UnsupportedOperationException
addMember
in interface GroupProvider
groupName
- name of a group.username
- name of a user.administrator
- true if is an administrator.
UnsupportedOperationException
- when called.public void updateMember(String groupName, String username, boolean administrator) throws UnsupportedOperationException
updateMember
in interface GroupProvider
groupName
- the naame of a group.username
- the name of a user.administrator
- true if is an administrator.
UnsupportedOperationException
- when called.public void deleteMember(String groupName, String username) throws UnsupportedOperationException
deleteMember
in interface GroupProvider
groupName
- the name of a group.username
- the ame of a user.
UnsupportedOperationException
- when called.public boolean isReadOnly()
isReadOnly
in interface GroupProvider
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |