Class SlaveTenant

  • All Implemented Interfaces:
    DataSourceProvider, Tenant, java.io.Serializable
    Direct Known Subclasses:
    TestSlaveTenantStub

    public class SlaveTenant
    extends AbstractTenant
    The slave tenant represents any other tenant exept the master tenant. Each hybris installation contains one master tenant and none/some slave tenants. TODO: apidoc - add missing informations
    See Also:
    Serialized Form
    • Field Detail

      • ITEM_CREATION_LIFECYCLE_LISTENER

        public static final java.lang.String ITEM_CREATION_LIFECYCLE_LISTENER
        See Also:
        Constant Field Values
    • Constructor Detail

      • SlaveTenant

        public SlaveTenant​(java.lang.String systemName,
                           java.util.Properties props)
    • Method Detail

      • getMasterTenant

        protected MasterTenant getMasterTenant()
      • extractExtNames

        protected java.util.List<java.lang.String> extractExtNames​(java.lang.String cfg)
      • setExtNames

        protected void setExtNames​(java.util.List<java.lang.String> names_unmod)
        Sets with the given extension name list the new extensions of the current tenant. If the current tenant is already initialized than the given list must contain all installed extensions and maybe new extensions. If an extension name is missing (meaning the extension should be removed and the tenant is initialized) an IllegalStateException is thrown. Any required but missing extension is added automatically.
        Parameters:
        names_unmod - the list of extension names
      • unInitialize

        @Deprecated
        public void unInitialize()
        Deprecated.
        since 5.0 favour offline tenant configuration
      • isInitialized

        public boolean isInitialized()
        Returns:
        true if the slave system is initialized
      • changeSystemSpecificProps

        public boolean changeSystemSpecificProps​(java.lang.String key,
                                                 java.lang.String value)
      • changeSystemSpecificProps

        public boolean changeSystemSpecificProps​(java.util.Map<java.lang.String,​java.lang.String> params)
        Parameters:
        params -
      • isActive

        public boolean isActive()
      • isValid

        public boolean isValid()
      • setDatabaseSettings

        public void setDatabaseSettings​(java.lang.String url,
                                        java.lang.String user,
                                        java.lang.String password,
                                        java.lang.String driver,
                                        java.lang.String tableprefix,
                                        java.lang.String fromJNDI)
      • restartIfActive

        @Deprecated
        protected void restartIfActive()
        Deprecated.
        since 5.0 use an off-line tenant configuration
      • getDatabaseURL

        public java.lang.String getDatabaseURL()
      • getDatabaseUser

        public java.lang.String getDatabaseUser()
      • getDatabaseDriver

        public java.lang.String getDatabaseDriver()
      • getDatabasePassword

        public java.lang.String getDatabasePassword()
      • getDatabaseTablePrefix

        public java.lang.String getDatabaseTablePrefix()
      • getDatabaseFromJNDI

        public java.lang.String getDatabaseFromJNDI()
      • setTenantSpecificExtensionNames

        @Deprecated
        public void setTenantSpecificExtensionNames​(java.util.List<java.lang.String> names)
        Deprecated.
        since 5.0 modification of the tenant's extension names on the fly is not available.
      • getAllItemLifecycleListeners

        public java.util.List<ItemLifecycleListener> getAllItemLifecycleListeners()