org.glassfish.examples.ctm
Class TenantManager

java.lang.Object
  extended by org.glassfish.examples.ctm.TenantManager

@Service
@Singleton
public class TenantManager
extends Object

This class manages all information about all tenants, and also keeps track of the currently active tenant. The currently active tenant can be changed with this class

Author:
jwells

Constructor Summary
TenantManager()
           
 
Method Summary
 String getCurrentTenant()
           
 void setCurrentTenant(String currentTenant)
          Sets the current tenant to this tenant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TenantManager

public TenantManager()
Method Detail

setCurrentTenant

public void setCurrentTenant(String currentTenant)
Sets the current tenant to this tenant

Parameters:
currentTenant -

getCurrentTenant

public String getCurrentTenant()


Copyright © 2013 Oracle Corporation. All Rights Reserved.