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() |
java.lang.String |
executeCommand(java.lang.String line)
Execute a single command using the BufferedReader passed in for any data needed.
|
java.lang.String |
getBaseAdminUsername() |
protected boolean |
hasAuthority(java.lang.String username) |
java.lang.String |
interpretCommand(java.lang.String line)
Interpret a single command using the BufferedReader passed in for any data needed.
|
static void |
main(java.lang.String[] args)
Main entry point.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setAuthenticationService(MutableAuthenticationService authenticationService) |
void |
setBaseAdminUsername(java.lang.String baseAdminUsername) |
void |
setTenantAdminService(TenantAdminService tenantAdminService) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
getConsoleBean, getCurrentUserName, onBootstrap, onShutdown, rep, runMain, runMain, setAuthorityService, setCurrentUserName, setTransactionServicepublic void setTenantAdminService(TenantAdminService tenantAdminService)
public void setAuthenticationService(MutableAuthenticationService authenticationService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setBaseAdminUsername(java.lang.String baseAdminUsername)
public java.lang.String getBaseAdminUsername()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class org.springframework.extensions.surf.util.AbstractLifecycleBeanorg.springframework.beans.BeansExceptionpublic static void main(java.lang.String[] args)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected boolean hasAuthority(java.lang.String username)
hasAuthority in class BaseInterpreterpublic java.lang.String interpretCommand(java.lang.String line)
throws java.io.IOException
BaseInterpreterinterpretCommand in class BaseInterpreterline - The unparsed commandjava.io.IOExceptionpublic java.lang.String executeCommand(java.lang.String line)
throws java.io.IOException
executeCommand in class BaseInterpreterline - The unparsed commandjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.