Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
incubator-dubbo-admin
提交
5367378b
I
incubator-dubbo-admin
项目概览
爱吃血肠
/
incubator-dubbo-admin
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-dubbo-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5367378b
编写于
2月 25, 2019
作者:
K
kezhenxu94
提交者:
min
2月 25, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unused classes. issue #315 (#316)
上级
906a3024
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
0 addition
and
1789 deletion
+0
-1789
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Access.java
...main/java/org/apache/dubbo/admin/model/domain/Access.java
+0
-70
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Agreement.java
...n/java/org/apache/dubbo/admin/model/domain/Agreement.java
+0
-104
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Approval.java
...in/java/org/apache/dubbo/admin/model/domain/Approval.java
+0
-89
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/ApprovalRequisition.java
.../apache/dubbo/admin/model/domain/ApprovalRequisition.java
+0
-99
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Change.java
...main/java/org/apache/dubbo/admin/model/domain/Change.java
+0
-99
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Cluster.java
...ain/java/org/apache/dubbo/admin/model/domain/Cluster.java
+0
-60
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Config.java
...main/java/org/apache/dubbo/admin/model/domain/Config.java
+0
-97
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Document.java
...in/java/org/apache/dubbo/admin/model/domain/Document.java
+0
-86
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Favorite.java
...in/java/org/apache/dubbo/admin/model/domain/Favorite.java
+0
-60
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Feature.java
...ain/java/org/apache/dubbo/admin/model/domain/Feature.java
+0
-62
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Layer.java
.../main/java/org/apache/dubbo/admin/model/domain/Layer.java
+0
-66
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Mock.java
...c/main/java/org/apache/dubbo/admin/model/domain/Mock.java
+0
-124
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Operation.java
...n/java/org/apache/dubbo/admin/model/domain/Operation.java
+0
-100
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Owner.java
.../main/java/org/apache/dubbo/admin/model/domain/Owner.java
+0
-63
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Registry.java
...in/java/org/apache/dubbo/admin/model/domain/Registry.java
+0
-94
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/User.java
...c/main/java/org/apache/dubbo/admin/model/domain/User.java
+0
-259
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/Config.java
...rc/main/java/org/apache/dubbo/admin/model/dto/Config.java
+0
-78
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/MethodDTO.java
...main/java/org/apache/dubbo/admin/model/dto/MethodDTO.java
+0
-70
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/store/BlackWhiteList.java
...va/org/apache/dubbo/admin/model/store/BlackWhiteList.java
+0
-68
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/OwnerService.java
...ain/java/org/apache/dubbo/admin/service/OwnerService.java
+0
-41
未找到文件。
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Access.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Agreement.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Approval.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/ApprovalRequisition.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Change.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Cluster.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Config.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Document.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Favorite.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Feature.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Layer.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Mock.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Operation.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Owner.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/Registry.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/domain/User.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/Config.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/dto/MethodDTO.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/model/store/BlackWhiteList.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
;
}
}
dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/OwnerService.java
已删除
100644 → 0
浏览文件 @
906a3024
/*
* 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
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录