Package org.alfresco.repo.tenant
Class TenantInterpreter
java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.admin.BaseInterpreter
org.alfresco.repo.tenant.TenantInterpreter
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class TenantInterpreter
extends BaseInterpreter
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
An interactive console for Tenants.
-
Field Summary
FieldsFields inherited from class org.alfresco.repo.admin.BaseInterpreter
authorityService, lastCommand, transactionServiceFields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommand(String line) Execute a single command using the BufferedReader passed in for any data needed.protected booleanhasAuthority(String username) interpretCommand(String line) Interpret a single command using the BufferedReader passed in for any data needed.static voidMain entry point.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetAuthenticationService(MutableAuthenticationService authenticationService) voidsetBaseAdminUsername(String baseAdminUsername) voidsetTenantAdminService(TenantAdminService tenantAdminService) voidsetTenantService(TenantService tenantService) Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, onBootstrap, onShutdown, rep, runMain, runMain, setAuthorityService, setCurrentUserName, setTransactionServiceMethods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent
-
Field Details
-
tenantService
-
-
Constructor Details
-
TenantInterpreter
public TenantInterpreter()
-
-
Method Details
-
setTenantAdminService
-
setAuthenticationService
-
setTenantService
-
setBaseAdminUsername
-
getBaseAdminUsername
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Overrides:
setApplicationContextin classorg.springframework.extensions.surf.util.AbstractLifecycleBean- Throws:
org.springframework.beans.BeansException
-
main
Main entry point. -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
hasAuthority
- Overrides:
hasAuthorityin classBaseInterpreter
-
interpretCommand
Description copied from class:BaseInterpreterInterpret a single command using the BufferedReader passed in for any data needed.- Overrides:
interpretCommandin classBaseInterpreter- Parameters:
line- The unparsed command- Returns:
- The textual output of the command.
- Throws:
IOException
-
executeCommand
Execute a single command using the BufferedReader passed in for any data needed. TODO: Use decent parser!- Specified by:
executeCommandin classBaseInterpreter- Parameters:
line- The unparsed command- Returns:
- The textual output of the command.
- Throws:
IOException
-