Class TenantManagerStorage


  • public class TenantManagerStorage
    extends org.exoplatform.commons.search.es.client.ElasticClient
    A service that allows to detect Deed Tenant Manager address
    • Constructor Detail

      • TenantManagerStorage

        public TenantManagerStorage​(org.exoplatform.services.cache.CacheService cacheService,
                                    org.exoplatform.commons.search.es.client.ElasticIndexingAuditTrail elasticIndexingAuditTrail,
                                    org.exoplatform.container.xml.InitParams params)
    • Method Detail

      • getEsUsernameProperty

        protected String getEsUsernameProperty()
        Specified by:
        getEsUsernameProperty in class org.exoplatform.commons.search.es.client.ElasticClient
      • getEsPasswordProperty

        protected String getEsPasswordProperty()
        Specified by:
        getEsPasswordProperty in class org.exoplatform.commons.search.es.client.ElasticClient
      • getClientConnectionManager

        protected org.apache.http.conn.HttpClientConnectionManager getClientConnectionManager()
        Specified by:
        getClientConnectionManager in class org.exoplatform.commons.search.es.client.ElasticClient
      • getManagerAddress

        public String getManagerAddress​(String nftId)
      • getCityIndex

        public String getCityIndex​(String nftId)
      • setTenantStatus

        public void setTenantStatus​(String nftId,
                                    String tenantProvisioningStatus,
                                    String tenantStatus)
        Changes the Tenant Status in ES
        Parameters:
        nftId - Deed NFT identifier
        tenantProvisioningStatus - Status of tenant provisioning
        tenantStatus - Tenant Status: UP or DOWN