All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.continual.services.model.session.ModelSessionBuilder Maven / Gradle / Ivy

There is a newer version: 0.3.23
Show newest version
package io.continual.services.model.session;

import org.json.JSONObject;

import io.continual.builder.Builder.BuildFailure;
import io.continual.iam.exceptions.IamSvcException;
import io.continual.iam.identity.Identity;

public interface ModelSessionBuilder
{
	/**
	 * Set the user for the model session
	 * @param user
	 * @return this session builder
	 */
	ModelSessionBuilder forUser ( Identity user );

	/**
	 * Set the settings for the session.
	 * @param data
	 * @return this session builder
	 */
	ModelSessionBuilder readingSettingsFrom ( JSONObject data );
	
	/**
	 * Build the session
	 * @return a session instance
	 * @throws IamSvcException
	 * @throws BuildFailure
	 */
	ModelSession build () throws IamSvcException, BuildFailure;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy