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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method performs various access checks and only iftrueis returned, the shell should show the associated commands.voidsetDataFlowOperations(DataFlowOperations dataFlowOperations) voidsetTargetHolder(TargetHolder targetHolder)
-
Constructor Details
-
DataFlowShell
public DataFlowShell()
-
-
Method Details
-
getDataFlowOperations
-
setDataFlowOperations
-
setTargetHolder
-
hasAccess
This method performs various access checks and only iftrueis returned, the shell should show the associated commands. 2 checks are performed:- Does the desired operation indicated by the
OpsTypeexist? - If the operation exist, does the user have the necessary credentials?
RoleTypes are treated depends on the servers security settings:Target.isAuthenticationEnabled()Is authentication enabled?Target.isAuthenticated()Is the user authenticated?- Only if
Target.isAuthenticated()istruewill theRoleTypechecked 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
-