Commit 47d9ef21 authored by Andre Freyssinet's avatar Andre Freyssinet

Minor changes.

parent a51a935f
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 2020 ScalAgent Distributed Technologies
* Copyright (C) 2001 - 2021 ScalAgent Distributed Technologies
* Copyright (C) 1996 - 2000 Dyade
*
* This library is free software; you can redistribute it and/or
......@@ -1881,6 +1881,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createUser(String user, String passwd) throws Exception {
createUser(user, passwd, serverId);
}
......@@ -1888,6 +1889,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createUser(String user, String passwd, int serverId) throws Exception {
createUser(user, passwd, serverId, SimpleIdentity.class.getName());
}
......@@ -1895,6 +1897,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createUser(String user, String passwd, int serverId, String identityClassName) throws Exception {
if ((user == null) || user.equals(""))
throw new RequestException("User name can not be null or empty");
......@@ -1927,6 +1930,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createQueue(String name) {
createQueue(name, serverId);
}
......@@ -1934,6 +1938,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createQueue(String name, int serverId) {
createQueue(name, Queue.class.getName(), serverId);
}
......@@ -1941,6 +1946,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createQueue(String name, String queueClassName, int serverId) {
CreateDestinationRequest request = new CreateDestinationRequest(serverId, name, queueClassName, null, DestinationConstants.QUEUE_TYPE);
FwdAdminRequestNot createNot = new FwdAdminRequestNot(request, null, null);
......@@ -1950,6 +1956,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createTopic(String name) {
createTopic(name, serverId);
}
......@@ -1957,6 +1964,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createTopic(String name, int serverId) {
createTopic(name, Topic.class.getName(), serverId);
}
......@@ -1964,6 +1972,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/**
* {@inheritDoc}
*/
@Override
public void createTopic(String name, String topicClassName, int serverId) {
CreateDestinationRequest request = new CreateDestinationRequest(serverId, name, topicClassName, null,
DestinationConstants.TOPIC_TYPE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment