Package ome.services.blitz.impl
Class LdapI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.LdapI
-
- All Implemented Interfaces:
_ILdapOperations,_ServiceInterfaceOperations,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class LdapI extends AbstractAmdServant implements _ILdapOperations
Implementation of the ILdap service.- Since:
- 3.0-Beta4
- See Also:
ILdap
-
-
Constructor Summary
Constructors Constructor Description LdapI(ome.api.ILdap service, BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateUser_async(AMD_ILdap_createUser __cb, java.lang.String username, Ice.Current __current)Creates anExperimenterentry in the OMERO DB based on the supplied LDAP username.voiddiscover_async(AMD_ILdap_discover __cb, Ice.Current __current)Discovers and listsExperimenters who are present in the remote LDAP server and in the local DB but have theldapproperty set tofalse.voiddiscoverGroups_async(AMD_ILdap_discoverGroups __cb, Ice.Current __current)Discovers and listsExperimenterGroups which are present in the remote LDAP server and in the local DB but have theldapproperty set tofalse.voidfindDN_async(AMD_ILdap_findDN __cb, java.lang.String username, Ice.Current __current)Searches unique Distinguished Name - string in LDAP for Common Name equals username.voidfindExperimenter_async(AMD_ILdap_findExperimenter __cb, java.lang.String username, Ice.Current __current)Searches Experimenter by unique Distinguished Name - string in LDAP for Common Name equals username.voidfindGroup_async(AMD_ILdap_findGroup __cb, java.lang.String groupname, Ice.Current __current)Looks up a specificExperimenterGroupin LDAP using the provided group name.voidfindGroupDN_async(AMD_ILdap_findGroupDN __cb, java.lang.String groupname, Ice.Current __current)Looks up the DN for a group.voidgetSetting_async(AMD_ILdap_getSetting __cb, Ice.Current __current)Gets config value from properties.voidsearchAll_async(AMD_ILdap_searchAll __cb, Ice.Current __current)Searches allExperimenterlist on LDAP for attribute objectClass = person.voidsearchByAttribute_async(AMD_ILdap_searchByAttribute __cb, java.lang.String dn, java.lang.String attribute, java.lang.String value, Ice.Current __current)Searches allExperimenterin LDAP for specified attribute.voidsearchByAttributes_async(AMD_ILdap_searchByAttributes __cb, java.lang.String dn, java.util.List<java.lang.String> attributes, java.util.List<java.lang.String> values, Ice.Current __current)Searches allExperimenterin LDAP for specified attributes.voidsearchByDN_async(AMD_ILdap_searchByDN __cb, java.lang.String userdn, Ice.Current __current)Searches oneExperimenterin LDAP for specified Distinguished Name.voidsearchDnInGroups_async(AMD_ILdap_searchDnInGroups __cb, java.lang.String attribute, java.lang.String value, Ice.Current __current)Searches Distinguished Name in groups.voidsetDN_async(AMD_ILdap_setDN __cb, RLong experimenterID, java.lang.String dn, Ice.Current __current)-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
-
-
-
Constructor Detail
-
LdapI
public LdapI(ome.api.ILdap service, BlitzExecutor be)
-
-
Method Detail
-
searchAll_async
public void searchAll_async(AMD_ILdap_searchAll __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches allExperimenterlist on LDAP for attribute objectClass = person.- Specified by:
searchAll_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
searchDnInGroups_async
public void searchDnInGroups_async(AMD_ILdap_searchDnInGroups __cb, java.lang.String attribute, java.lang.String value, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches Distinguished Name in groups.- Specified by:
searchDnInGroups_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.attribute- Name of member attribute. Never null or empty.__current- The Current object for the invocation.- Throws:
ServerError
-
searchByAttribute_async
public void searchByAttribute_async(AMD_ILdap_searchByAttribute __cb, java.lang.String dn, java.lang.String attribute, java.lang.String value, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches allExperimenterin LDAP for specified attribute.- Specified by:
searchByAttribute_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.dn- Distinguished Name base for search. Never null.attribute- Name of attribute. Never null or empty.__current- The Current object for the invocation.- Throws:
ServerError
-
searchByAttributes_async
public void searchByAttributes_async(AMD_ILdap_searchByAttributes __cb, java.lang.String dn, java.util.List<java.lang.String> attributes, java.util.List<java.lang.String> values, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches allExperimenterin LDAP for specified attributes. Attributes should be specified in StringSet and their values should be set in equivalent StringSet.- Specified by:
searchByAttributes_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.dn- Distinguished Name base for search. Never null.attributes- Name of attribute. Never null or empty.__current- The Current object for the invocation.- Throws:
ServerError
-
searchByDN_async
public void searchByDN_async(AMD_ILdap_searchByDN __cb, java.lang.String userdn, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches oneExperimenterin LDAP for specified Distinguished Name.- Specified by:
searchByDN_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.userdn- unique Distinguished Name - string of user, Never null or empty.__current- The Current object for the invocation.- Throws:
ServerError
-
findDN_async
public void findDN_async(AMD_ILdap_findDN __cb, java.lang.String username, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches unique Distinguished Name - 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.- Specified by:
findDN_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.username- Name of the Experimenter equals CommonName.__current- The Current object for the invocation.- Throws:
ServerError
-
findGroupDN_async
public void findGroupDN_async(AMD_ILdap_findGroupDN __cb, java.lang.String groupname, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsLooks up the DN for a group.- Specified by:
findGroupDN_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
findExperimenter_async
public void findExperimenter_async(AMD_ILdap_findExperimenter __cb, java.lang.String username, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsSearches Experimenter by unique Distinguished Name - 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.- Specified by:
findExperimenter_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.username- Name of the Experimenter equals CommonName.__current- The Current object for the invocation.- Throws:
ServerError
-
findGroup_async
public void findGroup_async(AMD_ILdap_findGroup __cb, java.lang.String groupname, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsLooks up a specificExperimenterGroupin 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.- Specified by:
findGroup_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
setDN_async
public void setDN_async(AMD_ILdap_setDN __cb, RLong experimenterID, java.lang.String dn, Ice.Current __current) throws ServerError
- Specified by:
setDN_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
getSetting_async
public void getSetting_async(AMD_ILdap_getSetting __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsGets config value from properties.- Specified by:
getSetting_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
createUser_async
public void createUser_async(AMD_ILdap_createUser __cb, java.lang.String username, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsCreates anExperimenterentry in the OMERO DB based on the supplied LDAP username.- Specified by:
createUser_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
discover_async
public void discover_async(AMD_ILdap_discover __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsDiscovers and listsExperimenters who are present in the remote LDAP server and in the local DB but have theldapproperty set tofalse.- Specified by:
discover_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
discoverGroups_async
public void discoverGroups_async(AMD_ILdap_discoverGroups __cb, Ice.Current __current) throws ServerError
Description copied from interface:_ILdapOperationsDiscovers and listsExperimenterGroups which are present in the remote LDAP server and in the local DB but have theldapproperty set tofalse.- Specified by:
discoverGroups_asyncin interface_ILdapOperations- Parameters:
__cb- The callback object for the operation.__current- The Current object for the invocation.- Throws:
ServerError
-
-