|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILdap
Administration interface providing access to admin-only functionality as well
as JMX-based server access and selected user functions. Most methods require
membership in privileged groups
.
Methods which return Experimenter
or
ExperimenterGroup
instances fetch and load all related
instances of ExperimenterGroup
or
Experimenter
, respectively.
Method Summary | |
---|---|
String |
findDN(String username)
Searchs unique Distinguished Name - String in
LDAP for Common Name equals username. |
ome.model.meta.Experimenter |
findExperimenter(String username)
Searchs Experimenter by unique Distinguished Name - String in
LDAP for Common Name equals username. |
boolean |
getSetting()
Gets config value from properties. |
List<ome.model.meta.Experimenter> |
searchAll()
Searchs all Experimenter list on LDAP for
attribute objectClass = person. |
List<ome.model.meta.Experimenter> |
searchByAttribute(String dn,
String attribute,
String value)
Searchs all Experimenter in LDAP for specyfied
attribute |
List<ome.model.meta.Experimenter> |
searchByAttributes(String dn,
String[] attributes,
String[] values)
Searchs all Experimenter in LDAP for specyfied
attributes. |
ome.model.meta.Experimenter |
searchByDN(String userdn)
Searchs one Experimenter in LDAP for specyfied
Distinguished Name - String |
List<String> |
searchDnInGroups(String attr,
String value)
Searchs Distinguished Name - String in groups |
void |
setDN(Long experimenterID,
String dn)
Searchs all Experimenter in LDAP for objectClass =
person |
Method Detail |
---|
List<ome.model.meta.Experimenter> searchAll()
Experimenter
list on LDAP for
attribute objectClass = person.
List<String> searchDnInGroups(String attr, String value)
String
in groups
attr
- -
String name of memeber attribute. Never null or empty.value
- -
user's DN which should be set on value for attribute. Never
null or empty.
List<ome.model.meta.Experimenter> searchByAttribute(String dn, String attribute, String value)
Experimenter
in LDAP for specyfied
attribute
dn
- -
Distinguished Name - String
base for
search. Never null, should be
net.sf.ldaptemplate.support.DistinguishedName#EMPTY_PATH
.attr
- -
String name of attribute. Never null or empty.value
- -
String expected value of attribute. Never null or empty.
List<ome.model.meta.Experimenter> searchByAttributes(String dn, String[] attributes, String[] values)
Experimenter
in LDAP for specyfied
attributes. Attributes should be specyfied in String [] and their values
should be set in equivalets String [].
dn
- -
net.sf.ldaptemplate.support.DistinguishedName
base for
search. Never null, should be
net.sf.ldaptemplate.support.DistinguishedName#EMPTY_PATH
.attr
- -
String [] name of attribute. Never null or empty.value
- -
String [] expected value of attribute. Never null or empty.
ome.model.meta.Experimenter searchByDN(String userdn)
Experimenter
in LDAP for specyfied
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.
ome.conditions.ApiUsageException
- if more then one 'cn' under the specified base.ome.model.meta.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.
ome.conditions.ApiUsageException
- if more then one 'cn' under the specified base.void setDN(Long experimenterID, String dn)
Experimenter
in LDAP for objectClass =
person
omeName
- Name of the Experimenter
ome.conditions.ApiUsageException
- if omeName does not exist.boolean getSetting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.