|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.domains.ldapdriver.AbstractLDAPGroup
public abstract class AbstractLDAPGroup
This class manage one particular group. It is a base class to derive from. The child classes manages the particular method to retreive the groups' elements(groups or users)
Constructor Summary | |
---|---|
AbstractLDAPGroup()
|
Method Summary | |
---|---|
void |
beginSynchronization()
Called when Admin starts the synchronization |
String |
endSynchronization()
Called when Admin ends the synchronization |
Group[] |
getAllChangedGroups(String lds,
String extraFilter)
|
Group[] |
getAllGroups(String lds,
String extraFilter)
Return all groups |
protected abstract com.novell.ldap.LDAPEntry[] |
getChildGroupsEntry(String lds,
String parentId,
String extraFilter)
Return a set of LDAP entries that are the child groups of a parent one THIS FUNCTION THROW EXCEPTION ONLY WHEN NO SYNCHRO IS RUNNING |
Group |
getGroup(String lds,
String id)
Return a Group object filled with the infos of the group having ID = id NOTE : the DomainID and the ID are not set. |
Group |
getGroupByName(String lds,
String name)
|
protected com.novell.ldap.LDAPEntry |
getGroupEntry(String lds,
String groupId)
Return the LDAP entry of the specified group Id THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING) |
protected com.novell.ldap.LDAPEntry |
getGroupEntryByName(String lds,
String groupName)
|
abstract String[] |
getGroupMemberGroupIds(String lds,
String groupId)
return the group's parent groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING) |
Group[] |
getGroups(String lds,
String parentId,
String extraFilter)
Return all groups found in the tree that are childs of parentId group or return root groups if parentId is null or empty |
AbstractLDAPTimeStamp |
getMaxTimeStamp(String lds,
String minTimeStamp)
|
protected abstract String[] |
getUserIds(String lds,
com.novell.ldap.LDAPEntry groupEntry)
return the users ID that are directly in the group discribes by groupEntry THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING) |
abstract String[] |
getUserMemberGroupIds(String lds,
String userId)
return the users groups IDs THIS FUNCTION ALWAYS THROW EXCEPTION (EVEN IF A SYNCHRO IS RUNNING) |
void |
init(LDAPSettings driverSettings,
LDAPSynchroCache synchroCache)
Initialize the settings from the read ones |
protected Group |
translateGroup(String lds,
com.novell.ldap.LDAPEntry groupEntry)
Translate a group LDAPEntry into a Group object NOTE : the GroupParentId, the DomainID and the ID are not set. |
protected Group |
translateGroups(String lds,
List<com.novell.ldap.LDAPEntry> groupEntries)
Translate several groups LDAPEntry into a Group object NOTE : the GroupParentId, the DomainID and the ID are not set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractLDAPGroup()
Method Detail |
---|
public void init(LDAPSettings driverSettings, LDAPSynchroCache synchroCache)
driverSettings
- the settings retreived from the property filepublic void beginSynchronization() throws Exception
Exception
public String endSynchronization() throws Exception
Exception
public Group[] getAllChangedGroups(String lds, String extraFilter) throws AdminException
AdminException
public Group[] getAllGroups(String lds, String extraFilter) throws AdminException
lds
- the LDAP connection
AdminException
- if an error occur during LDAP operationspublic Group[] getGroups(String lds, String parentId, String extraFilter) throws AdminException
lds
- the LDAP connectionparentId
- the parent group Id to start search, if null or empty, root groups are returned
AdminException
- if an error occur during LDAP operationspublic Group getGroup(String lds, String id) throws AdminException
lds
- the LDAP connectionid
- the group id (most case : LDAP DN)
AdminException
- if an error occur during LDAP operations or if the group is not foundpublic Group getGroupByName(String lds, String name) throws AdminException
AdminException
public AbstractLDAPTimeStamp getMaxTimeStamp(String lds, String minTimeStamp) throws AdminException
AdminException
protected Group translateGroup(String lds, com.novell.ldap.LDAPEntry groupEntry) throws AdminException
groupEntry
- the LDAP group object
AdminException
- if an error occur during LDAP operations or if there is no groupEntry
objectprotected Group translateGroups(String lds, List<com.novell.ldap.LDAPEntry> groupEntries) throws AdminException
lds
- groupEntries
-
AdminException
public abstract String[] getGroupMemberGroupIds(String lds, String groupId) throws AdminException
groupId
- the group's Id
AdminException
public abstract String[] getUserMemberGroupIds(String lds, String userId) throws AdminException
userId
- the user's Id
AdminException
protected abstract String[] getUserIds(String lds, com.novell.ldap.LDAPEntry groupEntry) throws AdminException
groupEntry
- the group that contains users
AdminException
protected abstract com.novell.ldap.LDAPEntry[] getChildGroupsEntry(String lds, String parentId, String extraFilter) throws AdminException
lds
- the LDAP connectionparentId
- Id of the parent group
AdminException
- if an error occur during LDAP operationsprotected com.novell.ldap.LDAPEntry getGroupEntry(String lds, String groupId) throws AdminException
lds
- the LDAP connectiongroupId
- group's Id
AdminException
- if an error occur during LDAP operationsprotected com.novell.ldap.LDAPEntry getGroupEntryByName(String lds, String groupName) throws AdminException
AdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |