Patent ID: 9665394
Date: 2017-05-30
CPC Classifications: G06F

Claim:
1. A method for sharing objects among multiple tenants, wherein the objects are application objects, and wherein the method comprises: identifying, by one or more processors, objects that can be shared by the multiple tenants; merging, by one or more processors, the objects that can be shared by the multiple tenants, wherein said merging the objects that can be shared by the multiple tenants comprises: merging, by one or more processors, primitive-like type fields in the objects that can be shared by the multiple tenants; comparing, by one or more processors, complex reference type fields in the objects that can be shared by the multiple tenants; in response to the complex reference type fields in the objects that can be shared by the multiple tenants pointing at different addresses, marking, by one or more processors, the complex reference type fields in the objects that can be shared by the multiple tenants as field values being only visible within tenant domains to which original objects comprising the fields belong; updating, by one or more processors, references of tenants to the shared objects prior to the merging so as to cause the references to point at a merged shared object; in response to a tenant modifying multiple fields of the merged shared object, copying, by one or more processors, a new object based on the merged shared object; updating, by one or more processors, values of multiple fields of the copied object; and modifying, by one or more processors, the reference of the tenant pointing at the merged shared object to be pointing at the copied object.