You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/01/10 16:19:39 UTC
[5/8] stratos git commit: Cleaning rest api bean classes
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/AutoscalePolicyBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/AutoscalePolicyBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/AutoscalePolicyBean.java
new file mode 100644
index 0000000..e18c34c
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/AutoscalePolicyBean.java
@@ -0,0 +1,82 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.beans.policy.autoscale;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class AutoscalePolicyBean {
+
+ private String id;
+ private String displayName;
+ private String description;
+ private LoadThresholdsBean loadThresholds;
+ private boolean isPublic;
+ private float instanceRoundingFactor;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean getIsPublic() {
+ return isPublic;
+ }
+
+ public void setIsPublic(boolean isPublic) {
+ this.isPublic = isPublic;
+ }
+
+
+ public LoadThresholdsBean getLoadThresholds() {
+ return loadThresholds;
+ }
+
+ public void setLoadThresholds(LoadThresholdsBean loadThresholds) {
+ this.loadThresholds = loadThresholds;
+ }
+
+ public float getInstanceRoundingFactor() {
+ return instanceRoundingFactor;
+ }
+
+ public void setInstanceRoundingFactor(float instanceRoundingFactor) {
+ this.instanceRoundingFactor = instanceRoundingFactor;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadAverageThresholdsBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadAverageThresholdsBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadAverageThresholdsBean.java
new file mode 100644
index 0000000..8ea73e5
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadAverageThresholdsBean.java
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.beans.policy.autoscale;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class LoadAverageThresholdsBean {
+
+ private float threshold;
+
+ public float getThreshold() {
+ return threshold;
+ }
+
+ public void setThreshold(float threshold) {
+ this.threshold = threshold;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadThresholdsBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadThresholdsBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadThresholdsBean.java
new file mode 100644
index 0000000..903114d
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/LoadThresholdsBean.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.beans.policy.autoscale;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class LoadThresholdsBean {
+
+ private RequestsInFlightThresholdsBean requestsInFlight;
+ private MemoryConsumptionThresholdsBean memoryConsumption;
+ private LoadAverageThresholdsBean loadAverage;
+
+ public RequestsInFlightThresholdsBean getRequestsInFlight() {
+ return requestsInFlight;
+ }
+
+ public void setRequestsInFlight(RequestsInFlightThresholdsBean requestsInFlight) {
+ this.requestsInFlight = requestsInFlight;
+ }
+
+ public MemoryConsumptionThresholdsBean getMemoryConsumption() {
+ return memoryConsumption;
+ }
+
+ public void setMemoryConsumption(MemoryConsumptionThresholdsBean memoryConsumption) {
+ this.memoryConsumption = memoryConsumption;
+ }
+
+ public LoadAverageThresholdsBean getLoadAverage() {
+ return loadAverage;
+ }
+
+ public void setLoadAverage(LoadAverageThresholdsBean loadAverage) {
+ this.loadAverage = loadAverage;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/MemoryConsumptionThresholdsBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/MemoryConsumptionThresholdsBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/MemoryConsumptionThresholdsBean.java
new file mode 100644
index 0000000..d216854
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/MemoryConsumptionThresholdsBean.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.beans.policy.autoscale;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class MemoryConsumptionThresholdsBean {
+
+ private float threshold;
+
+ public float getThreshold() {
+ return threshold;
+ }
+
+ public void setThreshold(float threshold) {
+ this.threshold = threshold;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/RequestsInFlightThresholdsBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/RequestsInFlightThresholdsBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/RequestsInFlightThresholdsBean.java
new file mode 100644
index 0000000..55f33ab
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/autoscale/RequestsInFlightThresholdsBean.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.beans.policy.autoscale;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class RequestsInFlightThresholdsBean {
+
+ private float threshold;
+
+ public float getThreshold() {
+ return threshold;
+ }
+
+ public void setThreshold(float threshold) {
+ this.threshold = threshold;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ApplicationPolicyBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ApplicationPolicyBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ApplicationPolicyBean.java
new file mode 100644
index 0000000..bb0d3d8
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ApplicationPolicyBean.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.common.beans.policy.deployment;
+
+import org.apache.stratos.common.beans.partition.ApplicationLevelNetworkPartitionBean;
+
+import javax.xml.bind.annotation.XmlRootElement;
+import java.util.List;
+
+@XmlRootElement
+public class ApplicationPolicyBean {
+
+ private List<ApplicationLevelNetworkPartitionBean> networkPartition;
+
+ public List<ApplicationLevelNetworkPartitionBean> getNetworkPartition() {
+ return networkPartition;
+ }
+
+ public void setNetworkPartition(List<ApplicationLevelNetworkPartitionBean> networkPartition) {
+ this.networkPartition = networkPartition;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ChildPolicyBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ChildPolicyBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ChildPolicyBean.java
new file mode 100644
index 0000000..b022b4c
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/ChildPolicyBean.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.common.beans.policy.deployment;
+
+import org.apache.stratos.common.beans.partition.ChildLevelNetworkPartitionBean;
+
+import javax.xml.bind.annotation.XmlRootElement;
+import java.util.List;
+
+@XmlRootElement
+public class ChildPolicyBean {
+
+ private String alias;
+ private List<ChildLevelNetworkPartitionBean> networkPartition;
+
+ public String getAlias() {
+ return alias;
+ }
+
+ public void setAlias(String alias) {
+ this.alias = alias;
+ }
+
+ public List<ChildLevelNetworkPartitionBean> getNetworkPartition() {
+ return networkPartition;
+ }
+
+ public void setNetworkPartition(List<ChildLevelNetworkPartitionBean> networkPartition) {
+ this.networkPartition = networkPartition;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/DeploymentPolicyBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/DeploymentPolicyBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/DeploymentPolicyBean.java
new file mode 100644
index 0000000..6598d4e
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/policy/deployment/DeploymentPolicyBean.java
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.beans.policy.deployment;
+
+
+import javax.xml.bind.annotation.XmlRootElement;
+import java.util.List;
+
+@XmlRootElement
+public class DeploymentPolicyBean {
+
+ private String applicationId;
+ private String description;
+ private boolean isPublic;
+ private ApplicationPolicyBean applicationPolicy;
+ private List<ChildPolicyBean> childPolicies;
+
+ public String getApplicationId() {
+ return applicationId;
+ }
+
+ public void setApplicationId(String applicationId) {
+ this.applicationId = applicationId;
+ }
+
+ public boolean getIsPublic() {
+ return isPublic();
+ }
+
+ public boolean isPublic() {
+ return isPublic;
+ }
+
+ public void setPublic(boolean isPublic) {
+ this.isPublic = isPublic;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ApplicationPolicyBean getApplicationPolicy() {
+ return applicationPolicy;
+ }
+
+ public void setApplicationPolicy(ApplicationPolicyBean applicationPolicy) {
+ this.applicationPolicy = applicationPolicy;
+ }
+
+ public List<ChildPolicyBean> getChildPolicies() {
+ return childPolicies;
+ }
+
+ public void setChildPolicies(List<ChildPolicyBean> childPolicies) {
+ this.childPolicies = childPolicies;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Payload.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Payload.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Payload.java
deleted file mode 100644
index a724a7e..0000000
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Payload.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
-
- * http://www.apache.org/licenses/LICENSE-2.0
-
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.common.beans.repositoryNotificationInfoBean;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-@XmlRootElement(name = "payload")
-public class Payload {
-
- private Repository repository;
-
- public Repository getRepository() {
- return repository;
- }
-
- public void setRepository(Repository repository) {
- this.repository = repository;
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Repository.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Repository.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Repository.java
deleted file mode 100644
index 0d88195..0000000
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/repositoryNotificationInfoBean/Repository.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
-
- * http://www.apache.org/licenses/LICENSE-2.0
-
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.common.beans.repositoryNotificationInfoBean;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-@XmlRootElement(name = "repository")
-public class Repository {
-
- private String url;
- private String description;
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/subscription/domain/SubscriptionDomainBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/subscription/domain/SubscriptionDomainBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/subscription/domain/SubscriptionDomainBean.java
deleted file mode 100644
index cd3aa46..0000000
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/subscription/domain/SubscriptionDomainBean.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.stratos.common.beans.subscription.domain;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-@XmlRootElement(name = "domains")
-public class SubscriptionDomainBean {
-
- private String domainName;
- private String applicationContext;
-
- public String getDomainName() {
- return domainName;
- }
-
- public void setDomainName(String domainName) {
- this.domainName = domainName;
- }
-
- public String getApplicationContext() {
- return applicationContext;
- }
-
- public void setApplicationContext(String applicationContext) {
- this.applicationContext = applicationContext;
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Cluster.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Cluster.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Cluster.java
deleted file mode 100644
index d309432..0000000
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Cluster.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
-
- * http://www.apache.org/licenses/LICENSE-2.0
-
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.common.beans.topology;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import org.apache.stratos.common.beans.cartridge.definition.PropertyBean;
-
-import java.util.List;
-
-@XmlRootElement(name="clusters")
-public class Cluster {
-
- private String alias;
- private String serviceName;
- private String clusterId;
- private List<Member> member;
- private String tenantRange;
- private List<String> hostNames;
- private boolean isLbCluster;
- private List<PropertyBean> property;
- private List<Instance> instances;
-
- public List<Instance> getInstances() {
- return instances;
- }
-
- public void setInstances(List<Instance> instances) {
- this.instances = instances;
- }
-
- @Override
- public String toString() {
- return "Cluster [serviceName=" + getServiceName() + ", clusterId=" + getClusterId() + ", member=" + getMember()
- + ", tenantRange=" + getTenantRange() + ", hostNames=" + getHostNames() + ", isLbCluster=" + isLbCluster()
- + ", property=" + getProperty() + "]";
- }
-
-
- public String getAlias() {
- return alias;
- }
-
- public void setAlias(String alias) {
- this.alias = alias;
- }
-
- public String getServiceName() {
- return serviceName;
- }
-
- public void setServiceName(String serviceName) {
- this.serviceName = serviceName;
- }
-
- public String getClusterId() {
- return clusterId;
- }
-
- public void setClusterId(String clusterId) {
- this.clusterId = clusterId;
- }
-
- public List<Member> getMember() {
- return member;
- }
-
- public void setMember(List<Member> member) {
- this.member = member;
- }
-
- public String getTenantRange() {
- return tenantRange;
- }
-
- public void setTenantRange(String tenantRange) {
- this.tenantRange = tenantRange;
- }
-
- public List<String> getHostNames() {
- return hostNames;
- }
-
- public void setHostNames(List<String> hostNames) {
- this.hostNames = hostNames;
- }
-
- public boolean isLbCluster() {
- return isLbCluster;
- }
-
- public void setLbCluster(boolean isLbCluster) {
- this.isLbCluster = isLbCluster;
- }
-
- public List<PropertyBean> getProperty() {
- return property;
- }
-
- public void setProperty(List<PropertyBean> property) {
- this.property = property;
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterBean.java
new file mode 100644
index 0000000..e883c52
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterBean.java
@@ -0,0 +1,118 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.common.beans.topology;
+
+import javax.xml.bind.annotation.XmlRootElement;
+import org.apache.stratos.common.beans.cartridge.PropertyBean;
+
+import java.util.List;
+
+@XmlRootElement(name="clusters")
+public class ClusterBean {
+
+ private String alias;
+ private String serviceName;
+ private String clusterId;
+ private List<MemberBean> member;
+ private String tenantRange;
+ private List<String> hostNames;
+ private boolean isLbCluster;
+ private List<PropertyBean> property;
+ private List<InstanceBean> instances;
+
+ public List<InstanceBean> getInstances() {
+ return instances;
+ }
+
+ public void setInstances(List<InstanceBean> instances) {
+ this.instances = instances;
+ }
+
+ @Override
+ public String toString() {
+ return "Cluster [serviceName=" + getServiceName() + ", clusterId=" + getClusterId() + ", member=" + getMember()
+ + ", tenantRange=" + getTenantRange() + ", hostNames=" + getHostNames() + ", isLbCluster=" + isLbCluster()
+ + ", property=" + getProperty() + "]";
+ }
+
+
+ public String getAlias() {
+ return alias;
+ }
+
+ public void setAlias(String alias) {
+ this.alias = alias;
+ }
+
+ public String getServiceName() {
+ return serviceName;
+ }
+
+ public void setServiceName(String serviceName) {
+ this.serviceName = serviceName;
+ }
+
+ public String getClusterId() {
+ return clusterId;
+ }
+
+ public void setClusterId(String clusterId) {
+ this.clusterId = clusterId;
+ }
+
+ public List<MemberBean> getMember() {
+ return member;
+ }
+
+ public void setMember(List<MemberBean> member) {
+ this.member = member;
+ }
+
+ public String getTenantRange() {
+ return tenantRange;
+ }
+
+ public void setTenantRange(String tenantRange) {
+ this.tenantRange = tenantRange;
+ }
+
+ public List<String> getHostNames() {
+ return hostNames;
+ }
+
+ public void setHostNames(List<String> hostNames) {
+ this.hostNames = hostNames;
+ }
+
+ public boolean isLbCluster() {
+ return isLbCluster;
+ }
+
+ public void setLbCluster(boolean isLbCluster) {
+ this.isLbCluster = isLbCluster;
+ }
+
+ public List<PropertyBean> getProperty() {
+ return property;
+ }
+
+ public void setProperty(List<PropertyBean> property) {
+ this.property = property;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterInstanceBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterInstanceBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterInstanceBean.java
index 93e5ae6..27e65ac 100644
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterInstanceBean.java
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterInstanceBean.java
@@ -31,7 +31,7 @@ public class ClusterInstanceBean implements Serializable {
private String alias;
private String serviceName;
private String clusterId;
- private List<Member> member;
+ private List<MemberBean> member;
private String tenantRange;
private List<String> hostNames;
@@ -75,11 +75,11 @@ public class ClusterInstanceBean implements Serializable {
this.clusterId = clusterId;
}
- public List<Member> getMember() {
+ public List<MemberBean> getMember() {
return member;
}
- public void setMember(List<Member> member) {
+ public void setMember(List<MemberBean> member) {
this.member = member;
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Instance.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Instance.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Instance.java
deleted file mode 100644
index 9c76b1c..0000000
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Instance.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.common.beans.topology;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-@XmlRootElement
-public class Instance {
-
- private String status;
- private String instanceId;
-
- public String getStatus() {
- return status;
- }
-
- public void setStatus(String status) {
- this.status = status;
- }
-
- public String getInstanceId() {
- return instanceId;
- }
-
- public void setInstanceId(String instanceId) {
- this.instanceId = instanceId;
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/InstanceBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/InstanceBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/InstanceBean.java
new file mode 100644
index 0000000..dfc4a8d
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/InstanceBean.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.common.beans.topology;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class InstanceBean {
+
+ private String status;
+ private String instanceId;
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getInstanceId() {
+ return instanceId;
+ }
+
+ public void setInstanceId(String instanceId) {
+ this.instanceId = instanceId;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Member.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Member.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Member.java
deleted file mode 100644
index d0b9dae..0000000
--- a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/Member.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
-
- * http://www.apache.org/licenses/LICENSE-2.0
-
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.stratos.common.beans.topology;
-
-import java.util.List;
-import javax.xml.bind.annotation.XmlRootElement;
-import org.apache.stratos.common.beans.cartridge.definition.PropertyBean;
-
-@XmlRootElement
-public class Member {
-
- private String serviceName;
- private String clusterId;
- private String clusterInstanceId;
- private String networkPartitionId;
- private String partitionId;
- private String memberId;
- private String status;
- private String defaultPrivateIP;
- private List<String> memberPrivateIPs;
- private String lbClusterId;
- private String defaultPublicIP;
- private List<String> memberPublicIPs;
- private List<PropertyBean> property;
-
- public String getServiceName() {
- return serviceName;
- }
-
- public void setServiceName(String serviceName) {
- this.serviceName = serviceName;
- }
-
- public String getClusterId() {
- return clusterId;
- }
-
- public void setClusterId(String clusterId) {
- this.clusterId = clusterId;
- }
-
- public String getNetworkPartitionId() {
- return networkPartitionId;
- }
-
- public void setNetworkPartitionId(String networkPartitionId) {
- this.networkPartitionId = networkPartitionId;
- }
-
- public String getPartitionId() {
- return partitionId;
- }
-
- public void setPartitionId(String partitionId) {
- this.partitionId = partitionId;
- }
-
- public String getMemberId() {
- return memberId;
- }
-
- public void setMemberId(String memberId) {
- this.memberId = memberId;
- }
-
- public List<String> getMemberPrivateIPs() {
- return memberPrivateIPs;
- }
-
- public void setMemberPrivateIPs(List<String> memberPrivateIPs) {
- this.memberPrivateIPs = memberPrivateIPs;
- }
-
- public List<String> getMemberPublicIPs() {
- return memberPublicIPs;
- }
-
- public void setMemberPublicIPs(List<String> memberPublicIPs) {
- this.memberPublicIPs = memberPublicIPs;
- }
-
- public String getStatus() {
- return status;
- }
-
- public void setStatus(String status) {
- this.status = status;
- }
-
- public String getDefaultPrivateIP() {
- return defaultPrivateIP;
- }
-
- public void setDefaultPrivateIP(String defaultPrivateIP) {
- this.defaultPrivateIP = defaultPrivateIP;
- }
-
- public String getLbClusterId() {
- return lbClusterId;
- }
-
- public void setLbClusterId(String lbClusterId) {
- this.lbClusterId = lbClusterId;
- }
-
- public String getDefaultPublicIP() {
- return defaultPublicIP;
- }
-
- public void setDefaultPublicIP(String defaultPublicIP) {
- this.defaultPublicIP = defaultPublicIP;
- }
-
- public List<PropertyBean> getProperty() {
- return property;
- }
-
- public void setProperty(List<PropertyBean> property) {
- this.property = property;
- }
-
- public String getClusterInstanceId() {
- return clusterInstanceId;
- }
-
- public void setClusterInstanceId(String clusterInstanceId) {
- this.clusterInstanceId = clusterInstanceId;
- }
-
- @Override
- public String toString() {
- return "Member [serviceName=" + getServiceName()
- + ", clusterId=" + getClusterId()
- + ", memberId=" + getMemberId()
- + ", clusterInstanceId=" + getClusterInstanceId()
- + ", networkPartitionId=" + getNetworkPartitionId()
- + ", partitionId=" + getPartitionId()
- + ", status=" + getStatus()
- + ", defaultPrivateIP=" + getDefaultPrivateIP()
- + ", memberPrivateIPs=" + memberPrivateIPs.toString()
- + ", defaultPublicIP=" + getDefaultPublicIP()
- + ", memberPublicIPs=" + memberPublicIPs.toString()
- + ", lbClusterId=" + getLbClusterId()
- + ", property=" + getProperty() + "]";
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/MemberBean.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/MemberBean.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/MemberBean.java
new file mode 100644
index 0000000..df76cf8
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/MemberBean.java
@@ -0,0 +1,162 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+
+ * http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.stratos.common.beans.topology;
+
+import java.util.List;
+import javax.xml.bind.annotation.XmlRootElement;
+import org.apache.stratos.common.beans.cartridge.PropertyBean;
+
+@XmlRootElement
+public class MemberBean {
+
+ private String serviceName;
+ private String clusterId;
+ private String clusterInstanceId;
+ private String networkPartitionId;
+ private String partitionId;
+ private String memberId;
+ private String status;
+ private String defaultPrivateIP;
+ private List<String> memberPrivateIPs;
+ private String lbClusterId;
+ private String defaultPublicIP;
+ private List<String> memberPublicIPs;
+ private List<PropertyBean> property;
+
+ public String getServiceName() {
+ return serviceName;
+ }
+
+ public void setServiceName(String serviceName) {
+ this.serviceName = serviceName;
+ }
+
+ public String getClusterId() {
+ return clusterId;
+ }
+
+ public void setClusterId(String clusterId) {
+ this.clusterId = clusterId;
+ }
+
+ public String getNetworkPartitionId() {
+ return networkPartitionId;
+ }
+
+ public void setNetworkPartitionId(String networkPartitionId) {
+ this.networkPartitionId = networkPartitionId;
+ }
+
+ public String getPartitionId() {
+ return partitionId;
+ }
+
+ public void setPartitionId(String partitionId) {
+ this.partitionId = partitionId;
+ }
+
+ public String getMemberId() {
+ return memberId;
+ }
+
+ public void setMemberId(String memberId) {
+ this.memberId = memberId;
+ }
+
+ public List<String> getMemberPrivateIPs() {
+ return memberPrivateIPs;
+ }
+
+ public void setMemberPrivateIPs(List<String> memberPrivateIPs) {
+ this.memberPrivateIPs = memberPrivateIPs;
+ }
+
+ public List<String> getMemberPublicIPs() {
+ return memberPublicIPs;
+ }
+
+ public void setMemberPublicIPs(List<String> memberPublicIPs) {
+ this.memberPublicIPs = memberPublicIPs;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getDefaultPrivateIP() {
+ return defaultPrivateIP;
+ }
+
+ public void setDefaultPrivateIP(String defaultPrivateIP) {
+ this.defaultPrivateIP = defaultPrivateIP;
+ }
+
+ public String getLbClusterId() {
+ return lbClusterId;
+ }
+
+ public void setLbClusterId(String lbClusterId) {
+ this.lbClusterId = lbClusterId;
+ }
+
+ public String getDefaultPublicIP() {
+ return defaultPublicIP;
+ }
+
+ public void setDefaultPublicIP(String defaultPublicIP) {
+ this.defaultPublicIP = defaultPublicIP;
+ }
+
+ public List<PropertyBean> getProperty() {
+ return property;
+ }
+
+ public void setProperty(List<PropertyBean> property) {
+ this.property = property;
+ }
+
+ public String getClusterInstanceId() {
+ return clusterInstanceId;
+ }
+
+ public void setClusterInstanceId(String clusterInstanceId) {
+ this.clusterInstanceId = clusterInstanceId;
+ }
+
+ @Override
+ public String toString() {
+ return "Member [serviceName=" + getServiceName()
+ + ", clusterId=" + getClusterId()
+ + ", memberId=" + getMemberId()
+ + ", clusterInstanceId=" + getClusterInstanceId()
+ + ", networkPartitionId=" + getNetworkPartitionId()
+ + ", partitionId=" + getPartitionId()
+ + ", status=" + getStatus()
+ + ", defaultPrivateIP=" + getDefaultPrivateIP()
+ + ", memberPrivateIPs=" + memberPrivateIPs.toString()
+ + ", defaultPublicIP=" + getDefaultPublicIP()
+ + ", memberPublicIPs=" + memberPublicIPs.toString()
+ + ", lbClusterId=" + getLbClusterId()
+ + ", property=" + getProperty() + "]";
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/domain/NameValuePair.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/domain/NameValuePair.java b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/domain/NameValuePair.java
new file mode 100644
index 0000000..be67377
--- /dev/null
+++ b/components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/domain/NameValuePair.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.stratos.common.domain;
+
+import java.io.Serializable;
+
+/**
+ * Name value pair.
+ */
+public class NameValuePair implements Serializable {
+
+ private static final long serialVersionUID = 6783497955930623020L;
+
+ private final String name;
+ private String value;
+
+ public NameValuePair(String name, String value) {
+ this.name = name;
+ this.value = value;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/8bf5f947/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV40.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV40.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV40.java
index ad71d8f..795bf75 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV40.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV40.java
@@ -20,38 +20,34 @@ package org.apache.stratos.rest.endpoint.api;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.wso2.carbon.stratos.common.beans.TenantInfoBean;
+import org.apache.stratos.common.beans.ApiResponseBean;
+import org.apache.stratos.common.beans.artifact.repository.GitNotificationPayloadBean;
+import org.apache.stratos.common.beans.cartridge.CartridgeBean;
+import org.apache.stratos.common.beans.partition.ApplicationLevelNetworkPartitionBean;
+import org.apache.stratos.common.beans.partition.PartitionBean;
+import org.apache.stratos.common.beans.policy.autoscale.AutoscalePolicyBean;
+import org.apache.stratos.common.beans.policy.deployment.DeploymentPolicyBean;
import org.apache.stratos.common.util.ClaimsMgtUtil;
import org.apache.stratos.common.util.CommonUtil;
-import org.apache.stratos.common.beans.Cartridge;
import org.apache.stratos.rest.endpoint.ServiceHolder;
import org.apache.stratos.rest.endpoint.Utils;
import org.apache.stratos.rest.endpoint.annotation.AuthorizationAction;
import org.apache.stratos.rest.endpoint.annotation.SuperTenantService;
-import org.apache.stratos.common.beans.CartridgeInfoBean;
-import org.apache.stratos.common.beans.StratosApiResponse;
-import org.apache.stratos.common.beans.SubscriptionDomainRequest;
-import org.apache.stratos.common.beans.autoscaler.partition.ApplicationLevelNetworkPartition;
-import org.apache.stratos.common.beans.autoscaler.partition.Partition;
-import org.apache.stratos.common.beans.autoscaler.policy.autoscale.AutoscalePolicy;
-import org.apache.stratos.common.beans.autoscaler.policy.deployment.DeploymentPolicy;
-import org.apache.stratos.common.beans.cartridge.definition.CartridgeDefinitionBean;
-import org.apache.stratos.common.beans.cartridge.definition.ServiceDefinitionBean;
-import org.apache.stratos.common.beans.repositoryNotificationInfoBean.Payload;
import org.apache.stratos.rest.endpoint.exception.RestAPIException;
-import org.wso2.carbon.tenant.mgt.core.TenantPersistor;
-import org.wso2.carbon.tenant.mgt.util.TenantMgtUtil;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.context.RegistryType;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import org.wso2.carbon.registry.core.session.UserRegistry;
+import org.wso2.carbon.stratos.common.beans.TenantInfoBean;
+import org.wso2.carbon.stratos.common.exception.StratosException;
+import org.wso2.carbon.tenant.mgt.core.TenantPersistor;
+import org.wso2.carbon.tenant.mgt.util.TenantMgtUtil;
import org.wso2.carbon.user.api.UserRealm;
import org.wso2.carbon.user.api.UserStoreManager;
import org.wso2.carbon.user.core.UserStoreException;
import org.wso2.carbon.user.core.tenant.Tenant;
import org.wso2.carbon.user.core.tenant.TenantManager;
import org.wso2.carbon.utils.multitenancy.MultitenantConstants;
-import org.wso2.carbon.stratos.common.exception.StratosException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
@@ -76,10 +72,10 @@ public class StratosApiV40 extends AbstractApi {
@POST
@Path("/init")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public StratosApiResponse initialize ()
+ public ApiResponseBean initialize ()
throws RestAPIException {
- StratosApiResponse stratosApiResponse = new StratosApiResponse();
+ ApiResponseBean stratosApiResponse = new ApiResponseBean();
stratosApiResponse.setMessage("Successfully logged in");
return stratosApiResponse;
}
@@ -112,7 +108,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse deployCartridgeDefinition(CartridgeDefinitionBean cartridgeDefinitionBean)
+ public ApiResponseBean deployCartridgeBeanDefinition(CartridgeBean cartridgeDefinitionBean)
throws RestAPIException {
return StratosApiV40Utils.deployCartridge(cartridgeDefinitionBean, getConfigContext(), getUsername(),
@@ -126,7 +122,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse unDeployCartridgeDefinition (@PathParam("cartridgeType") String cartridgeType) throws RestAPIException {
+ public ApiResponseBean unDeployCartridgeBeanDefinition (@PathParam("cartridgeType") String cartridgeType) throws RestAPIException {
return StratosApiV40Utils.undeployCartridge(cartridgeType);
}
@@ -137,7 +133,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse deployPartition (Partition partition)
+ public ApiResponseBean deployPartition (PartitionBean partition)
throws RestAPIException {
return StratosApiV40Utils.deployPartition(partition);
@@ -149,7 +145,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse deployAutoscalingPolicyDefintion (AutoscalePolicy autoscalePolicy)
+ public ApiResponseBean deployAutoscalingPolicyDefintion (AutoscalePolicyBean autoscalePolicy)
throws RestAPIException {
return StratosApiV40Utils.deployAutoscalingPolicy(autoscalePolicy);
@@ -161,7 +157,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public Response deployDeploymentPolicyDefinition(DeploymentPolicy deploymentPolicy)
+ public Response deployDeploymentPolicyDefinition(DeploymentPolicyBean deploymentPolicy)
throws RestAPIException {
// Not supported in 4.1.0
return Response.status(Response.Status.GONE).build();
@@ -182,7 +178,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Partition getPartition (@PathParam("partitionId") String partitionId) throws RestAPIException {
+ public PartitionBean getPartition (@PathParam("partitionId") String partitionId) throws RestAPIException {
return StratosApiV40Utils.getPartition(partitionId);
}
@@ -192,7 +188,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public ApplicationLevelNetworkPartition[] getPartitionGroups (@PathParam("deploymentPolicyId") String deploymentPolicyId)
+ public ApplicationLevelNetworkPartitionBean[] getPartitionGroups (@PathParam("deploymentPolicyId") String deploymentPolicyId)
throws RestAPIException {
return StratosApiV40Utils.getPartitionGroups(deploymentPolicyId);
@@ -203,7 +199,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Partition [] getPartitions (@PathParam("deploymentPolicyId") String deploymentPolicyId,
+ public PartitionBean[] getPartitions (@PathParam("deploymentPolicyId") String deploymentPolicyId,
@PathParam("partitionGroupId") String partitionGroupId) throws RestAPIException {
return StratosApiV40Utils.getPartitionsOfGroup(deploymentPolicyId, partitionGroupId);
@@ -214,7 +210,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Partition [] getPartitionsOfPolicy (@PathParam("deploymentPolicyId") String deploymentPolicyId)
+ public PartitionBean[] getPartitionsOfPolicy (@PathParam("deploymentPolicyId") String deploymentPolicyId)
throws RestAPIException {
return StratosApiV40Utils.getPartitionsOfDeploymentPolicy(deploymentPolicyId);
@@ -225,7 +221,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public AutoscalePolicy[] getAutoscalePolicies () throws RestAPIException {
+ public AutoscalePolicyBean[] getAutoscalePolicies () throws RestAPIException {
return StratosApiV40Utils.getAutoScalePolicies();
}
@@ -235,7 +231,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public AutoscalePolicy getAutoscalePolicies (@PathParam("autoscalePolicyId") String autoscalePolicyId)
+ public AutoscalePolicyBean getAutoscalePolicies (@PathParam("autoscalePolicyId") String autoscalePolicyId)
throws RestAPIException {
return StratosApiV40Utils.getAutoScalePolicy(autoscalePolicyId);
@@ -278,9 +274,9 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Cartridge[] getAvailableMultiTenantCartridges() throws RestAPIException {
- List<Cartridge> cartridges = StratosApiV40Utils.getAvailableCartridges(null, true, getConfigContext());
- return cartridges.isEmpty() ? new Cartridge[0] : cartridges.toArray(new Cartridge[cartridges.size()]);
+ public CartridgeBean[] getAvailableMultiTenantCartridgeBeans() throws RestAPIException {
+ List<CartridgeBean> cartridges = StratosApiV40Utils.getAvailableCartridges(null, true, getConfigContext());
+ return cartridges.isEmpty() ? new CartridgeBean[0] : cartridges.toArray(new CartridgeBean[cartridges.size()]);
}
@GET
@@ -288,9 +284,9 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Cartridge[] getAvailableSingleTenantCartridges() throws RestAPIException {
- List<Cartridge> cartridges = StratosApiV40Utils.getAvailableCartridges(null, false, getConfigContext());
- return cartridges.isEmpty() ? new Cartridge[0] : cartridges.toArray(new Cartridge[cartridges.size()]);
+ public CartridgeBean[] getAvailableSingleTenantCartridgeBeans() throws RestAPIException {
+ List<CartridgeBean> cartridges = StratosApiV40Utils.getAvailableCartridges(null, false, getConfigContext());
+ return cartridges.isEmpty() ? new CartridgeBean[0] : cartridges.toArray(new CartridgeBean[cartridges.size()]);
}
@GET
@@ -298,9 +294,9 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Cartridge[] getAvailableCartridges() throws RestAPIException {
- List<Cartridge> cartridges = StratosApiV40Utils.getAvailableCartridges(null, null, getConfigContext());
- return cartridges.isEmpty() ? new Cartridge[0] : cartridges.toArray(new Cartridge[cartridges.size()]);
+ public CartridgeBean[] getAvailableCartridgeBeans() throws RestAPIException {
+ List<CartridgeBean> cartridges = StratosApiV40Utils.getAvailableCartridges(null, null, getConfigContext());
+ return cartridges.isEmpty() ? new CartridgeBean[0] : cartridges.toArray(new CartridgeBean[cartridges.size()]);
}
@GET
@@ -308,7 +304,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Response getSubscribedCartridges() throws RestAPIException {
+ public Response getSubscribedCartridgeBeans() throws RestAPIException {
return Response.status(404).build();
}
@@ -317,7 +313,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Response getSubscribedCartridgesForServiceGroup(@PathParam("serviceGroup") String serviceGroup) throws RestAPIException {
+ public Response getSubscribedCartridgeBeansForServiceGroup(@PathParam("serviceGroup") String serviceGroup) throws RestAPIException {
return Response.status(404).build();
}
@@ -326,7 +322,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Response getCartridgeInfo(@PathParam("subscriptionAlias") String subscriptionAlias) throws RestAPIException {
+ public Response getCartridgeBeanInfo(@PathParam("subscriptionAlias") String subscriptionAlias) throws RestAPIException {
return Response.status(404).build();
}
@@ -335,7 +331,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Cartridge getAvailableSingleTenantCartridgeInfo(@PathParam("cartridgeType") String cartridgeType)
+ public CartridgeBean getAvailableSingleTenantCartridgeBeanInfo(@PathParam("cartridgeType") String cartridgeType)
throws RestAPIException {
return StratosApiV40Utils.getAvailableCartridgeInfo(cartridgeType, null, getConfigContext());
}
@@ -345,7 +341,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public List<Cartridge> getAvailableLbCartridges()
+ public List<CartridgeBean> getAvailableLbCartridgeBeans()
throws RestAPIException {
return StratosApiV40Utils.getAvailableLbCartridges(false, getConfigContext());
}
@@ -365,8 +361,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public Response subscribe(CartridgeInfoBean cartridgeInfoBean) throws RestAPIException {
-
+ public Response subscribe(Object cartridgeInfoBean) throws RestAPIException {
return Response.status(404).build();
}
@@ -422,7 +417,7 @@ public class StratosApiV40 extends AbstractApi {
@Path("/cartridge/unsubscribe")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public StratosApiResponse unsubscribe(String alias) throws RestAPIException {
+ public ApiResponseBean unsubscribe(String alias) throws RestAPIException {
return StratosApiV40Utils.unsubscribe(alias, getTenantDomain());
@@ -434,7 +429,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse addTenant(TenantInfoBean tenantInfoBean) throws RestAPIException {
+ public ApiResponseBean addTenant(TenantInfoBean tenantInfoBean) throws RestAPIException {
try {
CommonUtil.validateEmail(tenantInfoBean.getEmail());
} catch (Exception e) {
@@ -509,7 +504,7 @@ public class StratosApiV40 extends AbstractApi {
throw new RestAPIException(msg);
}
- StratosApiResponse stratosApiResponse = new StratosApiResponse();
+ ApiResponseBean stratosApiResponse = new ApiResponseBean();
stratosApiResponse.setMessage("Successfully added new tenant with domain " + tenantInfoBean.getTenantDomain());
return stratosApiResponse;
}
@@ -519,7 +514,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse updateTenant(TenantInfoBean tenantInfoBean) throws RestAPIException {
+ public ApiResponseBean updateTenant(TenantInfoBean tenantInfoBean) throws RestAPIException {
try {
return updateExistingTenant(tenantInfoBean);
@@ -530,7 +525,7 @@ public class StratosApiV40 extends AbstractApi {
}
}
- private StratosApiResponse updateExistingTenant(TenantInfoBean tenantInfoBean) throws Exception {
+ private ApiResponseBean updateExistingTenant(TenantInfoBean tenantInfoBean) throws Exception {
TenantManager tenantManager = ServiceHolder.getTenantManager();
UserStoreManager userStoreManager;
@@ -650,7 +645,7 @@ public class StratosApiV40 extends AbstractApi {
throw new Exception(msg, e);
}
- StratosApiResponse stratosApiResponse = new StratosApiResponse();
+ ApiResponseBean stratosApiResponse = new ApiResponseBean();
stratosApiResponse.setMessage("Successfully updated the tenant " + tenantDomain);
return stratosApiResponse;
}
@@ -721,7 +716,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse deleteTenant(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
+ public ApiResponseBean deleteTenant(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
TenantManager tenantManager = ServiceHolder.getTenantManager();
int tenantId = 0;
try {
@@ -745,7 +740,7 @@ public class StratosApiV40 extends AbstractApi {
throw new RestAPIException(msg);
}
- StratosApiResponse stratosApiResponse = new StratosApiResponse();
+ ApiResponseBean stratosApiResponse = new ApiResponseBean();
stratosApiResponse.setMessage("Successfully deleted tenant " + tenantDomain);
return stratosApiResponse;
}
@@ -790,7 +785,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse activateTenant(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
+ public ApiResponseBean activateTenant(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
TenantManager tenantManager = ServiceHolder.getTenantManager();
int tenantId;
try {
@@ -806,7 +801,7 @@ public class StratosApiV40 extends AbstractApi {
throw new RestAPIException( e);
}
- StratosApiResponse stratosApiResponse = new StratosApiResponse();
+ ApiResponseBean stratosApiResponse = new ApiResponseBean();
try {
TenantMgtUtil.activateTenant(tenantDomain, tenantManager, tenantId);
@@ -849,7 +844,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public StratosApiResponse deactivateTenant(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
+ public ApiResponseBean deactivateTenant(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
TenantManager tenantManager = ServiceHolder.getTenantManager();
int tenantId;
@@ -867,7 +862,7 @@ public class StratosApiV40 extends AbstractApi {
throw new RestAPIException( e);
}
- StratosApiResponse stratosApiResponse = new StratosApiResponse();
+ ApiResponseBean stratosApiResponse = new ApiResponseBean();
try {
TenantMgtUtil.deactivateTenant(tenantDomain, tenantManager, tenantId);
@@ -894,7 +889,7 @@ public class StratosApiV40 extends AbstractApi {
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
@SuperTenantService(true)
- public Response deployService(ServiceDefinitionBean serviceDefinitionBean)
+ public Response deployService(Object serviceDefinitionBean)
throws RestAPIException {
return Response.status(404).build();
}
@@ -943,7 +938,7 @@ public class StratosApiV40 extends AbstractApi {
@Produces("application/json")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public void getRepoNotification(Payload payload) throws RestAPIException {
+ public void getRepoNotification(GitNotificationPayloadBean payload) throws RestAPIException {
StratosApiV40Utils.notifyArtifactUpdatedEvent(payload);
}
@@ -952,11 +947,11 @@ public class StratosApiV40 extends AbstractApi {
@Path("/cartridge/sync")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public StratosApiResponse synchronizeRepository(String alias) throws RestAPIException {
+ public ApiResponseBean synchronizeRepository(String alias) throws RestAPIException {
if (log.isDebugEnabled()) {
log.debug(String.format("Synchronizing Git repository for alias '%s'", alias));
}
-// CartridgeSubscription cartridgeSubscription = StratosApiV40Utils.getCartridgeSubscription(alias, getConfigContext());
+// CartridgeBeanSubscription cartridgeSubscription = StratosApiV40Utils.getCartridgeBeanSubscription(alias, getConfigContext());
// if (cartridgeSubscription != null && cartridgeSubscription.getRepository() != null && log.isDebugEnabled()) {
// log.debug(String.format("Found subscription for '%s'. Git repository: %s", alias, cartridgeSubscription
// .getRepository().getUrl()));
@@ -1010,10 +1005,9 @@ public class StratosApiV40 extends AbstractApi {
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
public Response addSubscriptionDomains(@PathParam("cartridgeType") String cartridgeType,
@PathParam("subscriptionAlias") String subscriptionAlias,
- SubscriptionDomainRequest request) throws RestAPIException {
+ Object request) throws RestAPIException {
- StratosApiResponse stratosApiResponse = StratosApiV40Utils.addSubscriptionDomains(getConfigContext(), cartridgeType, subscriptionAlias, request);
- return Response.ok().entity(stratosApiResponse).build();
+ throw new RestAPIException("Not implemented");
}
@GET
@@ -1051,10 +1045,10 @@ public class StratosApiV40 extends AbstractApi {
@Path("/cartridge/{cartridgeType}/subscription/{subscriptionAlias}/domains/{domainName}")
@Consumes("application/json")
@AuthorizationAction("/permission/protected/manage/monitor/tenants")
- public StratosApiResponse removeSubscriptionDomain(@PathParam("cartridgeType") String cartridgeType,
+ public ApiResponseBean removeSubscriptionDomain(@PathParam("cartridgeType") String cartridgeType,
@PathParam("subscriptionAlias") String subscriptionAlias,
@PathParam("domainName") String domainName) throws RestAPIException {
- return StratosApiV40Utils.removeSubscriptionDomain(getConfigContext(), cartridgeType, subscriptionAlias, domainName);
+ throw new RestAPIException("Not implemented");
}
@GET