org.apache.qpid.server.security.access
Enum ObjectType
java.lang.Object
java.lang.Enum<ObjectType>
org.apache.qpid.server.security.access.ObjectType
- All Implemented Interfaces:
- Serializable, Comparable<ObjectType>
public enum ObjectType
- extends Enum<ObjectType>
An enumeration of all possible object types that can form part of an access control v2 rule.
Each object type is valid only for a certain set of Operation
s, which are passed as a list to
the constructor, and can be checked using the isAllowed(Operation)
method.
ALL
public static final ObjectType ALL
VIRTUALHOST
public static final ObjectType VIRTUALHOST
QUEUE
public static final ObjectType QUEUE
TOPIC
public static final ObjectType TOPIC
EXCHANGE
public static final ObjectType EXCHANGE
LINK
public static final ObjectType LINK
ROUTE
public static final ObjectType ROUTE
METHOD
public static final ObjectType METHOD
OBJECT
public static final ObjectType OBJECT
values
public static ObjectType[] 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 (ObjectType c : ObjectType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ObjectType valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getActions
public Set<Operation> getActions()
isAllowed
public boolean isAllowed(Operation operation)
parse
public static ObjectType parse(String text)
toString
public String toString()
- Overrides:
toString
in class Enum<ObjectType>
Licensed to the Apache Software Foundation