package org.buddycloud.channelserver.pubsub.publishmodel;

public enum PublishModels {
	
    publishers,
    subscribers,
    open;

	public static PublishModels createFromString(String asString) {
		
		if("publishers".equals(asString)) {
			return publishers;
		} else if ("subscribers".equals(asString)) {
			return subscribers;
		} else if ("open".equals(asString)) {
			return open;
		}
		return publishers;
	}
		
}

package org.buddycloud.channelserver.pubsub.publishmodel;

public enum PublishModels {
	
    owner,
    moderator,
    publisher,
    member,
    outcast;
	
	public static PublishModels createFromString(String asString) {
		
		if ("owner".equals(asString)) {
			return owner;
		} else if ("moderator".equals(asString)) {
			return moderator;
		} else if ("publisher".equals(asString)) {
			return publisher;
		} else if ("outcast".equals(asString)) {
			return outcast;
		}
		return member;
	}
		
}

Create channels with correct default affiliations
Create channels with correct default affiliations
