Skip to content

michahirsch/simple-device-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The simplest device management app

This is a really easy and simple device management application. All devices gets randomly created at startup and are hold in-memory.

Devices can be assigned to tags. Tags are a way to group devices together and find devices again by these tags. All functionality of adding, deleting and listing devices and tags and assign and un-assign tags is provided by the DeviceManagementService bean.

How to start the application

  1. Checkout the GIT project
  2. Import it into your IDE workspace (eclipse configure as maven-project)
  3. Start the main method of the com.bosch.example.DemoAppApplication
  4. Open the browser and go to http://localhost:8080

The simple UI

The UI is really easy and simple as well. It just shows all device IDs in a list of labels with the assigned tags. This design and especially the UX must be improved. alt text

There is definitely something to improve.

The simple UI only list the devices and their assigned tags in a very simple way. The UI does not offer any possibility to manage devices and tags. There is no way of creating or deleting new devices or tags as well as no way to assign and un-assign tags to devices. There is also no search text field to search for a specific device or tags.

Improvements

  • Nicer representation of devices and tags
  • Support creation of devices and tags
  • Support deletion of devices and tags
  • Support assign and un-assign tags from devices
  • Support searching for devices by a text-field using the DeviceFilter#like(String like)

In the DeviceView class you'll the the right place to improve the UI.

@Override
public void enter(final ViewChangeEvent event) {
    final List<Device> devices = deviceManagement.getDevices(DeviceFilter.emptyFilter());
    // TODO: do it better ;)
    devices.forEach(device -> {
        addComponent(new Label(device + "  --- "
                + deviceManagement.getTags(DeviceTagFilter.emptyFilter().device(device.getId()))));
    });
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published