psdi.util

Class TenantAwareObj

  • Direct Known Subclasses:
    MasterTenantAwareObj


    public class TenantAwareObj
    extends TenantLevelObj
    Class that make the object tenant aware. The object for tenants are maintained in a ConcurrentHashMap. So, synchronization is guaranteed.
    • Constructor Detail

      • TenantAwareObj

        public TenantAwareObj()
    • Method Detail

      • getMasterObject

        public java.lang.Object getMasterObject()
      • getObjectInContext

        public java.lang.Object getObjectInContext()
      • get

        public java.lang.Object get(boolean nocontextIsFine)
      • set

        public void set(java.lang.Object obj,
                        boolean nocontextIsFine)
        Set the object and not throwing the error if the tenant context is not set. The tenant will be set to context -1 if no context is set.
        Parameters:
        boolean - not throwing the no context set message if true.