Class DataFlowShell
java.lang.Object
org.springframework.cloud.dataflow.shell.config.DataFlowShell
REST client component that holds all the available operations for communicating with
the Spring Cloud Data Flow REST server.
- Author:
- Ilayaperumal Gopinathan, Gunnar Hillert
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method performs various access checks and only iftrue
is returned, the shell should show the associated commands.void
setDataFlowOperations
(DataFlowOperations dataFlowOperations) void
setTargetHolder
(TargetHolder targetHolder)
-
Constructor Details
-
DataFlowShell
public DataFlowShell()
-
-
Method Details
-
getDataFlowOperations
-
setDataFlowOperations
-
setTargetHolder
-
hasAccess
This method performs various access checks and only iftrue
is returned, the shell should show the associated commands. 2 checks are performed:- Does the desired operation indicated by the
OpsType
exist? - If the operation exist, does the user have the necessary credentials?
RoleType
s are treated depends on the servers security settings:Target.isAuthenticationEnabled()
Is authentication enabled?Target.isAuthenticated()
Is the user authenticated?- Only if
Target.isAuthenticated()
istrue
will theRoleType
checked againstTargetCredentials.getRoles()
.
- Parameters:
role
- Can be null.opsType
- Must not be null.- Returns:
- If true the indicated operation is accessible and the user has all credentials to execute the operation.
- Does the desired operation indicated by the
-