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()));
    }
}

@@ -395,16 +395,40 @@
 %22topic%22)
+, EPHEMERAL(%22ephemeral%22)
 ;%0A      

Add 'ephemeral' node type