-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: (Context)ConditionMatcher (#53)
- Loading branch information
Showing
17 changed files
with
574 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@startuml | ||
|
||
!include layout.puml | ||
|
||
title Build In ActionMatcher | ||
|
||
interface RequestMatcher{ | ||
val type: String | ||
val configuration: Configuration | ||
match(request: Request, securityContext: SecurityContext): Boolean | ||
} | ||
interface ActionMatcher | ||
abstract class AbstractActionMatcher{ | ||
val methods: Set<String> | ||
} | ||
class AllActionMatcher | ||
class NoneActionMatcher | ||
class PathActionMatcher | ||
class RegularActionMatcher | ||
class ReplaceablePathActionMatcher | ||
class ReplaceableRegularActionMatcher | ||
|
||
RequestMatcher <|-- ActionMatcher | ||
ActionMatcher <|-- AbstractActionMatcher | ||
AbstractActionMatcher <|-- AllActionMatcher | ||
AbstractActionMatcher <|-- NoneActionMatcher | ||
AbstractActionMatcher <|-- PathActionMatcher | ||
AbstractActionMatcher <|-- RegularActionMatcher | ||
AbstractActionMatcher <|-- ReplaceablePathActionMatcher | ||
AbstractActionMatcher <|-- ReplaceableRegularActionMatcher | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@startuml | ||
|
||
!include layout.puml | ||
|
||
title Build In ConditionMatcher | ||
|
||
interface RequestMatcher{ | ||
val type: String | ||
val configuration: Configuration | ||
match(request: Request, securityContext: SecurityContext): Boolean | ||
} | ||
|
||
interface ConditionMatcher | ||
abstract class AbstractConditionMatcher{ | ||
val negate: Boolean | ||
} | ||
abstract class PartConditionMatcher{ | ||
val partExtractor: PartExtractor | ||
} | ||
class AllConditionMatcher | ||
class AuthenticatedConditionMatcher | ||
class EqConditionMatcher | ||
class InConditionMatcher | ||
class InDefaultTenantConditionMatcher | ||
class InPlatformTenantConditionMatcher | ||
class InUserTenantConditionMatcher | ||
class NoneConditionMatcher | ||
class OgnlConditionMatcher | ||
class PathConditionMatcher | ||
class RegularConditionMatcher | ||
class SpelConditionMatcher | ||
|
||
RequestMatcher <|-- ConditionMatcher | ||
ConditionMatcher <|-- AbstractConditionMatcher | ||
AbstractConditionMatcher <|-- PartConditionMatcher | ||
PartConditionMatcher <|-- InConditionMatcher | ||
PartConditionMatcher <|-- EqConditionMatcher | ||
PartConditionMatcher <|-- PathConditionMatcher | ||
PartConditionMatcher <|-- RegularConditionMatcher | ||
AbstractConditionMatcher <|-- AuthenticatedConditionMatcher | ||
AbstractConditionMatcher <|-- InDefaultTenantConditionMatcher | ||
AbstractConditionMatcher <|-- SpelConditionMatcher | ||
AbstractConditionMatcher <|-- OgnlConditionMatcher | ||
AbstractConditionMatcher <|-- InUserTenantConditionMatcher | ||
AbstractConditionMatcher <|-- NoneConditionMatcher | ||
AbstractConditionMatcher <|-- AllConditionMatcher | ||
AbstractConditionMatcher <|-- InPlatformTenantConditionMatcher | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters