ome.api.local
Interface LocalLdap

All Superinterfaces:
ILdap, ServiceInterface
All Known Implementing Classes:
LdapImpl

public interface LocalLdap
extends ILdap

Provides local (internal) extensions for administration

Since:
OMERO3.0
Version:
1.0 (Internal version: $Revision: 1322 $ $Date: 2007-03-06 11:49:47 +0000 (Tue, 06 Mar 2007) $)
Author:

Josh Moore      josh.moore@gmx.de

Method Summary
 boolean createUserFromLdap(String username, String password)
          Gets user from LDAP for checking him by requirements and setting his details on DB
 String getBase()
          Gets base from the LdapContextSource
 boolean isInGroups(List groups, List usergroups)
          Checks that user's group list contains require groups.
 boolean validatePassword(String base, String password)
          Valids password for base.
 boolean validateRequiroments(String base)
          Valids specyfied requirements for base (groups, attributes)
 
Methods inherited from interface ome.api.ILdap
findDN, findExperimenter, getReqAttributes, getReqGroups, getReqValues, getSetting, searchAll, searchByAttribute, searchByAttributes, searchByDN, searchDnInGroups, searchGroups, setDN, setReqAttributes, setReqGroups, setReqValues
 

Method Detail

getBase

String getBase()
Gets base from the LdapContextSource

Returns:
String

createUserFromLdap

boolean createUserFromLdap(String username,
                           String password)
Gets user from LDAP for checking him by requirements and setting his details on DB

Returns:
ServiceFactory

validateRequiroments

boolean validateRequiroments(String base)
Valids specyfied requirements for base (groups, attributes)

Returns:
boolean

validatePassword

boolean validatePassword(String base,
                         String password)
Valids password for base. Base is user's DN. When context was created successful specyfied requrements are valid.

Returns:
boolean

isInGroups

boolean isInGroups(List groups,
                   List usergroups)
Checks that user's group list contains require groups. If one of user's groups is on require groups' list will return true.

Returns:
boolean


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.