BeanRole.as
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Generated by Gas3 v2.1.0 (Granite Data Services).
*
* WARNING: DO NOT CHANGE THIS FILE. IT MAY BE OVERWRITTEN EACH TIME YOU USE
* THE GENERATOR.
*/
package fi.insomnia.bortal.enums {
import org.granite.util.Enum;
[Bindable]
[RemoteClass(alias="fi.insomnia.bortal.enums.BeanRole")]
public class BeanRole extends Enum {
public static const ANONYMOUS:BeanRole = new BeanRole("ANONYMOUS", _);
public static const USER_BASE:BeanRole = new BeanRole("USER_BASE", _);
public static const ADMIN_BASE:BeanRole = new BeanRole("ADMIN_BASE", _);
public static const SUPERADMIN:BeanRole = new BeanRole("SUPERADMIN", _);
public static const ORGANIZATION_ROOT:BeanRole = new BeanRole("ORGANIZATION_ROOT", _);
function BeanRole(value:String = null, restrictor:* = null) {
super((value || ANONYMOUS.name), restrictor);
}
override protected function getConstants():Array {
return constants;
}
public static function get constants():Array {
return [ANONYMOUS, USER_BASE, ADMIN_BASE, SUPERADMIN, ORGANIZATION_ROOT];
}
public static function valueOf(name:String):BeanRole {
return BeanRole(ANONYMOUS.constantOf(name));
}
}
}