@Component public class DataFlowShell extends Object
| Constructor and Description |
|---|
DataFlowShell() |
| Modifier and Type | Method and Description |
|---|---|
DataFlowOperations |
getDataFlowOperations() |
boolean |
hasAccess(RoleType role,
OpsType opsType)
This method performs various access checks and only if
true is returned,
the shell should show the associated commands. |
void |
setDataFlowOperations(DataFlowOperations dataFlowOperations) |
void |
setTargetHolder(TargetHolder targetHolder) |
public DataFlowOperations getDataFlowOperations()
public void setDataFlowOperations(DataFlowOperations dataFlowOperations)
@Autowired public void setTargetHolder(TargetHolder targetHolder)
public boolean hasAccess(RoleType role, OpsType opsType)
true is returned,
the shell should show the associated commands. 2 checks are performed:
OpsType exist?
RoleTypes are treated depends on the servers security
settings:
Target.isAuthenticationEnabled() Is authentication enabled?
Target.isAuthenticated() Is the user authenticated?
Target.isAuthenticated() is true will the RoleType checked
against TargetCredentials.getRoles().
role - Can be null.opsType - Must not be null.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.