public interface ILdap extends ServiceInterface
groups
.
Methods which return Experimenter
or
ExperimenterGroup
instances fetch and load all related
instances of ExperimenterGroup
or
Experimenter
, respectively.Modifier and Type | Method and Description |
---|---|
Experimenter |
createUser(String username)
Creates an
Experimenter entry in the OMERO DB
based on the supplied LDAP username. |
List<Experimenter> |
discover()
Discovers and lists
Experimenter s who are present
in the remote LDAP server and in the local DB but have the
ldap property set to false . |
List<ExperimenterGroup> |
discoverGroups()
Discovers and lists
ExperimenterGroup s which are
present in the remote LDAP server and in the local DB but have the
ldap property set to false . |
String |
findDN(String username)
Searches unique Distinguished Name -
String in LDAP for
Common Name equals username. |
Experimenter |
findExperimenter(String username)
Searches Experimenter by unique Distinguished Name -
String in LDAP for Common Name equals username. |
ExperimenterGroup |
findGroup(String groupname)
Looks up a specific
ExperimenterGroup in LDAP
using the provided group name. |
String |
findGroupDN(String groupname)
Looks up the DN for a group.
|
boolean |
getSetting()
Gets config value from properties.
|
List<Experimenter> |
searchAll()
Searches all
Experimenter list on LDAP for
attribute objectClass = person. |
List<Experimenter> |
searchByAttribute(String dn,
String attribute,
String value)
Searches all
Experimenter in LDAP for specified
attribute |
List<Experimenter> |
searchByAttributes(String dn,
String[] attributes,
String[] values)
Searches all
Experimenter in LDAP for specified
attributes. |
Experimenter |
searchByDN(String userdn)
Searches one
Experimenter in LDAP for specified
Distinguished Name - String |
List<String> |
searchDnInGroups(String attr,
String value)
Searches Distinguished Name -
String in groups |
void |
setDN(Long experimenterID,
String dn)
Deprecated.
As of release 5.1, relevant model objects have the "ldap"
property added to their state.
|
List<Experimenter> searchAll()
Experimenter
list on LDAP for
attribute objectClass = person.List<String> searchDnInGroups(String attr, String value)
String
in groupsattr
- Name of member attribute. Never null or empty.value
- User's DN which should be set on value for attribute.
Never null or empty.List<Experimenter> searchByAttribute(String dn, String attribute, String value)
Experimenter
in LDAP for specified
attributedn
- Distinguished Name
base for search. Never null.attribute
- Name of attribute. Never null or empty.value
- Expected value of attribute. Never null or empty.List<Experimenter> searchByAttributes(String dn, String[] attributes, String[] values)
Experimenter
in LDAP for specified
attributes. Attributes should be specified in String [] and their values
should be set in equivalent String [].dn
- DistinguishedName
base for search. Never null.attributes
- Name of attribute. Never null or empty.values
- Expected value of attribute. Never null or empty.Experimenter searchByDN(String userdn)
Experimenter
in LDAP for specified
Distinguished Name - String
userdn
- unique Distinguished Name - String
of user,
Never null or empty.String findDN(String username)
String
in LDAP for
Common Name equals username. Common Name should be unique under the
specified base. If list of cn's contains more then one DN will return
exception.username
- Name of the Experimenter equals CommonName.ApiUsageException
- if more then one 'cn' under the specified base.String findGroupDN(String groupname)
ApiUsageException
- if more then one 'cn' under the specified base.Experimenter findExperimenter(String username)
String
in LDAP for Common Name equals username. Common
Name should be unique under the specified base. If list of cn's contains
more then one DN will return exception.username
- Name of the Experimenter equals CommonName.ApiUsageException
- if more then one 'cn' under the specified base.ExperimenterGroup findGroup(String groupname)
ExperimenterGroup
in LDAP
using the provided group name. It is expected that the group name will be
unique in the searched LDAP base tree. If more than one group with the
specified name has been found, an exception will be thrown.groupname
- null.
ApiUsageException
- if more then one group name matches under the specified base.@Deprecated void setDN(Long experimenterID, String dn)
dn
column in the password
table to the supplied string, for the supplied
Experimenter
ID.experimenterID
- dn
- boolean getSetting()
Experimenter createUser(String username)
Experimenter
entry in the OMERO DB
based on the supplied LDAP username.username
- List<Experimenter> discover()
Experimenter
s who are present
in the remote LDAP server and in the local DB but have the
ldap
property set to false
.List<ExperimenterGroup> discoverGroups()
ExperimenterGroup
s which are
present in the remote LDAP server and in the local DB but have the
ldap
property set to false
.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.