@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()
@Autowired public void setTargetHolder(TargetHolder targetHolder)
public void setDataFlowOperations(DataFlowOperations dataFlowOperations)
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.isAuthorizationEnabled() If authentication is enabled, is authorization enabled?
Target.isAuthenticated() Is the user authenticated?
Target.isAuthorizationEnabled() and Target.isAuthenticated() is true
will the RoleType checked against TargetCredentials.getRoles().
role - Can be null.opsType - Must not be null.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.