001 /*
002 * Created on Nov 7, 2004
003 *
004 * TODO To change the template for this generated file go to
005 * Window - Preferences - Java - Code Style - Code Templates
006 */
007 package org.activemq.security.jassjacc;
008
009 import java.util.HashSet;
010
011 import org.activemq.message.ActiveMQDestination;
012
013 /**
014 * @author Hiram
015 *
016 * TODO To change the template for this generated type comment go to
017 * Window - Preferences - Java - Code Style - Code Templates
018 */
019 public class DestinationSecurityConfig {
020
021 String brokerName;
022 ActiveMQDestination destination;
023
024 HashSet consumeRoles = new HashSet();
025 HashSet produceRoles = new HashSet();
026 HashSet sendRoles = new HashSet();
027
028 /**
029 * @return Returns the brokerName.
030 */
031 public String getBrokerName() {
032 return brokerName;
033 }
034 /**
035 * @param brokerName The brokerName to set.
036 */
037 public void setBrokerName(String brokerName) {
038 this.brokerName = brokerName;
039 }
040 /**
041 * @return Returns the consumeRoles.
042 */
043 public HashSet getConsumeRoles() {
044 return consumeRoles;
045 }
046 /**
047 * @param consumeRoles The consumeRoles to set.
048 */
049 public void setConsumeRoles(HashSet consumeRoles) {
050 this.consumeRoles = consumeRoles;
051 }
052 /**
053 * @return Returns the destination.
054 */
055 public ActiveMQDestination getDestination() {
056 return destination;
057 }
058 /**
059 * @param destination The destination to set.
060 */
061 public void setDestination(ActiveMQDestination destination) {
062 this.destination = destination;
063 }
064 /**
065 * @return Returns the produceRoles.
066 */
067 public HashSet getProduceRoles() {
068 return produceRoles;
069 }
070 /**
071 * @param produceRoles The produceRoles to set.
072 */
073 public void setProduceRoles(HashSet produceRoles) {
074 this.produceRoles = produceRoles;
075 }
076 /**
077 * @return Returns the sendRoles.
078 */
079 public HashSet getSendRoles() {
080 return sendRoles;
081 }
082 /**
083 * @param sendRoles The sendRoles to set.
084 */
085 public void setSendRoles(HashSet sendRoles) {
086 this.sendRoles = sendRoles;
087 }
088 }