com.stratelia.silverpeas.domains.ldapdriver
Class LDAPGroupAllRoot

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

public class LDAPGroupAllRoot
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 .... THOSE GROUPS ARE ALL CONSIDERED AS ROOT GROUPS ALL DESCENDENT USERS ARE PUT IN FIRST LEVEL USERS


Constructor Summary
LDAPGroupAllRoot()
           
 
Method Summary
 Group[] getAllChangedGroups(String lds, String extraFilter)
           
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)
          All root groups, so, no group belongs to another...
protected  List<String> getMemberGroupIds(String lds, String memberId, boolean isGroup)
           
protected  List<com.novell.ldap.LDAPEntry> getTRUEChildGroupsEntry(String lds, com.novell.ldap.LDAPEntry theEntry)
          Method declaration THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNING
protected  List<String> getTRUEUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry)
           
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, 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

LDAPGroupAllRoot

public LDAPGroupAllRoot()
Method Detail

getMemberGroupIds

protected List<String> getMemberGroupIds(String lds,
                                         String memberId,
                                         boolean isGroup)
                                  throws AdminException
Throws:
AdminException

getGroupMemberGroupIds

public String[] getGroupMemberGroupIds(String lds,
                                       String groupId)
                                throws AdminException
All root groups, so, no group belongs to another...

Specified by:
getGroupMemberGroupIds in class AbstractLDAPGroup
Parameters:
lds -
groupId - the group's Id
Returns:
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:

getTRUEUserIds

protected List<String> getTRUEUserIds(String lds,
                                      com.novell.ldap.LDAPEntry groupEntry)
                               throws AdminException
Throws:
AdminException

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:

getTRUEChildGroupsEntry

protected List<com.novell.ldap.LDAPEntry> getTRUEChildGroupsEntry(String lds,
                                                                  com.novell.ldap.LDAPEntry theEntry)
Method declaration THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNING

Parameters:
lds -
parentId -
Returns:
Throws:
AdminException
See Also:

getAllChangedGroups

public Group[] getAllChangedGroups(String lds,
                                   String extraFilter)
                            throws AdminException
Overrides:
getAllChangedGroups in class AbstractLDAPGroup
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.