Interface IEntityContextFactory

All Superinterfaces:
Serializable

public interface IEntityContextFactory extends Serializable
A factory interface for creating new instances of IEntityContext.
Since:
8.5.0
  • Method Details

    • newEntityContext

      IEntityContext newEntityContext(IUser user)
      Creates a new IEntityContext for the given user.
      Parameters:
      user - The user for whom the context is created. If the user is null, uses an anonymous user context.
      Returns:
      A new instance of IEntityContext associated with the specified user.
    • newEntityContext

      IEntityContext newEntityContext(UserContext userContext)
      Creates a new IEntityContext for the given user.
      Parameters:
      userContext - The user for whom the context is created. If the user is null, uses an anonymous user context.
      Returns:
      A new instance of IEntityContext associated with the specified user.