package org.buddycloud.channelserver.channel.node.configuration.field;

public class ChannelType extends Field {
    public static final String FIELD_NAME = "buddycloud#channel_type";
    public static final String DEFAULT_VALUE = ChannelType.models.PERSONAL.toString();

    public ChannelType() {
        name = FIELD_NAME;
    }

    public enum models {
        PERSONAL("personal"), TOPIC("topic");
        String model = null;

        private models(String model) {
            this.model = model;
        }

        public String toString() {
            return model;
        }
    }

    public boolean isValid() {
        return (getValue().equals(ChannelType.models.PERSONAL.toString()) || getValue().equals(ChannelType.models.TOPIC.toString()));
    }
}

package org.buddycloud.channelserver.channel.node.configuration.field;

public class ChannelType extends Field {
    public static final String FIELD_NAME = "buddycloud#channel_type";
    public static final String DEFAULT_VALUE = ChannelType.models.PERSONAL.toString();

    public ChannelType() {
        name = FIELD_NAME;
    }

    public enum models {
        PERSONAL("personal"), TOPIC("topic"), EPHEMERAL("ephemeral");
        String model = null;

        private models(String model) {
            this.model = model;
        }

        public String toString() {
            return model;
        }
    }

    public boolean isValid() {
        return (getValue().equals(ChannelType.models.PERSONAL.toString()) || getValue().equals(ChannelType.models.TOPIC.toString()));
    }
}

Add 'ephemeral' node type