Class 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 Detail

      • tenantService

        protected org.alfresco.repo.tenant.TenantService tenantService
    • Constructor Detail

      • TenantInterpreter

        public TenantInterpreter()
    • Method Detail

      • setTenantAdminService

        public void setTenantAdminService​(TenantAdminService tenantAdminService)
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
      • setBaseAdminUsername

        public void setBaseAdminUsername​(String baseAdminUsername)
      • getBaseAdminUsername

        public String getBaseAdminUsername()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Overrides:
        setApplicationContext in class org.springframework.extensions.surf.util.AbstractLifecycleBean
        Throws:
        org.springframework.beans.BeansException
      • main

        public static void main​(String[] args)
        Main entry point.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • executeCommand

        public String executeCommand​(String line)
                              throws IOException
        Execute a single command using the BufferedReader passed in for any data needed. TODO: Use decent parser!
        Specified by:
        executeCommand in class BaseInterpreter
        Parameters:
        line - The unparsed command
        Returns:
        The textual output of the command.
        Throws:
        IOException