19 package org.turro.assistant.model;
21 import org.turro.ws.service.ServerAdapter;
22 import java.util.HashSet;
23 import java.util.List;
25 import org.turro.assistant.Assistant;
26 import org.turro.assistant.AssistantConstants;
27 import org.turro.assistant.AssistantSet;
28 import org.turro.assistant.Assistants;
29 import org.turro.string.Strings;
30 import org.zkoss.bind.annotation.BindingParam;
31 import org.zkoss.bind.annotation.Command;
32 import org.zkoss.bind.annotation.ExecutionArgParam;
33 import org.zkoss.bind.annotation.Init;
34 import org.zkoss.bind.annotation.NotifyChange;
44 @ExecutionArgParam(
"servers") List<ServerAdapter> servers) {
45 this.assistants = assistants;
46 this.servers = servers;
49 @NotifyChange(
"assistants")
55 @NotifyChange(
"assistants")
61 @NotifyChange(
"assistants")
64 assistants.remove(assistant);
68 return !servers.isEmpty();
73 private final Set<String> modifiers =
new HashSet<>();
137 private Object entity;
144 this.entity = entity;
149 private List<ServerAdapter> servers;
static final String FROM_COMMENTS
static void addAssistantsFromEntity(Object entity, boolean deep, AssistantSet list, Object data)
boolean getFromSubscriptions()
void init(@ExecutionArgParam("as") AssistantSet assistants, @ExecutionArgParam("servers") List< ServerAdapter > servers)
boolean getFromStudents()
boolean getFromComments()
void setFromComments(boolean value)
void setEntity(Object entity)
void setFromStudents(boolean value)
List< ServerAdapter > getServers()
void setFromVotes(boolean value)
AssistantSet getAssistants()
void setFromSubscriptions(boolean value)
void delete(@BindingParam("assistant") Assistant assistant)
void setFromForum(boolean value)