All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.podio.common.Role Maven / Gradle / Ivy

There is a newer version: 0.7.9
Show newest version
package com.podio.common;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonValue;

public enum Role {

	LIGHT,
	REGULAR,
	ADMIN;

	@Override
	@JsonValue
	public String toString() {
		return name().toLowerCase();
	}

	@JsonCreator
	public static Role getByName(String value) {
		return valueOf(value.toUpperCase());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy