Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
2d9cf8ab
Commit
2d9cf8ab
authored
Nov 29, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change package name extend to spi
parent
d121abf3
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
79 additions
and
76 deletions
+79
-76
ItemController.java
...ramework/apollo/openapi/v1/controller/ItemController.java
+1
-1
ReleaseController.java
...ework/apollo/openapi/v1/controller/ReleaseController.java
+1
-1
PermissionValidator.java
...amework/apollo/portal/components/PermissionValidator.java
+1
-1
AppController.java
...rip/framework/apollo/portal/controller/AppController.java
+1
-1
ClusterController.java
...framework/apollo/portal/controller/ClusterController.java
+1
-1
ConsumerController.java
...ramework/apollo/portal/controller/ConsumerController.java
+1
-1
ItemController.java
...ip/framework/apollo/portal/controller/ItemController.java
+1
-1
NamespaceController.java
...amework/apollo/portal/controller/NamespaceController.java
+1
-1
PermissionController.java
...mework/apollo/portal/controller/PermissionController.java
+2
-2
ServerConfigController.java
...work/apollo/portal/controller/ServerConfigController.java
+1
-1
SsoHeartbeatController.java
...work/apollo/portal/controller/SsoHeartbeatController.java
+1
-1
UserInfoController.java
...ramework/apollo/portal/controller/UserInfoController.java
+3
-3
package-info.java
...om/ctrip/framework/apollo/portal/extend/package-info.java
+0
-7
AppNamespaceService.java
.../framework/apollo/portal/service/AppNamespaceService.java
+1
-1
AppService.java
...com/ctrip/framework/apollo/portal/service/AppService.java
+1
-1
ClusterService.java
...ctrip/framework/apollo/portal/service/ClusterService.java
+1
-1
FavoriteService.java
...trip/framework/apollo/portal/service/FavoriteService.java
+2
-2
ItemService.java
...om/ctrip/framework/apollo/portal/service/ItemService.java
+1
-1
NamespaceBranchService.java
...amework/apollo/portal/service/NamespaceBranchService.java
+1
-1
NamespaceService.java
...rip/framework/apollo/portal/service/NamespaceService.java
+1
-1
ReleaseService.java
...ctrip/framework/apollo/portal/service/ReleaseService.java
+1
-1
RoleInitializationService.java
...work/apollo/portal/service/RoleInitializationService.java
+1
-1
LogoutHandler.java
.../com/ctrip/framework/apollo/portal/spi/LogoutHandler.java
+1
-1
SsoHeartbeatHandler.java
...trip/framework/apollo/portal/spi/SsoHeartbeatHandler.java
+1
-1
UserInfoHolder.java
...com/ctrip/framework/apollo/portal/spi/UserInfoHolder.java
+1
-1
UserService.java
...va/com/ctrip/framework/apollo/portal/spi/UserService.java
+1
-1
AuthConfiguration.java
...rk/apollo/portal/spi/configuration/AuthConfiguration.java
+13
-13
BizLoggingCustomizer.java
...amework/apollo/portal/spi/ctrip/BizLoggingCustomizer.java
+1
-1
CtripLogoutHandler.java
...framework/apollo/portal/spi/ctrip/CtripLogoutHandler.java
+2
-2
CtripSsoHeartbeatHandler.java
...ork/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java
+2
-2
CtripUserInfoHolder.java
...ramework/apollo/portal/spi/ctrip/CtripUserInfoHolder.java
+2
-2
CtripUserService.java
...p/framework/apollo/portal/spi/ctrip/CtripUserService.java
+2
-2
WebContextConfiguration.java
...work/apollo/portal/spi/ctrip/WebContextConfiguration.java
+3
-3
RecordAccessUserFilter.java
...ollo/portal/spi/ctrip/filters/RecordAccessUserFilter.java
+2
-2
DefaultLogoutHandler.java
...k/apollo/portal/spi/defaultimpl/DefaultLogoutHandler.java
+2
-2
DefaultSsoHeartbeatHandler.java
...lo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java
+2
-2
DefaultUserInfoHolder.java
.../apollo/portal/spi/defaultimpl/DefaultUserInfoHolder.java
+2
-2
DefaultUserService.java
...ork/apollo/portal/spi/defaultimpl/DefaultUserService.java
+2
-2
package-info.java
...a/com/ctrip/framework/apollo/portal/spi/package-info.java
+10
-0
ServiceExceptionTest.java
...m/ctrip/framework/apollo/portal/ServiceExceptionTest.java
+1
-1
ConsumerControllerTest.java
...work/apollo/portal/controller/ConsumerControllerTest.java
+1
-1
ConfigServiceTest.java
...ip/framework/apollo/portal/service/ConfigServiceTest.java
+1
-1
RoleInitializationServiceTest.java
.../apollo/portal/service/RoleInitializationServiceTest.java
+1
-1
CtripUserServiceTest.java
...amework/apollo/portal/spi/ctrip/CtripUserServiceTest.java
+1
-1
No files found.
apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/v1/controller/ItemController.java
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
deleted
100644 → 0
View file @
d121abf3
/**
* 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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
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
View file @
2d9cf8ab
/**
* 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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
...
...
@@ -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
View file @
2d9cf8ab
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment