19 package org.turro.assistant;
21 import java.util.Collections;
22 import java.util.List;
23 import org.turro.action.Contacts;
24 import org.turro.annotation.ExternalAssistant;
25 import org.turro.entities.Entities;
26 import org.turro.participation.ParticipationReason;
27 import org.turro.plugin.contacts.IContact;
28 import org.turro.students.entities.Challenge;
29 import org.turro.students.entities.PracticalWork;
30 import org.turro.students.entities.Response;
40 public void add(Object entity,
boolean deep,
AssistantSet assistants, Object data) {
41 if(entity instanceof String) {
62 for(
IContact c : response.getStudentList()) {
63 if(c !=
null && c.isWebUser()) {
64 assistants.add(
new Assistant(c, response));
69 }
else if(entity instanceof
Response) {
75 if(c !=
null && c.isWebUser()) {
76 assistants.add(
new Assistant(c, response));
92 if((data instanceof String) && ((String) data).contains(
AssistantConstants.FROM_STUDENTS)) {
94 .stream().forEach(p -> {
97 assistants.add(new Assistant(c, p.getEntity().getEntity()));
105 if((data instanceof String) && ((String) data).contains(
AssistantConstants.FROM_STUDENTS)) {
113 return Collections.EMPTY_LIST;
void addSubject(String value)
List< IEntityParticipation > getParticipations()
void addFromEntityData(Object entity, AssistantSet assistants, Object data)
void addFromEntityPath(String entityPath, boolean deep, AssistantSet assistants, Object data)
List< String > getParticiped(IContact contact)
void add(Object entity, boolean deep, AssistantSet assistants, Object data)
void addFromEntity(Object entity, boolean deep, AssistantSet assistants, Object data)
void addFromEntityPathData(String entityPath, AssistantSet assistants, Object data)
static IElephantEntity getController(String path)
Set< Response > getResponses()
IContact getIResponsible()
List< IContact > getStudentList()