public static enum RoleDefault.ROLE extends Enum<RoleDefault.ROLE>
Enum Constant and Description |
---|
CONFIGADMIN
Administrator on configuration (partner, rule, host)
|
FULLADMIN
Administrator on all
|
HOST
Ability to control hosts
|
LIMIT
Ability to control bandwidth limitation
|
LOGCONTROL
Ability to control the logging
|
NOACCESS
No access to any function
|
PARTNER
Default partner : ability to read and starts transfers
|
READONLY
Read only access, no action
|
RULE
Ability to control rules
|
SYSTEM
Ability to control the system configuration and to control transfers
|
TRANSFER
Ability to starts transfer
|
UNUSED
Unused Role value
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(RoleDefault.ROLE role) |
static RoleDefault.ROLE |
fromByte(byte role) |
byte |
getAsByte() |
RoleDefault.ROLE[] |
getComposingRoles() |
boolean |
isContained(byte value) |
boolean |
isContained(RoleDefault.ROLE role) |
static String |
toString(byte fromRole) |
static RoleDefault.ROLE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoleDefault.ROLE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoleDefault.ROLE NOACCESS
public static final RoleDefault.ROLE READONLY
public static final RoleDefault.ROLE TRANSFER
public static final RoleDefault.ROLE RULE
public static final RoleDefault.ROLE HOST
public static final RoleDefault.ROLE LIMIT
public static final RoleDefault.ROLE SYSTEM
public static final RoleDefault.ROLE LOGCONTROL
public static final RoleDefault.ROLE UNUSED
public static final RoleDefault.ROLE PARTNER
public static final RoleDefault.ROLE CONFIGADMIN
public static final RoleDefault.ROLE FULLADMIN
public static RoleDefault.ROLE[] values()
for (RoleDefault.ROLE c : RoleDefault.ROLE.values()) System.out.println(c);
public static RoleDefault.ROLE valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isContained(byte value)
public boolean isContained(RoleDefault.ROLE role)
public boolean contains(RoleDefault.ROLE role)
public byte getAsByte()
public RoleDefault.ROLE[] getComposingRoles()
public static final String toString(byte fromRole)
public static final RoleDefault.ROLE fromByte(byte role)
Copyright © 2009–2020 Waarp. All rights reserved.