--- /dev/null
+/*****************************************************************************
+ * Copyright Igor Barma, Eric Brun, Alexandre Desoubeaux, Christian Martel,
+ * (2 décembre 2008)
+ *
+ * Ce logiciel est un programme informatique servant à l'évaluation des
+ * compétences.
+ *
+ * Ce logiciel est régi par la licence CeCILL soumise au droit français et
+ * respectant les principes de diffusion des logiciels libres. Vous pouvez
+ * utiliser, modifier et/ou redistribuer ce programme sous les conditions
+ * de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA
+ * sur le site "http://www.cecill.info".
+ *
+ * En contrepartie de l'accessibilité au code source et des droits de copie,
+ * de modification et de redistribution accordés par cette licence, il n'est
+ * offert aux utilisateurs qu'une garantie limitée. Pour les mêmes raisons,
+ * seule une responsabilité restreinte pèse sur l'auteur du programme, le
+ * titulaire des droits patrimoniaux et les concédants successifs.
+ *
+ * A cet égard l'attention de l'utilisateur est attirée sur les risques
+ * associés au chargement, à l'utilisation, à la modification et/ou au
+ * développement et à la reproduction du logiciel par l'utilisateur étant
+ * donné sa spécificité de logiciel libre, qui peut le rendre complexe à
+ * manipuler et qui le réserve donc à des développeurs et des professionnels
+ * avertis possédant des connaissances informatiques approfondies. Les
+ * utilisateurs sont donc invités à charger et tester l'adéquation du
+ * logiciel à leurs besoins dans des conditions permettant d'assurer la
+ * sécurité de leurs systèmes et ou de leurs données et, plus généralement,
+ * à l'utiliser et l'exploiter dans les mêmes conditions de sécurité.
+ *
+ * Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
+ * pris connaissance de la licence CeCILL, et que vous en avez accepté les
+ * termes.
+ *******************************************************************************/
+package com.pentila.evalcomp.client.interfacedef;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import com.google.gwt.http.client.RequestBuilder;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.pentila.evalcomp.domain.Entity;
+import com.pentila.evalcomp.domain.definition.Property;
+import com.pentila.evalcomp.domain.instance.CompetenceInstance;
+import com.pentila.evalcomp.domain.instance.ScenarioInstanceAbstract;
+import com.pentila.evalcomp.domain.transit.TCompositeDataMap;
+import com.pentila.evalcomp.domain.transit.Todo;
+
+// TODO: Auto-generated Javadoc
+/**
+ * The Interface IInstanceClientAsync.
+ */
+public interface IInstanceClientAsync {
+
+ /**
+ * Edits the instances table.
+ *
+ * @param p
+ * the p
+ * @param callback
+ * the callback
+ */
+ void editInstancesTable(Property p, AsyncCallback callback);
+
+ /**
+ * Gets the all events.
+ *
+ * @param login the login
+ * @param callback the callback
+ *
+ * return the all events
+ * @return the all events
+ */
+ void getAllEvents(String login, AsyncCallback callback);
+
+ /**
+ * Gets the events.
+ *
+ * @param login the login
+ * @param start the start
+ * @param limit the limit
+ * @param callback the callback
+ *
+ * return the events
+ * @return the events
+ */
+ RequestBuilder getEvents(String login, int start, int limit, AsyncCallback callback);
+
+ /**
+ * Gets the events.
+ *
+ * @param login the login
+ * @param batchsize the batchsize
+ * @param callback the callback
+ * @return the events
+ */
+ RequestBuilder getEvents(String login, int batchsize, AsyncCallback callback);
+
+ /**
+ * Gets the group stat.
+ *
+ * @param uidGroup the uid group
+ * @param idRef the id ref
+ * @param sizeLimit the size limit
+ * @param callback the callback
+ *
+ * return the group stat
+ * @return the group stat
+ */
+ void getGroupStat(String uidGroup, Long idRef, Integer sizeLimit, AsyncCallback callback);
+
+ /**
+ * Gets the scenario instance.
+ *
+ * @param idsi the idsi
+ * @param callback the callback
+ *
+ * return the scenario instance
+ * @return the scenario instance
+ */
+ void getScenarioInstance(Long idsi, AsyncCallback callback);
+
+ /**
+ * Gets the todo lists.
+ *
+ * @param login the login
+ * @param callback the callback
+ *
+ * return the todo lists
+ * @return the todo lists
+ */
+ RequestBuilder getTodoLists(String login, AsyncCallback callback);
+
+ /**
+ * Gets the user competence instances.
+ *
+ * @param login the login
+ * @param callback the callback
+ *
+ * return the user competence instances
+ * @return the user competence instances
+ */
+ void getUserCompetenceInstances(String login, AsyncCallback callback);
+
+ /**
+ * Gets the user referentiels.
+ *
+ * @param login the login
+ * @param callback the callback
+ *
+ * return the user referentiels
+ * @return the user referentiels
+ */
+ void getUserReferentiels(String login, AsyncCallback callback);
+
+ /**
+ * Gets the user referentiel.
+ *
+ * @param login the login
+ * @param idRef the id ref
+ * @param callback the callback
+ * @return the user referentiel
+ */
+ RequestBuilder getUserReferentiel(String login, Long idRef, AsyncCallback callback);
+
+ /**
+ * Gets the user referentiel states.
+ *
+ * @param login the login
+ * @param idRef the id ref
+ * @param callback the callback
+ *
+ * return the user referentiel states
+ * @return the user referentiel states
+ */
+ void getUserReferentielStates(String login, Long idRef,
+ AsyncCallback callback);
+
+ /**
+ * Perform activity.
+ *
+ * @param login
+ * the login
+ * @param Processuuid
+ * the processuuid
+ * @param activityId
+ * the activity id
+ * @param transitionId
+ * the transition id
+ * @param callback
+ * the callback
+ */
+ void performActivity(String login, String Processuuid, String activityId,
+ String transitionId, AsyncCallback callback);
+
+ /**
+ * Removes the acquitment.
+ *
+ * @param SIID
+ * the sIID
+ * @param activityId
+ * the activity id
+ * @param callback
+ * the callback
+ */
+ void removeAcquitment(String SIID, String activityId, AsyncCallback callback);
+
+ /**
+ * Sets the acquitment.
+ *
+ * @param SIID
+ * the sIID
+ * @param activityId
+ * the activity id
+ * @param callback
+ * the callback
+ */
+ void setAcquitment(String SIID, String activityId, AsyncCallback callback);
+
+ /**
+ * Sets the competence instances.
+ *
+ * @param sci
+ * the sci
+ * @param callback
+ * the callback
+ */
+ void setCompetenceInstances(List<CompetenceInstance> sci,
+ AsyncCallback callback);
+
+ void setCompetenceInstances(TCompositeDataMap T,
+ AsyncCallback callback);
+
+ /**
+ * Sets the participants.
+ *
+ * @param idScenarioInstance
+ * the id scenario instance
+ * @param se
+ * the se
+ * @param callback
+ * the callback
+ */
+ void setParticipants(Long idScenarioInstance, Map<String, Set<Entity>> se,
+ AsyncCallback callback);
+
+ /**
+ * Sets the participants with text argument.
+ *
+ * @param id the id
+ * @param selectedUsers the selected users
+ * @param argument the argument
+ * @param callback the callback
+ */
+ void setParticipantsWithArgument(Long id,
+ Map<String, Set<Entity>> selectedUsers, String argument, AsyncCallback callback);
+
+
+ /**
+ * Sets the properties.
+ *
+ * @param processuuid the processuuid
+ * @param sp the sp
+ * @param callback the callback
+ */
+ void setProperties(String processuuid, Set<Property> sp,
+ AsyncCallback callback);
+
+ /**
+ * Populate c is.
+ *
+ * @param login the login
+ * @param siid the siid
+ * @param competenceIds the competence ids
+ * @param callback the callback
+ */
+ void populateCIs(String login, Long siid, List<CompetenceInstance> competenceIds, AsyncCallback callback);
+
+ /**
+ * Delete scenario instances.
+ *
+ * @param ssi the ssi
+ * @param callback the callback
+ */
+ void deleteScenarioInstances(Set<Long> ssi, AsyncCallback callback);
+
+ /**
+ * Update todo.
+ *
+ * @param todo the todo
+ * @param callback the callback
+ * @return the request builder
+ */
+ RequestBuilder updateTodo(Todo todo, int start, int pageSize, String filterSearch, String uid, AsyncCallback callback);
+
+
+ /**
+ * Gets the related users.
+ *
+ * @param sia the sia
+ * @param start the start
+ * @param limit the limit
+ * @param term the term
+ * @param callback the callback
+ * @return the related users
+ */
+ void getRelatedUsers(ScenarioInstanceAbstract sia, int start, int limit, String term, AsyncCallback callback);
+
+ /**
+ * Gets the evaluation subject instance.
+ *
+ * @param idESI the id esi
+ * @param callback the callback
+ * @return the evaluation subject instance
+ */
+ RequestBuilder getEvaluationSubjectInstance(Long idESI, AsyncCallback callback);
+
+ void checkEvaluationInitLevel(Long idESI, AsyncCallback callback);
+
+}