ServiceSearch.searchByURI()
The method finds a service by URI in an organizational container.
- Availability
- IBM Security Identity Manager 7.0.
- Synopsis
ServiceSearch.searchByURI(containerDN, uri)
- Arguments
- Container DN
- String representing the distinguished name of the organizational container.
- uri
- String representing the URI of the service.
- Returns
- A Service object
- Description
- Given the distinguished name of the organizational container and the service URI, this method finds the service. If the service is not found, this function returns null. If more than one service is found, this function throws a scripting exception.
- Usage
var service = (new ServiceSearch()).searchByURI(container.dn, uri); if (service != null) { Enrole.log("script", "Found " + service.getProperty("erservicename") );}
Parent topic: ServiceSearch