Directory Client

The Directory Client will interact with Directories for managing Directory Users' Devices. The client can be obtained from the appropriate factories.

Get Linked Devices

To obtain a list containing each Device linked to a Directory User, you will invoke the getLinkedDevices method. The getLinkedDevices method takes a single argument which is the Directory User ID.


String identifier = "my-permanent-unique-user-identifier";
List<Device> devices;
try {
    List<Device> devices = directoryClient.getLinkedDevices(identifier);
    for (Device device : devices) {
        System.out.println("  " + device.getId() + ":");
        System.out.println("    Name:    " + device.getName());
        System.out.println("    Type:    " + device.getType());
        System.out.println("    Status:  " + device.getStatus());
        System.out.println("    Created: " + device.getCreated());
        System.out.println("    Updated: " + device.getUpdated());
catch(BaseException e) {
    //error handling

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at ×