Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
superrain51
apollo
提交
8c71054d
apollo
项目概览
superrain51
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8c71054d
编写于
11月 29, 2016
作者:
J
Jason Song
提交者:
GitHub
11月 29, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #464 from lepdou/email
change package name extend to spi
上级
282e94d9
2d9cf8ab
变更
44
隐藏空白更改
内联
并排
Showing
44 changed file
with
79 addition
and
76 deletion
+79
-76
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ItemController.java
...ramework/apollo/openapi/v1/controller/ItemController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ReleaseController.java
...ework/apollo/openapi/v1/controller/ReleaseController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/components/PermissionValidator.java
...amework/apollo/portal/components/PermissionValidator.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/AppController.java
...rip/framework/apollo/portal/controller/AppController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ClusterController.java
...framework/apollo/portal/controller/ClusterController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConsumerController.java
...ramework/apollo/portal/controller/ConsumerController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ItemController.java
...ip/framework/apollo/portal/controller/ItemController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/NamespaceController.java
...amework/apollo/portal/controller/NamespaceController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PermissionController.java
...mework/apollo/portal/controller/PermissionController.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ServerConfigController.java
...work/apollo/portal/controller/ServerConfigController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/SsoHeartbeatController.java
...work/apollo/portal/controller/SsoHeartbeatController.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/UserInfoController.java
...ramework/apollo/portal/controller/UserInfoController.java
+3
-3
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/extend/package-info.java
...om/ctrip/framework/apollo/portal/extend/package-info.java
+0
-7
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
.../framework/apollo/portal/service/AppNamespaceService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppService.java
...com/ctrip/framework/apollo/portal/service/AppService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ClusterService.java
...ctrip/framework/apollo/portal/service/ClusterService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/FavoriteService.java
...trip/framework/apollo/portal/service/FavoriteService.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ItemService.java
...om/ctrip/framework/apollo/portal/service/ItemService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceBranchService.java
...amework/apollo/portal/service/NamespaceBranchService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceService.java
...rip/framework/apollo/portal/service/NamespaceService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java
...ctrip/framework/apollo/portal/service/ReleaseService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/RoleInitializationService.java
...work/apollo/portal/service/RoleInitializationService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/LogoutHandler.java
.../com/ctrip/framework/apollo/portal/spi/LogoutHandler.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/SsoHeartbeatHandler.java
...trip/framework/apollo/portal/spi/SsoHeartbeatHandler.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/UserInfoHolder.java
...com/ctrip/framework/apollo/portal/spi/UserInfoHolder.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/UserService.java
...va/com/ctrip/framework/apollo/portal/spi/UserService.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/configuration/AuthConfiguration.java
...rk/apollo/portal/spi/configuration/AuthConfiguration.java
+13
-13
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/BizLoggingCustomizer.java
...amework/apollo/portal/spi/ctrip/BizLoggingCustomizer.java
+1
-1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripLogoutHandler.java
...framework/apollo/portal/spi/ctrip/CtripLogoutHandler.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java
...ork/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripUserInfoHolder.java
...ramework/apollo/portal/spi/ctrip/CtripUserInfoHolder.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripUserService.java
...p/framework/apollo/portal/spi/ctrip/CtripUserService.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/WebContextConfiguration.java
...work/apollo/portal/spi/ctrip/WebContextConfiguration.java
+3
-3
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/filters/RecordAccessUserFilter.java
...ollo/portal/spi/ctrip/filters/RecordAccessUserFilter.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultLogoutHandler.java
...k/apollo/portal/spi/defaultimpl/DefaultLogoutHandler.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java
...lo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultUserInfoHolder.java
.../apollo/portal/spi/defaultimpl/DefaultUserInfoHolder.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultUserService.java
...ork/apollo/portal/spi/defaultimpl/DefaultUserService.java
+2
-2
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/package-info.java
...a/com/ctrip/framework/apollo/portal/spi/package-info.java
+10
-0
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/ServiceExceptionTest.java
...m/ctrip/framework/apollo/portal/ServiceExceptionTest.java
+1
-1
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/controller/ConsumerControllerTest.java
...work/apollo/portal/controller/ConsumerControllerTest.java
+1
-1
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/ConfigServiceTest.java
...ip/framework/apollo/portal/service/ConfigServiceTest.java
+1
-1
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/RoleInitializationServiceTest.java
.../apollo/portal/service/RoleInitializationServiceTest.java
+1
-1
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripUserServiceTest.java
...amework/apollo/portal/spi/ctrip/CtripUserServiceTest.java
+1
-1
未找到文件。
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ItemController.java
浏览文件 @
8c71054d
...
...
@@ -8,7 +8,7 @@ import com.ctrip.framework.apollo.core.utils.StringUtils;
import
com.ctrip.framework.apollo.openapi.dto.OpenItemDTO
;
import
com.ctrip.framework.apollo.openapi.util.OpenApiBeanUtils
;
import
com.ctrip.framework.apollo.portal.service.ItemService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ReleaseController.java
浏览文件 @
8c71054d
...
...
@@ -10,7 +10,7 @@ import com.ctrip.framework.apollo.openapi.dto.OpenReleaseDTO;
import
com.ctrip.framework.apollo.openapi.util.OpenApiBeanUtils
;
import
com.ctrip.framework.apollo.portal.entity.model.NamespaceReleaseModel
;
import
com.ctrip.framework.apollo.portal.service.ReleaseService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/components/PermissionValidator.java
浏览文件 @
8c71054d
...
...
@@ -2,7 +2,7 @@ package com.ctrip.framework.apollo.portal.components;
import
com.ctrip.framework.apollo.common.entity.AppNamespace
;
import
com.ctrip.framework.apollo.portal.constant.PermissionType
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.service.RolePermissionService
;
import
com.ctrip.framework.apollo.portal.util.RoleUtils
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/AppController.java
浏览文件 @
8c71054d
...
...
@@ -15,7 +15,7 @@ import com.ctrip.framework.apollo.portal.entity.po.UserInfo;
import
com.ctrip.framework.apollo.portal.entity.vo.EnvClusterInfo
;
import
com.ctrip.framework.apollo.portal.listener.AppCreationEvent
;
import
com.ctrip.framework.apollo.portal.service.AppService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.ApplicationEventPublisher
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ClusterController.java
浏览文件 @
8c71054d
...
...
@@ -5,7 +5,7 @@ import com.ctrip.framework.apollo.common.exception.BadRequestException;
import
com.ctrip.framework.apollo.common.utils.InputValidator
;
import
com.ctrip.framework.apollo.common.utils.RequestPrecondition
;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.service.ClusterService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConsumerController.java
浏览文件 @
8c71054d
...
...
@@ -2,7 +2,7 @@ package com.ctrip.framework.apollo.portal.controller;
import
com.ctrip.framework.apollo.openapi.entity.ConsumerToken
;
import
com.ctrip.framework.apollo.openapi.service.ConsumerService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.format.annotation.DateTimeFormat
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ItemController.java
浏览文件 @
8c71054d
...
...
@@ -4,7 +4,7 @@ import com.ctrip.framework.apollo.common.dto.ItemDTO;
import
com.ctrip.framework.apollo.common.exception.BadRequestException
;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.core.utils.StringUtils
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.model.NamespaceSyncModel
;
import
com.ctrip.framework.apollo.portal.entity.model.NamespaceTextModel
;
import
com.ctrip.framework.apollo.portal.entity.vo.ItemDiffs
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/NamespaceController.java
浏览文件 @
8c71054d
...
...
@@ -11,7 +11,7 @@ import com.ctrip.framework.apollo.common.utils.RequestPrecondition;
import
com.ctrip.framework.apollo.core.enums.ConfigFileFormat
;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.core.utils.StringUtils
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.model.NamespaceCreationModel
;
import
com.ctrip.framework.apollo.portal.constant.RoleType
;
import
com.ctrip.framework.apollo.portal.entity.vo.NamespaceVO
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PermissionController.java
浏览文件 @
8c71054d
...
...
@@ -4,14 +4,14 @@ import com.google.common.collect.Sets;
import
com.ctrip.framework.apollo.common.exception.BadRequestException
;
import
com.ctrip.framework.apollo.common.utils.RequestPrecondition
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.RoleType
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.entity.vo.AppRolesAssignedUsers
;
import
com.ctrip.framework.apollo.portal.entity.vo.NamespaceRolesAssignedUsers
;
import
com.ctrip.framework.apollo.portal.entity.vo.PermissionCondition
;
import
com.ctrip.framework.apollo.portal.service.RolePermissionService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
com.ctrip.framework.apollo.portal.util.RoleUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ServerConfigController.java
浏览文件 @
8c71054d
...
...
@@ -3,7 +3,7 @@ package com.ctrip.framework.apollo.portal.controller;
import
com.ctrip.framework.apollo.common.utils.BeanUtils
;
import
com.ctrip.framework.apollo.common.utils.RequestPrecondition
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.ServerConfig
;
import
com.ctrip.framework.apollo.portal.repository.ServerConfigRepository
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/SsoHeartbeatController.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.controller
;
import
com.ctrip.framework.apollo.portal.
extend
.SsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.SsoHeartbeatHandler
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/UserInfoController.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.controller
;
import
com.ctrip.framework.apollo.portal.
extend
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/extend/package-info.java
已删除
100644 → 0
浏览文件 @
282e94d9
/**
* The interfaces under the extend package, each company should own to implement.
* Other companies can ignore the implementation under the Ctrip package.
* In addition, we provide the default implementation of the interface under the default package.
*
*/
package
com.ctrip.framework.apollo.portal.extend
;
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
浏览文件 @
8c71054d
...
...
@@ -5,7 +5,7 @@ import com.ctrip.framework.apollo.common.exception.BadRequestException;
import
com.ctrip.framework.apollo.common.exception.ServiceException
;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
com.ctrip.framework.apollo.core.enums.ConfigFileFormat
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.repository.AppNamespaceRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppService.java
浏览文件 @
8c71054d
...
...
@@ -9,7 +9,7 @@ import com.ctrip.framework.apollo.common.utils.BeanUtils;
import
com.ctrip.framework.apollo.common.utils.ExceptionUtils
;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.ctrip.framework.apollo.portal.entity.vo.EnvClusterInfo
;
import
com.ctrip.framework.apollo.portal.repository.AppRepository
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ClusterService.java
浏览文件 @
8c71054d
...
...
@@ -4,7 +4,7 @@ import com.ctrip.framework.apollo.common.dto.ClusterDTO;
import
com.ctrip.framework.apollo.common.exception.BadRequestException
;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.dianping.cat.Cat
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/FavoriteService.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.service
;
import
com.ctrip.framework.apollo.common.exception.BadRequestException
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.Favorite
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.repository.FavoriteRepository
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ItemService.java
浏览文件 @
8c71054d
...
...
@@ -10,7 +10,7 @@ import com.ctrip.framework.apollo.core.enums.ConfigFileFormat;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.core.utils.StringUtils
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.ctrip.framework.apollo.portal.entity.model.NamespaceTextModel
;
import
com.ctrip.framework.apollo.portal.entity.vo.ItemDiffs
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceBranchService.java
浏览文件 @
8c71054d
...
...
@@ -9,7 +9,7 @@ import com.ctrip.framework.apollo.common.exception.BadRequestException;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.components.PermissionValidator
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.components.ItemsComparator
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.ctrip.framework.apollo.portal.entity.vo.NamespaceVO
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceService.java
浏览文件 @
8c71054d
...
...
@@ -13,7 +13,7 @@ import com.ctrip.framework.apollo.core.enums.ConfigFileFormat;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.core.utils.StringUtils
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.ctrip.framework.apollo.portal.entity.vo.NamespaceVO
;
import
com.dianping.cat.Cat
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseService.java
浏览文件 @
8c71054d
...
...
@@ -9,7 +9,7 @@ import com.ctrip.framework.apollo.common.dto.ReleaseDTO;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.core.utils.StringUtils
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.ctrip.framework.apollo.portal.entity.model.NamespaceReleaseModel
;
import
com.ctrip.framework.apollo.portal.entity.vo.KVEntity
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/RoleInitializationService.java
浏览文件 @
8c71054d
...
...
@@ -6,7 +6,7 @@ import com.google.common.collect.Sets;
import
com.ctrip.framework.apollo.common.entity.App
;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.PermissionType
;
import
com.ctrip.framework.apollo.portal.constant.RoleType
;
import
com.ctrip.framework.apollo.portal.entity.po.Permission
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/LogoutHandler.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/LogoutHandler.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
;
package
com.ctrip.framework.apollo.portal.
spi
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/SsoHeartbeatHandler.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/SsoHeartbeatHandler.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
;
package
com.ctrip.framework.apollo.portal.
spi
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/UserInfoHolder.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/UserInfoHolder.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
;
package
com.ctrip.framework.apollo.portal.
spi
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/UserService.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/UserService.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
;
package
com.ctrip.framework.apollo.portal.
spi
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/configuration/AuthConfiguration.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/configuration/AuthConfiguration.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.configuration
;
package
com.ctrip.framework.apollo.portal.
spi
.configuration
;
import
com.google.common.collect.Maps
;
import
com.ctrip.framework.apollo.openapi.filter.ConsumerAuthenticationFilter
;
import
com.ctrip.framework.apollo.openapi.util.ConsumerAuditUtil
;
import
com.ctrip.framework.apollo.openapi.util.ConsumerAuthUtil
;
import
com.ctrip.framework.apollo.portal.
extend
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.SsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
extend
.ctrip.CtripLogoutHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.ctrip.CtripSsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.ctrip.CtripUserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
extend
.ctrip.CtripUserService
;
import
com.ctrip.framework.apollo.portal.
extend
.defaultimpl.DefaultLogoutHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.defaultimpl.DefaultSsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
extend
.defaultimpl.DefaultUserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
extend
.defaultimpl.DefaultUserService
;
import
com.ctrip.framework.apollo.portal.
spi
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.SsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.ctrip.CtripLogoutHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.ctrip.CtripSsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.ctrip.CtripUserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.ctrip.CtripUserService
;
import
com.ctrip.framework.apollo.portal.
spi
.defaultimpl.DefaultLogoutHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.defaultimpl.DefaultSsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.defaultimpl.DefaultUserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.defaultimpl.DefaultUserService
;
import
com.ctrip.framework.apollo.portal.service.ServerConfigService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/BizLoggingCustomizer.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/BizLoggingCustomizer.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.ctrip.framework.apollo.common.customize.LoggingCustomizer
;
import
com.ctrip.framework.apollo.portal.service.ServerConfigService
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/CtripLogoutHandler.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/CtripLogoutHandler.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.ctrip.framework.apollo.portal.
extend
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.service.ServerConfigService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/CtripSsoHeartbeatHandler.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/CtripSsoHeartbeatHandler.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.ctrip.framework.apollo.portal.
extend
.SsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.SsoHeartbeatHandler
;
import
java.io.IOException
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/CtripUserInfoHolder.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/CtripUserInfoHolder.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
java.lang.reflect.Method
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/CtripUserService.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/CtripUserService.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Lists
;
...
...
@@ -6,7 +6,7 @@ import com.google.common.collect.Maps;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.service.ServerConfigService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
org.springframework.core.ParameterizedTypeReference
;
import
org.springframework.http.HttpEntity
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/WebContextConfiguration.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/WebContextConfiguration.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.google.common.base.Strings
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
extend
.ctrip.filters.RecordAccessUserFilter
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.ctrip.filters.RecordAccessUserFilter
;
import
com.ctrip.framework.apollo.portal.service.ServerConfigService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/filters/RecordAccessUserFilter.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/filters/RecordAccessUserFilter.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip.filters
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip.filters
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.CatEventType
;
import
com.dianping.cat.Cat
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/defaultimpl/DefaultLogoutHandler.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/defaultimpl/DefaultLogoutHandler.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.defaultimpl
;
package
com.ctrip.framework.apollo.portal.
spi
.defaultimpl
;
import
com.ctrip.framework.apollo.portal.
extend
.LogoutHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.LogoutHandler
;
import
java.io.IOException
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/defaultimpl/DefaultSsoHeartbeatHandler.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/defaultimpl/DefaultSsoHeartbeatHandler.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.defaultimpl
;
package
com.ctrip.framework.apollo.portal.
spi
.defaultimpl
;
import
com.ctrip.framework.apollo.portal.
extend
.SsoHeartbeatHandler
;
import
com.ctrip.framework.apollo.portal.
spi
.SsoHeartbeatHandler
;
import
java.io.IOException
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/defaultimpl/DefaultUserInfoHolder.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/defaultimpl/DefaultUserInfoHolder.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.defaultimpl
;
package
com.ctrip.framework.apollo.portal.
spi
.defaultimpl
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
/**
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
extend
/defaultimpl/DefaultUserService.java
→
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/
spi
/defaultimpl/DefaultUserService.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.defaultimpl
;
package
com.ctrip.framework.apollo.portal.
spi
.defaultimpl
;
import
com.google.common.collect.Lists
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/package-info.java
0 → 100644
浏览文件 @
8c71054d
/**
* This package defines common interfaces so that each company could provide their own implementations.<br/>
* Currently we provide 2 implementations: Ctrip and Default.<br/>
* Ctrip implementation will be activated only when spring.profiles.active = ctrip.
* So if spring.profiles.active is not ctrip, the default implementation will be activated.
* You may refer com.ctrip.framework.apollo.portal.spi.configuration.AuthConfiguration when providing your own implementation.
*
* @see com.ctrip.framework.apollo.portal.spi.configuration.AuthConfiguration
*/
package
com.ctrip.framework.apollo.portal.spi
;
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/ServiceExceptionTest.java
浏览文件 @
8c71054d
...
...
@@ -21,7 +21,7 @@ import org.springframework.web.client.HttpStatusCodeException;
import
com.ctrip.framework.apollo.common.entity.App
;
import
com.ctrip.framework.apollo.common.exception.ServiceException
;
import
com.ctrip.framework.apollo.portal.controller.AppController
;
import
com.ctrip.framework.apollo.portal.
extend
.UserService
;
import
com.ctrip.framework.apollo.portal.
spi
.UserService
;
import
com.google.gson.Gson
;
...
...
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/controller/ConsumerControllerTest.java
浏览文件 @
8c71054d
...
...
@@ -2,7 +2,7 @@ package com.ctrip.framework.apollo.portal.controller;
import
com.ctrip.framework.apollo.openapi.entity.ConsumerToken
;
import
com.ctrip.framework.apollo.openapi.service.ConsumerService
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
org.junit.Before
;
...
...
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/ConfigServiceTest.java
浏览文件 @
8c71054d
...
...
@@ -7,7 +7,7 @@ import com.ctrip.framework.apollo.common.dto.NamespaceDTO;
import
com.ctrip.framework.apollo.core.enums.ConfigFileFormat
;
import
com.ctrip.framework.apollo.core.enums.Env
;
import
com.ctrip.framework.apollo.portal.api.AdminServiceAPI
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.entity.vo.ItemDiffs
;
import
com.ctrip.framework.apollo.portal.entity.vo.NamespaceIdentifier
;
...
...
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/RoleInitializationServiceTest.java
浏览文件 @
8c71054d
...
...
@@ -4,7 +4,7 @@ import com.google.common.collect.Sets;
import
com.ctrip.framework.apollo.common.entity.App
;
import
com.ctrip.framework.apollo.portal.AbstractUnitTest
;
import
com.ctrip.framework.apollo.portal.
extend
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.
spi
.UserInfoHolder
;
import
com.ctrip.framework.apollo.portal.constant.PermissionType
;
import
com.ctrip.framework.apollo.portal.entity.po.Permission
;
import
com.ctrip.framework.apollo.portal.entity.po.Role
;
...
...
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/
extend
/ctrip/CtripUserServiceTest.java
→
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/
spi
/ctrip/CtripUserServiceTest.java
浏览文件 @
8c71054d
package
com.ctrip.framework.apollo.portal.
extend
.ctrip
;
package
com.ctrip.framework.apollo.portal.
spi
.ctrip
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Lists
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录