Package tigase.server
Enum CmdAcl.Type
- java.lang.Object
-
- java.lang.Enum<CmdAcl.Type>
-
- tigase.server.CmdAcl.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmdAcl.Type>
- Enclosing class:
- CmdAcl
public static enum CmdAcl.Type extends java.lang.Enum<CmdAcl.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
Only local server administrators can execute command.ALL
Everybody can execute the command, even users from a different servers.DOMAIN
Only users who have an account within the given domain can execute the command.DOMAIN_ADMIN
Only user who is an admin of the given domain can execute the command.DOMAIN_OWNER
Only user who is an owner of the given domain can execute the command.JID
Comma separated list of JIDs of users who can execute the command.LOCAL
Only users who have accounts on this local server can execute the command.NONE
No one is allowed to execute the command, even server administrators!
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmdAcl.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmdAcl.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final CmdAcl.Type ALL
Everybody can execute the command, even users from a different servers.
-
ADMIN
public static final CmdAcl.Type ADMIN
Only local server administrators can execute command.
-
LOCAL
public static final CmdAcl.Type LOCAL
Only users who have accounts on this local server can execute the command.
-
DOMAIN
public static final CmdAcl.Type DOMAIN
Only users who have an account within the given domain can execute the command.
-
DOMAIN_ADMIN
public static final CmdAcl.Type DOMAIN_ADMIN
Only user who is an admin of the given domain can execute the command.
-
DOMAIN_OWNER
public static final CmdAcl.Type DOMAIN_OWNER
Only user who is an owner of the given domain can execute the command.
-
JID
public static final CmdAcl.Type JID
Comma separated list of JIDs of users who can execute the command.
-
NONE
public static final CmdAcl.Type NONE
No one is allowed to execute the command, even server administrators!
-
-
Method Detail
-
values
public static CmdAcl.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmdAcl.Type c : CmdAcl.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmdAcl.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-