Interface IServiceInterfaceInstanceSerializationManager

    • Method Detail

      • deserialize

        void deserialize​(DeserializationContext deserializationContext,
                         ServiceInterfaceInstanceSerializableConfig serviceInterfaceInstanceSerializableConfig,
                         IDirectory directory,
                         java.lang.String interfaceInstanceInputPath,
                         java.lang.String customPropertiesInputPath)
                  throws PortalException
        Deserializes a service interface instance from specific output path. This is usually used with orphan interface instances that must be deserialized from custom locations.
        Parameters:
        deserializationContext - the deserialization context.
        serviceInterfaceInstanceId - the service interface instance identifier.
        directory - the directory the paths are relative to.
        interfaceInstanceInputPath - the path where the service interface instance will be deserialized from, relative to directory.
        customPropertiesInputPath - the path where the service interface instance's custom properties (if any) will be deserialized from, relative to directory.
        Throws:
        PortalException
        Since:
        10.4.0
      • serialize

        ServiceInterfaceInstanceSerializableConfig serialize​(SerializationContext serializationContext,
                                                             java.lang.String serviceInterfaceInstanceId,
                                                             IDirectory directory,
                                                             java.lang.String interfaceInstanceOutputPath,
                                                             java.lang.String customPropertiesOutputPath)
                                                      throws PortalException
        Serializes a service interface instance to specific output path. This is usually used with orphan interface instances that must be serialized to custom locations. To deserialize the service interface instance, use #deser
        Parameters:
        serializationContext - the serialization context.
        serviceInterfaceInstanceId - the service interface instance identifier.
        directory - the directory the paths are relative to.
        interfaceInstanceOutputPath - the path where the service interface instance will be serialized to, relative to directory.
        customPropertiesOutputPath - the path where the service interface instance's custom properties (if any) will be serialized to, relative to directory.
        Returns:
        the serializable object of the service interface instance.
        Throws:
        PortalException
        Since:
        10.4.0
      • setupSerializationContext

        void setupSerializationContext​(BaseSerializationContext serializationContext)
        Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.
        Parameters:
        serializationContext -