remove unused classes. issue #315 (#316)
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Access.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Access.java
deleted file mode 100644
index 0eb6715..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Access.java
+++ /dev/null
@@ -1,70 +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.dubbo.admin.model.domain;
-
-public class Access extends Entity {
-
- private static final long serialVersionUID = -962351722638094446L;
-
- private String service; /*service name*/
-
- private String address; /*address of consumer*/
-
- private boolean allow; /*status*/
-
- private String username; /*user name*/
-
- public Access() {
- }
-
- public Access(Long id) {
- super(id);
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
- public boolean isAllow() {
- return allow;
- }
-
- public void setAllow(boolean allow) {
- this.allow = allow;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Agreement.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Agreement.java
deleted file mode 100644
index 87cb997..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Agreement.java
+++ /dev/null
@@ -1,104 +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.dubbo.admin.model.domain;
-
-/**
- * Specifies the applied Quality of Service Level Agreement (SLA) object.
- *
- */
-public class Agreement extends Entity {
-
- private static final long serialVersionUID = -4888604682731513790L;
-
- private String service; // service name
-
- private String consumerApplication; // application of consumer
-
- private long invocationQuantity; // call of the day
-
- private int tps; // TPS limit
-
- private int responseTime; // Response time in milliseconds
-
- private double availability; // ratio of available
-
- private String username;
-
- public Agreement() {
- }
-
- public Agreement(Long id) {
- super(id);
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getConsumerApplication() {
- return consumerApplication;
- }
-
- public void setConsumerApplication(String consumerApplication) {
- this.consumerApplication = consumerApplication;
- }
-
- public long getInvocationQuantity() {
- return invocationQuantity;
- }
-
- public void setInvocationQuantity(long invocationQuantity) {
- this.invocationQuantity = invocationQuantity;
- }
-
- public int getTps() {
- return tps;
- }
-
- public void setTps(int tps) {
- this.tps = tps;
- }
-
- public int getResponseTime() {
- return responseTime;
- }
-
- public void setResponseTime(int responseTime) {
- this.responseTime = responseTime;
- }
-
- public double getAvailability() {
- return availability;
- }
-
- public void setAvailability(double availability) {
- this.availability = availability;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Approval.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Approval.java
deleted file mode 100644
index abeb8d4..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Approval.java
+++ /dev/null
@@ -1,89 +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.dubbo.admin.model.domain;
-
-/**
- * Service online approval.
- *
- */
-public class Approval extends Entity {
- private static final long serialVersionUID = -8778092807313048367L;
-
- private String service; // service name
-
- private String version;
- // You can use wildcards, *,1.1.*
- // Can contain more than one, 1.1.3,1.1.5,2.*
-
- private boolean forProvider; // Provider or consumer
-
- private String machineList; // service machine
- // You can use wildcards, 172.3.8.*
- // an contain more than one, 172.1.9.8,172.1.9.123,172.3.3.*
-
- private String username;
-
- private String approveUser; // approver
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public boolean isForProvider() {
- return forProvider;
- }
-
- public void setForProvider(boolean forProvider) {
- this.forProvider = forProvider;
- }
-
- public String getMachineList() {
- return machineList;
- }
-
- public void setMachineList(String machineList) {
- this.machineList = machineList;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getApproveUser() {
- return approveUser;
- }
-
- public void setApproveUser(String approveUser) {
- this.approveUser = approveUser;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/ApprovalRequisition.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/ApprovalRequisition.java
deleted file mode 100644
index 70b3af8..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/ApprovalRequisition.java
+++ /dev/null
@@ -1,99 +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.dubbo.admin.model.domain;
-
-/**
- * Service online / offline approval
- *
- */
-public class ApprovalRequisition extends Entity {
- private static final long serialVersionUID = -8778092807313048367L;
-
- private char operation; // Apply for action: add (C), modify (U), delete (D)
-
- private Long approvalId;
-
- private String service; // service name
-
- private String version;
- // wildcards, *,1.1.*
- // more than one, 1.1.3,1.1.5,2.*
-
- private boolean forProvider;
-
- private String machineList; // servcice machine
- // wildcards, 172.3.8.*
- // more thaan one, 172.1.9.8,172.1.9.123,172.3.3.*
-
- private String username;
-
- public char getOperation() {
- return operation;
- }
-
- public void setOperation(char operation) {
- this.operation = operation;
- }
-
- public Long getApprovalId() {
- return approvalId;
- }
-
- public void setApprovalId(Long approvalId) {
- this.approvalId = approvalId;
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public boolean isForProvider() {
- return forProvider;
- }
-
- public void setForProvider(boolean forProvider) {
- this.forProvider = forProvider;
- }
-
- public String getMachineList() {
- return machineList;
- }
-
- public void setMachineList(String machineList) {
- this.machineList = machineList;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Change.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Change.java
deleted file mode 100644
index 957e2af..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Change.java
+++ /dev/null
@@ -1,99 +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.dubbo.admin.model.domain;
-
-/**
- * Service change information object
- *
- */
-public class Change extends Entity {
-
- public static final String PROVIDER_TYPE = "P"; //provider change
- public static final String CONSUMER_TYPE = "N"; //consumer change
- public static final String ROUTE_TYPE = "R"; //route change
- public static final String WEIGHT_TYPE = "W"; //weight change
- public static final String LOADBALANCE_TYPE = "L"; //loadbalance change
- public static final String CLUSTER_TYPE = "G"; //group change
- public static final String USER_TYPE = "U"; //user change
- public static final String CONFIG_TYPE = "C"; //system config change
- public static final String FEATURE_TYPE = "F"; //feature change
- public static final String LAYER_TYPE = "Y"; //layer change
- public static final String TEST_TYPE = "T"; //service test change
- public static final String MOCK_TYPE = "M"; //service mock change
- public static final String ACCESS_TYPE = "A"; //access change
- public static final String OVERRIDE_TYPE = "O"; //override change
- private static final long serialVersionUID = 15528419903956898L;
- private String type; /* type of change */
-
- private String service; /* service name */
-
- private long sequence; /* NO. of change */
-
- private String data; /* what is changed */
-
- public Change() {
- }
-
- public Change(Long id) {
- super(id);
- }
-
- public Change(String type, String serviceName) {
- this.type = type;
- this.service = serviceName;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- @Deprecated
- /**
- * us id as sequence
- */
- public long getSequence() {
- return sequence;
- }
-
- @Deprecated
- /**
- * use id as sequence
- */
- public void setSequence(long sequence) {
- this.sequence = sequence;
- }
-
- public String getData() {
- return data;
- }
-
- public void setData(String data) {
- this.data = data;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Cluster.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Cluster.java
deleted file mode 100644
index b6b86cc..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Cluster.java
+++ /dev/null
@@ -1,60 +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.dubbo.admin.model.domain;
-
-public class Cluster extends Entity {
-
- private static final long serialVersionUID = 8704571999015097948L;
-
- private String name; /* Service provider group name, a group can contain several providers*/
-
- private String address; /* address of consumer */
-
- private String username;
-
- public Cluster() {
- }
-
- public Cluster(Long id) {
- super(id);
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getAddress() {
- return address;
- }
-
- public void setAddress(String address) {
- this.address = address;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Config.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Config.java
deleted file mode 100644
index 7c4b330..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Config.java
+++ /dev/null
@@ -1,97 +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.dubbo.admin.model.domain;
-
-/**
- * Config instance
- *
- */
-public class Config extends Entity {
-
- public static final String MAIL_ENABLED = "MailEnabled";
- public static final String MAIL_HOST = "MailHost";
- public static final String MAIL_PORT = "MailPort";
- public static final String MAIL_FROM = "MailFrom";
- public static final String MAIL_AUTH = "MailAuth";
- public static final String MAIL_USERNAME = "MailUsername";
- public static final String MAIL_PASSWORD = "MailPassword";
- public static final String BULLETIN_MESSAGE = "BulletinMessage";
- public static final String ALLOW_ANONYMOUS_LOGIN = "AllowAnonymousLogin"; // Whether to allow anonymous login
- public static final String ALLOW_LEGACY_LOGIN = "AllowLegacyLogin"; // Whether to allow legacy system login
- public static final String MAX_THREAD_SIZE = "MaxThreadSize"; // The maximum number of threads
- public static final String MAX_CONNECTION_SIZE = "MaxConnectionSize"; // The maximum number of connections
- public static final String MAX_CACHE_SIZE = "MaxCacheSize"; // The maximum number of cache (not space)
- public static final String MAX_MAIL_SIZE = "MaxMailSize"; // The maximum number of mail queues
- public static final String ALIVED_CHECK_INTERVAL = "AlivedCheckInterval";
- public static final String DIRTY_CHECK_INTERVAL = "DirtyCheckInterval";
- public static final String CHANGED_CHECK_INTERVAL = "ChangedCheckInterval";
- public static final String CHANGED_CLEAR_INTERVAL = "ChangedClearInterval";
- public static final String FAILED_RETRY_INTERVAL = "FailedRetryInterval";
- public static final String HEARTBEAT_CHECK_INTERVAL = "HeartbeatCheckInterval";// Heartbeat check interval
- public static final String HEARTBEAT_CHECK_TIMEOUT = "HeartbeatCheckTimeout";// The biggest interval for not receive a heartbeat
- public static final String WARMUP_WAIT_TIME = "WarmupWaitTime";
- public static final String AUTO_REDIRECT_INTERVAL = "AutoRedirectInterval";
- public static final String AUTO_REDIRECT_THRESHOLD = "AutoRedirectThreshold";
- public static final String AUTO_REDIRECT_TOLERATE_PERCENT = "AutoRedirectToleratePercent";
- public static final String NOTIFY_TIMEOUT = "NotifyTimeout";
- public static final String ROUTE_ENABLED = "RouteEnabled";
- public static final String BUC_SERVICE_ADDRESS = "BucServiceAddress";
- public static final String DEFAULT_SERVICE_PARAMETERS = "DefaultServiceParameters";
- public static final String WARM_UP_ENABLED = "WarmupEnabled";
- public static final String HELP_DOCUMENT_URL = "HelpDocumentUrl";
- public static final String HOMEPAGE_DOMAIN = "HomepageDomain";
- public static final String HOMEPAGE_URL = "HomepageUrl";
- public static final String LOG_LEVEL = "LogLevel";
- public static final String DEFAULT_ROLE = "DefaultRole"; // The default role of user
- public static final String SERVER_ROUTE_ENABLED = "ServerRouteEnabled";
- private static final long serialVersionUID = 7938303018328907548L;
- private String key;
-
- private String value;
-
- private String username;
-
- public String getKey() {
- return key;
- }
-
- public void setKey(String key) {
- this.key = key;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- @java.lang.Override
- public String toString() {
- return key + "=" + value;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Document.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Document.java
deleted file mode 100644
index ea08450..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Document.java
+++ /dev/null
@@ -1,86 +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.dubbo.admin.model.domain;
-
-/**
- * Document
- *
- */
-public class Document extends Entity {
-
- public static final String EXTERNAL_TYPE = "E";
- public static final String INTERNAL_TYPE = "I";
- public static final String API_TYPE = "A";
- private static final long serialVersionUID = 5059135057592486874L;
- private String service;
-
- private String title;
-
- private String type;
-
- private String content;
-
- private String username;
-
- public Document() {
- }
-
- public Document(Long id) {
- super(id);
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public String getContent() {
- return content;
- }
-
- public void setContent(String content) {
- this.content = content;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Favorite.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Favorite.java
deleted file mode 100644
index 17d9634..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Favorite.java
+++ /dev/null
@@ -1,60 +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.dubbo.admin.model.domain;
-
-public class Favorite extends Entity {
-
- private static final long serialVersionUID = -1281982267153430266L;
-
- private String name;
-
- private String url;
-
- private String username;
-
- public Favorite() {
- }
-
- public Favorite(Long id) {
- super(id);
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Feature.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Feature.java
deleted file mode 100644
index 4318e47..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Feature.java
+++ /dev/null
@@ -1,62 +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.dubbo.admin.model.domain;
-
-/**
- * System features
- */
-public class Feature extends Entity {
-
- private static final long serialVersionUID = 3246619851259746169L;
-
- private String name;
-
- private boolean enabled;
-
- private String username;
-
- public Feature() {
- }
-
- public Feature(Long id) {
- super(id);
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public boolean getEnabled() {
- return enabled;
- }
-
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Layer.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Layer.java
deleted file mode 100644
index 8dce680..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Layer.java
+++ /dev/null
@@ -1,66 +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.dubbo.admin.model.domain;
-
-public class Layer extends Entity {
- private static final long serialVersionUID = 6114868933223039253L;
-
- private String username;
-
- private String arch;
- private String name;
- private int value;
-
- public Layer(Long id) {
- super(id);
- }
-
- public Layer() {
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getArch() {
- return arch;
- }
-
- public void setArch(String arch) {
- this.arch = arch;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public int getValue() {
- return value;
- }
-
- public void setValue(int value) {
- this.value = value;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Mock.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Mock.java
deleted file mode 100644
index 1b714ad..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Mock.java
+++ /dev/null
@@ -1,124 +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.dubbo.admin.model.domain;
-
-/**
- * Mock
- *
- */
-public class Mock extends Entity {
-
- private static final long serialVersionUID = 872527738197173003L;
-
- private String name;
-
- private String service;
-
- private String method;
-
- private String parameters;
-
- private boolean exception;
-
- private String result;
-
- private String username;
-
- private boolean autoRun;
-
- private String consumerAddr;
-
- public Mock() {
- }
-
- public Mock(Long id) {
- super(id);
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getMethod() {
- return method;
- }
-
- public void setMethod(String method) {
- this.method = method;
- }
-
- public String getParameters() {
- return parameters;
- }
-
- public void setParameters(String parameters) {
- this.parameters = parameters;
- }
-
- public String getResult() {
- return result;
- }
-
- public void setResult(String result) {
- this.result = result;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public boolean isException() {
- return exception;
- }
-
- public void setException(boolean exception) {
- this.exception = exception;
- }
-
- public boolean isAutoRun() {
- return autoRun;
- }
-
- public void setAutoRun(boolean autoRun) {
- this.autoRun = autoRun;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getConsumerAddr() {
- return consumerAddr;
- }
-
- public void setConsumerAddr(String consumerAddr) {
- this.consumerAddr = consumerAddr;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Operation.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Operation.java
deleted file mode 100644
index 4a9e2ca..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Operation.java
+++ /dev/null
@@ -1,100 +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.dubbo.admin.model.domain;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-/**
- * Record error messages and record all user operations
- *
- */
-public class Operation extends Entity {
-
- public static final String PROVIDER_TYPE = "Provider";
- public static final String CONSUMER_TYPE = "Consumer";
- public static final String ROUTE_TYPE = "ConditionRoute";
- public static final String WEIGHT_TYPE = "Weight";
- public static final String CLUSTER_TYPE = "Cluster";
- public static final String DOCUMENT_TYPE = "Document";
- public static final String LOADBALANCE_TYPE = "LoadBalance";
- public static final String TEST_TYPE = "Test";
- public static final String MOCK_TYPE = "Mock";
- public static final String AGREEMENT_TYPE = "Agreement";
- public static final String APPROVAL_TYPE = "Approval";
- public static final String APPROVAL_REQUISITION_TYPE = "ApprovalRequisition";
- public static final String USER_TYPE = "User";
- public static final String FEATURE_TYPE = "Feature";
- public static final String LAYER_TYPE = "Layer";
- public static final String CONFIG_TYPE = "Config";
- public static final List<String> TYPES =
- Collections.unmodifiableList(
- Arrays.asList(new String[]{PROVIDER_TYPE, CONSUMER_TYPE, ROUTE_TYPE, WEIGHT_TYPE,
- CLUSTER_TYPE, DOCUMENT_TYPE, LOADBALANCE_TYPE, TEST_TYPE,
- AGREEMENT_TYPE, USER_TYPE, FEATURE_TYPE, CONFIG_TYPE}));
- private static final long serialVersionUID = 8220325876753890396L;
- private String username; // operator
-
- private String dataType; // data type, e.g., route, cluster
-
- private String operateType; // operations, e.g. update, create
-
- private String data; // record data information
-
- public Operation() {
- }
-
- public Operation(Long id) {
- super(id);
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getDataType() {
- return dataType;
- }
-
- public void setDataType(String dataType) {
- this.dataType = dataType;
- }
-
- public String getData() {
- return data;
- }
-
- public void setData(String data) {
- if (data != null && data.length() > 1000) {
- data = data.substring(0, 1000);
- }
- this.data = data;
- }
-
- public String getOperateType() {
- return operateType;
- }
-
- public void setOperateType(String operateType) {
- this.operateType = operateType;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Owner.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Owner.java
deleted file mode 100644
index 9f91bea..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Owner.java
+++ /dev/null
@@ -1,63 +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.dubbo.admin.model.domain;
-
-public class Owner extends Entity {
-
- private static final long serialVersionUID = -4891350118145794727L;
-
- /**
- * wildcards allowed
- */
- private String service;
-
- private String username;
-
- private User user;
-
- public Owner() {
- }
-
- public Owner(Long id) {
- super(id);
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public User getUser() {
- return user;
- }
-
- public void setUser(User user) {
- this.user = user;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Registry.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Registry.java
deleted file mode 100644
index 3c56209..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Registry.java
+++ /dev/null
@@ -1,94 +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.dubbo.admin.model.domain;
-
-import java.util.Date;
-
-/**
- * Registry
- *
- */
-public class Registry extends Entity {
-
- private static final long serialVersionUID = -8866645978415551309L;
-
- private String registry;/* registry address */
-
- private String url;
-
- private int connections = 0;/* connections number to registry */
-
- private Date expired; /*time to expire*/
-
- private long alived;
-
- public Registry() {
- }
-
- public Registry(Long id) {
- super(id);
- }
-
- public Registry(String registryAddress, String consoleUrl, int aliveSeconds) {
- this.registry = registryAddress;
- this.url = consoleUrl;
- this.alived = aliveSeconds;
- }
-
- public String getAddress() {
- return registry;
- }
-
- public void setAddress(String registry) {
- this.registry = registry;
- }
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-
- public Date getExpired() {
- return expired;
- }
-
- public void setExpired(Date expiredDate) {
- this.expired = expiredDate;
- }
-
- public long getAlived() {
- return alived;
- }
-
- public void setAlived(long aliveSeconds) {
- this.alived = aliveSeconds;
- }
-
-
- public int getConnections() {
- return connections;
- }
-
-
- public void setConnections(int connections) {
- this.connections = connections;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/User.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/User.java
deleted file mode 100644
index 4038e12..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/User.java
+++ /dev/null
@@ -1,259 +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.dubbo.admin.model.domain;
-
-import org.apache.dubbo.admin.common.util.ParseUtils;
-
-import java.util.Arrays;
-import java.util.List;
-
-/**
- * User
- *
- */
-public class User extends Entity {
-
- public static final String REALM = "dubbo";
- public static final String ROOT = "R";
- public static final String ADMINISTRATOR = "A";
- public static final String MANAGER = "M";
- public static final String GUEST = "G";
- public static final String ANONYMOUS = "anonymous";
- public static final String LEGACY = "legacy";
- private static final long serialVersionUID = 7330539198581235339L;
- private String username;
-
- private String password;
-
- private String role;
-
- private String creator;
-
- private boolean enabled;
-
- private String name;
-
- private String department;
-
- private String email;
-
- private String phone;
-
- private String alitalk;
-
- private String locale;
-
- private String servicePrivilege;
-
- private List<String> servicePrivileges;
-
- public User() {
- }
-
- public User(Long id) {
- super(id);
- }
-
- public static boolean isValidPrivilege(String servicePrivilege) {
- if (servicePrivilege == null || servicePrivilege.length() == 0) {
- return true;
- }
- String[] privileges = servicePrivilege.trim().split("\\s*,\\s*");
- for (String privilege : privileges) {
- if (privilege.endsWith("*")) {
- privilege = privilege.substring(0, privilege.length() - 1);
- }
- if (privilege.indexOf('*') > -1) {
- return false;
- }
- }
- return true;
- }
-
- public String getUsername() {
- return username;
- }
-
- public void setUsername(String username) {
- this.username = username;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
- }
-
- public String getRole() {
- return role;
- }
-
- public void setRole(String role) {
- this.role = role;
- }
-
- public String getCreator() {
- return creator;
- }
-
- public void setCreator(String creator) {
- this.creator = creator;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public boolean hasServicePrivilege(String[] services) {
- if (services == null || services.length == 0)
- throw new IllegalArgumentException("services == null");
- for (String service : services) {
- boolean r = hasServicePrivilege(service);
- if (!r)
- return false;
- }
- return true;
- }
-
- public boolean canGrantPrivilege(String servicePrivilege) {
- if (servicePrivilege == null || servicePrivilege.length() == 0) {
- return true;
- }
- if (servicePrivileges == null || servicePrivileges.size() == 0) {
- return false;
- }
- String[] privileges = servicePrivilege.trim().split("\\s*,\\s*");
- for (String privilege : privileges) {
- boolean hasPrivilege = false;
- for (String ownPrivilege : servicePrivileges) {
- if (matchPrivilege(ownPrivilege, privilege)) {
- hasPrivilege = true;
- }
- }
- if (!hasPrivilege) {
- return false;
- }
- }
- return true;
- }
-
- private boolean matchPrivilege(String ownPrivilege, String privilege) {
- if ("*".equals(ownPrivilege) || ownPrivilege.equals(privilege)) {
- return true;
- }
- if (privilege.endsWith("*")) {
- if (!ownPrivilege.endsWith("*")) {
- return false;
- }
- privilege = privilege.substring(0, privilege.length() - 1);
- ownPrivilege = ownPrivilege.substring(0, ownPrivilege.length() - 1);
- return privilege.startsWith(ownPrivilege);
- } else {
- if (ownPrivilege.endsWith("*")) {
- ownPrivilege = ownPrivilege.substring(0, ownPrivilege.length() - 1);
- }
- return privilege.startsWith(ownPrivilege);
- }
- }
-
- public boolean hasServicePrivilege(String service) {
- if (service == null || service.length() == 0)
- return false;
- if (role == null || GUEST.equalsIgnoreCase(role)) {
- return false;
- }
- if (ROOT.equalsIgnoreCase(role)) {
- return true;
- }
-
- if (servicePrivileges != null && servicePrivileges.size() > 0) {
- for (String privilege : servicePrivileges) {
- boolean ok = ParseUtils.isMatchGlobPattern(privilege, service);
- if (ok) {
- return true;
- }
- }
- }
- return false;
- }
-
- public String getServicePrivilege() {
- return servicePrivilege;
- }
-
- public void setServicePrivilege(String servicePrivilege) {
- this.servicePrivilege = servicePrivilege;
- if (servicePrivilege != null && servicePrivilege.length() > 0) {
- servicePrivileges = Arrays.asList(servicePrivilege.trim().split("\\s*,\\s*"));
- }
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDepartment() {
- return department;
- }
-
- public void setDepartment(String department) {
- this.department = department;
- }
-
- public String getPhone() {
- return phone;
- }
-
- public void setPhone(String phone) {
- this.phone = phone;
- }
-
- public String getAlitalk() {
- return alitalk;
- }
-
- public void setAlitalk(String alitalk) {
- this.alitalk = alitalk;
- }
-
- public boolean isEnabled() {
- return enabled;
- }
-
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- public String getLocale() {
- return locale;
- }
-
- public void setLocale(String locale) {
- this.locale = locale;
- }
-
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/Config.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/Config.java
deleted file mode 100644
index 45f6e96..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/Config.java
+++ /dev/null
@@ -1,78 +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.dubbo.admin.model.dto;
-
-import java.util.List;
-import java.util.Map;
-
-public class Config {
- private String side;
- private List<String> addresses;
- private List<String> providerAddresses;
- private Map<String, Object> parameters;
- private List<String> applications;
- private List<String> services;
-
- public String getSide() {
- return side;
- }
-
- public void setSide(String side) {
- this.side = side;
- }
-
- public List<String> getAddresses() {
- return addresses;
- }
-
- public void setAddresses(List<String> addresses) {
- this.addresses = addresses;
- }
-
- public List<String> getProviderAddresses() {
- return providerAddresses;
- }
-
- public void setProviderAddresses(List<String> providerAddresses) {
- this.providerAddresses = providerAddresses;
- }
-
- public Map<String, Object> getParameters() {
- return parameters;
- }
-
- public void setParameters(Map<String, Object> parameters) {
- this.parameters = parameters;
- }
-
- public List<String> getApplications() {
- return applications;
- }
-
- public void setApplications(List<String> applications) {
- this.applications = applications;
- }
-
- public List<String> getServices() {
- return services;
- }
-
- public void setServices(List<String> services) {
- this.services = services;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/MethodDTO.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/MethodDTO.java
deleted file mode 100644
index fdd6ffb..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/MethodDTO.java
+++ /dev/null
@@ -1,70 +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.dubbo.admin.model.dto;
-
-
-
-import java.util.List;
-
-public class MethodDTO {
- private String application;
- private String service;
- private String name;
- private List<String> parameterTypes;
- private String returnType;
-
- public String getApplication() {
- return application;
- }
-
- public void setApplication(String application) {
- this.application = application;
- }
-
- public String getService() {
- return service;
- }
-
- public void setService(String service) {
- this.service = service;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public List<String> getParameterTypes() {
- return parameterTypes;
- }
-
- public void setParameterTypes(List<String> parameterTypes) {
- this.parameterTypes = parameterTypes;
- }
-
- public String getReturnType() {
- return returnType;
- }
-
- public void setReturnType(String returnType) {
- this.returnType = returnType;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/store/BlackWhiteList.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/store/BlackWhiteList.java
deleted file mode 100644
index 3072289..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/store/BlackWhiteList.java
+++ /dev/null
@@ -1,68 +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.dubbo.admin.model.store;
-
-import java.util.List;
-
-public class BlackWhiteList {
- private boolean enabled;
- private boolean force;
- private boolean runtime;
- private int priority;
- private List<String> conditions;
-
- public boolean isEnabled() {
- return enabled;
- }
-
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- public boolean isForce() {
- return force;
- }
-
- public void setForce(boolean force) {
- this.force = force;
- }
-
- public boolean isRuntime() {
- return runtime;
- }
-
- public void setRuntime(boolean runtime) {
- this.runtime = runtime;
- }
-
- public int getPriority() {
- return priority;
- }
-
- public void setPriority(int priority) {
- this.priority = priority;
- }
-
- public List<String> getConditions() {
- return conditions;
- }
-
- public void setConditions(List<String> conditions) {
- this.conditions = conditions;
- }
-}
diff --git a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/OwnerService.java b/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/OwnerService.java
deleted file mode 100644
index 660b5f4..0000000
--- a/dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/OwnerService.java
+++ /dev/null
@@ -1,41 +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.dubbo.admin.service;
-
-import org.apache.dubbo.admin.model.domain.Owner;
-
-import java.util.List;
-
-public interface OwnerService {
-
- List<String> findAllServiceNames();
-
- List<String> findServiceNamesByUsername(String username);
-
- List<String> findUsernamesByServiceName(String serviceName);
-
- List<Owner> findByService(String serviceName);
-
- List<Owner> findAll();
-
- Owner findById(String id);
-
- void saveOwner(Owner owner);
-
- void deleteOwner(Owner owner);
-
-}