com.stratelia.silverpeas.domains.ldapdriver
Class LDAPGroupUniqueDescriptor

java.lang.Object
  extended by com.stratelia.silverpeas.domains.ldapdriver.AbstractLDAPGroup
      extended by com.stratelia.silverpeas.domains.ldapdriver.LDAPGroupUniqueDescriptor

public class LDAPGroupUniqueDescriptor
extends AbstractLDAPGroup

This class manage groups that are described as follows : The group object contains an attribute that point to each users and sub-groups DN Example (with the attribute 'member') : member cn=user1,ou=people,o=stratelia member cn=user2,ou=people,o=stratelia ....

Author:
tleroi

Constructor Summary
LDAPGroupUniqueDescriptor()
           
 
Method Summary
protected  com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds, String parentId, String extraFilter)
          Method declaration THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNING
 String[] getGroupMemberGroupIds(String lds, String groupId)
          return the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)
protected  String[] getMemberGroupIds(String lds, String memberId, boolean isGroup)
           
protected  String[] getUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry)
          Method declaration
 String[] getUserMemberGroupIds(String lds, String userId)
          return the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)
 
Methods inherited from class com.stratelia.silverpeas.domains.ldapdriver.AbstractLDAPGroup
beginSynchronization, endSynchronization, getAllChangedGroups, getAllGroups, getGroup, getGroupByName, getGroupEntry, getGroupEntryByName, getGroups, getMaxTimeStamp, init, translateGroup, translateGroups
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPGroupUniqueDescriptor

public LDAPGroupUniqueDescriptor()
Method Detail

getMemberGroupIds

protected String[] getMemberGroupIds(String lds,
                                     String memberId,
                                     boolean isGroup)
                              throws AdminException
Throws:
AdminException

getGroupMemberGroupIds

public String[] getGroupMemberGroupIds(String lds,
                                       String groupId)
                                throws AdminException
Description copied from class: AbstractLDAPGroup
return the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)

Specified by:
getGroupMemberGroupIds in class AbstractLDAPGroup
groupId - the group's Id
Returns:
the groups that contain the group
Throws:
AdminException

getUserMemberGroupIds

public String[] getUserMemberGroupIds(String lds,
                                      String userId)
                               throws AdminException
Description copied from class: AbstractLDAPGroup
return the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING)

Specified by:
getUserMemberGroupIds in class AbstractLDAPGroup
userId - the user's Id
Returns:
the groups that contain the user
Throws:
AdminException

getUserIds

protected String[] getUserIds(String lds,
                              com.novell.ldap.LDAPEntry groupEntry)
                       throws AdminException
Method declaration

Specified by:
getUserIds in class AbstractLDAPGroup
Parameters:
lds -
groupEntry -
Returns:
Throws:
AdminException
See Also:

getChildGroupsEntry

protected com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds,
                                                          String parentId,
                                                          String extraFilter)
                                                   throws AdminException
Method declaration THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNING

Specified by:
getChildGroupsEntry in class AbstractLDAPGroup
Parameters:
lds -
parentId -
Returns:
Throws:
AdminException
See Also:


Copyright © 2016 Silverpeas. All Rights Reserved.