Skip to content

DataForm (NodeConfiguration, etc) toBuilder or something similiar #162

@sco0ter

Description

@sco0ter

Original report by Daniel Gultsch (Bitbucket: iNPUTmice, GitHub: iNPUTmice).


When working with configurations of server side things. The process is usually retrieve the current configuration; make the change; submit the change. For example if I want to change the access model of a PubSub node (and not change the rest) I retrieve a NodeConfiguration and then due to immutability create a new NodeConfiguration that is exactly the same as the old one but with a the access model changed. However I noticed there is a lack of a NodeConfiguration.toBuilder() or something similar that essentially lets me modify the original one.

The same use case probably exists for other configurations based on DataForms (MUC rooms, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions