org.apache.qpid.server.security.access
Class ObjectProperties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<ObjectProperties.Property,String>
          extended by org.apache.qpid.server.security.access.ObjectProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<ObjectProperties.Property,String>

public class ObjectProperties
extends HashMap<ObjectProperties.Property,String>

An set of properties for an access control v2 rule ObjectType. The matches(ObjectProperties) method is intended to be used when determining precedence of rules, and AbstractMap.equals(Object) and AbstractMap.hashCode() are intended for use in maps. This is due to the wildcard matching described above.

See Also:
Serialized Form

Nested Class Summary
static class ObjectProperties.Property
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static ObjectProperties EMPTY
           
static String STAR
           
 
Constructor Summary
ObjectProperties()
           
ObjectProperties(AMQQueue queue)
           
ObjectProperties(org.apache.qpid.framing.AMQShortString name)
           
ObjectProperties(Boolean autoDelete, Boolean durable, org.apache.qpid.framing.AMQShortString exchangeName, Boolean internal, Boolean nowait, Boolean passive, org.apache.qpid.framing.AMQShortString exchangeType)
           
ObjectProperties(Boolean exclusive, Boolean noAck, Boolean noLocal, Boolean nowait, AMQQueue queue)
           
ObjectProperties(Boolean autoDelete, Boolean durable, Boolean exclusive, Boolean nowait, Boolean passive, org.apache.qpid.framing.AMQShortString queueName, String owner)
           
ObjectProperties(Exchange exch, AMQQueue queue, org.apache.qpid.framing.AMQShortString routingKey)
           
ObjectProperties(Exchange exch, org.apache.qpid.framing.AMQShortString routingKey)
           
ObjectProperties(ObjectProperties copy)
           
ObjectProperties(String name)
           
ObjectProperties(String exchangeName, String routingKey)
           
ObjectProperties(String exchangeName, String routingKey, Boolean immediate)
           
 
Method Summary
static List<String> getAllPropertyNames()
           
 String getName()
           
 List<String> getPropertyNames()
           
 Boolean isSet(ObjectProperties.Property key)
           
 boolean matches(ObjectProperties properties)
           
 String put(ObjectProperties.Property key, org.apache.qpid.framing.AMQShortString value)
           
 void put(ObjectProperties.Property key, Boolean value)
           
 String put(ObjectProperties.Property key, String value)
           
 void setName(org.apache.qpid.framing.AMQShortString name)
           
 void setName(String name)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

STAR

public static final String STAR
See Also:
Constant Field Values

EMPTY

public static final ObjectProperties EMPTY
Constructor Detail

ObjectProperties

public ObjectProperties()

ObjectProperties

public ObjectProperties(ObjectProperties copy)

ObjectProperties

public ObjectProperties(String name)

ObjectProperties

public ObjectProperties(org.apache.qpid.framing.AMQShortString name)

ObjectProperties

public ObjectProperties(AMQQueue queue)

ObjectProperties

public ObjectProperties(Exchange exch,
                        AMQQueue queue,
                        org.apache.qpid.framing.AMQShortString routingKey)

ObjectProperties

public ObjectProperties(Exchange exch,
                        org.apache.qpid.framing.AMQShortString routingKey)

ObjectProperties

public ObjectProperties(String exchangeName,
                        String routingKey,
                        Boolean immediate)

ObjectProperties

public ObjectProperties(String exchangeName,
                        String routingKey)

ObjectProperties

public ObjectProperties(Boolean autoDelete,
                        Boolean durable,
                        org.apache.qpid.framing.AMQShortString exchangeName,
                        Boolean internal,
                        Boolean nowait,
                        Boolean passive,
                        org.apache.qpid.framing.AMQShortString exchangeType)

ObjectProperties

public ObjectProperties(Boolean autoDelete,
                        Boolean durable,
                        Boolean exclusive,
                        Boolean nowait,
                        Boolean passive,
                        org.apache.qpid.framing.AMQShortString queueName,
                        String owner)

ObjectProperties

public ObjectProperties(Boolean exclusive,
                        Boolean noAck,
                        Boolean noLocal,
                        Boolean nowait,
                        AMQQueue queue)
Method Detail

getAllPropertyNames

public static List<String> getAllPropertyNames()

getPropertyNames

public List<String> getPropertyNames()

isSet

public Boolean isSet(ObjectProperties.Property key)

getName

public String getName()

setName

public void setName(String name)

setName

public void setName(org.apache.qpid.framing.AMQShortString name)

put

public String put(ObjectProperties.Property key,
                  org.apache.qpid.framing.AMQShortString value)

put

public String put(ObjectProperties.Property key,
                  String value)
Specified by:
put in interface Map<ObjectProperties.Property,String>
Overrides:
put in class HashMap<ObjectProperties.Property,String>

put

public void put(ObjectProperties.Property key,
                Boolean value)

matches

public boolean matches(ObjectProperties properties)


Licensed to the Apache Software Foundation