net.jradius.dictionary.vsa_bay.networks.Attr_AnnexUserLevel Maven / Gradle / Ivy
The newest version!
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Thu, 5 Jan 2017 15:56:13 +0200
package net.jradius.dictionary.vsa_bay.networks;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import net.jradius.packet.attribute.VSAttribute;
import net.jradius.packet.attribute.value.NamedValue;
/**
* Attribute Name: Annex-User-Level
* Attribute Type: 26
* Vendor Id: 1584
* VSA Type: 100
* Value Type: NamedValue
* Possible Values:
*
* - Manager (2)
*
- User (4)
*
- Operator (8)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_AnnexUserLevel extends VSAttribute
{
public static final String NAME = "Annex-User-Level";
public static final int VENDOR_ID = 1584;
public static final int VSA_TYPE = 100;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long Manager = new Long(2L);
public static final Long User = new Long(4L);
public static final Long Operator = new Long(8L);
@SuppressWarnings("serial")
protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable
{
public Long[] knownValues = { new Long(2L),new Long(4L),new Long(8L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("Manager".equals(name)) return new Long(2L);
if ("User".equals(name)) return new Long(4L);
if ("Operator".equals(name)) return new Long(8L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(2L).equals(value)) return "Manager";
if (new Long(4L).equals(value)) return "User";
if (new Long(8L).equals(value)) return "Operator";
return null;
}
};
public static transient NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 26;
vendorId = VENDOR_ID;
vsaAttributeType = VSA_TYPE;
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_AnnexUserLevel()
{
setup();
}
public Attr_AnnexUserLevel(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy