Package com.btmatthews.atlas.tenancy.support.domain

Examples of com.btmatthews.atlas.tenancy.support.domain.Tenant


            final FilterChain chain)
            throws ServletException, IOException {
        if (request instanceof HttpServletRequest) {
            final String headerValue = ((HttpServletRequest) request).getHeader(headerName);
            if (headerValue != null) {
                final Tenant tenant = tenantService.lookupTenantByKey(headerValue);
                if (tenant != null) {
                    LOGGER.debug("Tenant being set for tenant key {}", headerValue);
                    TenantContextHolder.push(tenant);
                    try {
                        chain.doFilter(request, response);
View Full Code Here


     *
     * @return The tenant domain object's identifier.
     */
    @Override
    public String getConversationId() {
        final Tenant tenant = TenantContextHolder.peek();
        if (tenant != null) {
            return tenant.getId();
        } else {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of com.btmatthews.atlas.tenancy.support.domain.Tenant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.