public class TenantInterpreter extends BaseInterpreter implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.repo.tenant.TenantService |
tenantService |
authorityService, lastCommand, transactionService
Constructor and Description |
---|
TenantInterpreter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
executeCommand(String line)
Execute a single command using the BufferedReader passed in for any data needed.
|
String |
getBaseAdminUsername() |
protected boolean |
hasAuthority(String username) |
String |
interpretCommand(String line)
Interpret a single command using the BufferedReader passed in for any data needed.
|
static void |
main(String[] args)
Main entry point.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAuthenticationService(MutableAuthenticationService authenticationService) |
void |
setBaseAdminUsername(String baseAdminUsername) |
void |
setTenantAdminService(TenantAdminService tenantAdminService) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
getConsoleBean, getCurrentUserName, onBootstrap, onShutdown, rep, runMain, runMain, setAuthorityService, setCurrentUserName, setTransactionService
public void setTenantAdminService(TenantAdminService tenantAdminService)
public void setAuthenticationService(MutableAuthenticationService authenticationService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setBaseAdminUsername(String baseAdminUsername)
public String getBaseAdminUsername()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setApplicationContext
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
org.springframework.beans.BeansException
public static void main(String[] args)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected boolean hasAuthority(String username)
hasAuthority
in class BaseInterpreter
public String interpretCommand(String line) throws IOException
BaseInterpreter
interpretCommand
in class BaseInterpreter
line
- The unparsed commandIOException
public String executeCommand(String line) throws IOException
executeCommand
in class BaseInterpreter
line
- The unparsed commandIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.