Package de.hybris.platform.util
Class AbstractTenantAwareSerializationDTO
java.lang.Object
de.hybris.platform.util.AbstractTenantAwareSerializationDTO
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractService.SerializableDTO,AccessManager.AccessManagerSerializableDTO,C2LManager.C2LManagerSerializableDTO,EnumerationManager.EnumerationManagerSerializableDTO,ExtensionManager.ExtensionManagerSerializableDTO,FlexibleSearch.FlexibleSearchSerializableDTO,LinkManager.LinkManagerSerializableDTO,MediaManager.MediaManagerSerializableDTO,MetaInformationManager.MetaInformationManagerSerializableDTO,NumberSeriesManager.NumberSeriesManagerSerializableDTO,OrderManager.OrderManagerSerializableDTO,ProductManager.ProductManagerSerializableDTO,SerializationStrategyLeanImpl.LeanItemModelHandler,TypeManager.TypeManagerSerializableDTO,UserManager.UserManagerSerializableDTO
AbstractTenantAwareSerializationDTO class (DTO - DataTransferObject). Used for Java de~/serialization. Contains the
correct
Tenant. Each subclass must implement resolveObject() which may add additional logic to the
deserialization process.
Instead of writing the instance (manager, service) itself to the stream the instance will be during serialization
replaced by a subclass of this class and by deserialization a subclass will return the correct (tenant dependend)
object.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractTenantAwareSerializationDTO(String tenantID) -
Method Summary
-
Constructor Details
-
AbstractTenantAwareSerializationDTO
-
AbstractTenantAwareSerializationDTO
-
-
Method Details
-
getTenantID
-
getTenant
-
resolveObject
This method is called by thereadResolve()method after setting the correctTenant. You may/must add additional logic for your own serializable object.- Returns:
- an object depending what you want to de~/serialize
- Throws:
ObjectStreamException
-
readResolve
This method is called by the Java serialization mechanism.- Returns:
- the deserialized object
- Throws:
ObjectStreamException
-
toString
-