BrightSide Workbench Full Report + Source Code
org.turro.assistant.model.AssistantsVM Class Reference

Public Member Functions

void init (@ExecutionArgParam("as") AssistantSet assistants, @ExecutionArgParam("servers") List< ServerAdapter > servers)
 
void add ()
 
void addDeep ()
 
void delete (@BindingParam("assistant") Assistant assistant)
 
boolean isWithServers ()
 
boolean getFromComments ()
 
void setFromComments (boolean value)
 
boolean getFromVotes ()
 
void setFromVotes (boolean value)
 
boolean getFromSubscriptions ()
 
void setFromSubscriptions (boolean value)
 
boolean getFromStudents ()
 
void setFromStudents (boolean value)
 
boolean getFromForum ()
 
void setFromForum (boolean value)
 
Object getEntity ()
 
void setEntity (Object entity)
 
List< ServerAdapter > getServers ()
 
AssistantSet getAssistants ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 40 of file AssistantsVM.java.

Member Function Documentation

◆ add()

void org.turro.assistant.model.AssistantsVM.add ( )

Definition at line 51 of file AssistantsVM.java.

51  {
52  Assistants.addAssistantsFromEntity(entity, false, assistants, Strings.listToCvs(modifiers));
53  }
Here is the call graph for this function:

◆ addDeep()

void org.turro.assistant.model.AssistantsVM.addDeep ( )

Definition at line 57 of file AssistantsVM.java.

57  {
58  Assistants.addAssistantsFromEntity(entity, true, assistants, Strings.listToCvs(modifiers));
59  }
Here is the call graph for this function:

◆ delete()

void org.turro.assistant.model.AssistantsVM.delete ( @BindingParam("assistant") Assistant  assistant)

Definition at line 63 of file AssistantsVM.java.

63  {
64  assistants.remove(assistant);
65  }

◆ getAssistants()

AssistantSet org.turro.assistant.model.AssistantsVM.getAssistants ( )

Definition at line 159 of file AssistantsVM.java.

159  {
160  return assistants;
161  }

◆ getEntity()

Object org.turro.assistant.model.AssistantsVM.getEntity ( )

Definition at line 139 of file AssistantsVM.java.

139  {
140  return entity;
141  }

◆ getFromComments()

boolean org.turro.assistant.model.AssistantsVM.getFromComments ( )

Definition at line 75 of file AssistantsVM.java.

75  {
76  return modifiers.contains(AssistantConstants.FROM_COMMENTS);
77  }

◆ getFromForum()

boolean org.turro.assistant.model.AssistantsVM.getFromForum ( )

Definition at line 123 of file AssistantsVM.java.

123  {
124  return modifiers.contains(AssistantConstants.FROM_FORUM);
125  }

◆ getFromStudents()

boolean org.turro.assistant.model.AssistantsVM.getFromStudents ( )

Definition at line 111 of file AssistantsVM.java.

111  {
112  return modifiers.contains(AssistantConstants.FROM_STUDENTS);
113  }

◆ getFromSubscriptions()

boolean org.turro.assistant.model.AssistantsVM.getFromSubscriptions ( )

Definition at line 99 of file AssistantsVM.java.

99  {
100  return modifiers.contains(AssistantConstants.FROM_SUBSCRIPTIONS);
101  }

◆ getFromVotes()

boolean org.turro.assistant.model.AssistantsVM.getFromVotes ( )

Definition at line 87 of file AssistantsVM.java.

87  {
88  return modifiers.contains(AssistantConstants.FROM_VOTES);
89  }

◆ getServers()

List<ServerAdapter> org.turro.assistant.model.AssistantsVM.getServers ( )

Definition at line 151 of file AssistantsVM.java.

151  {
152  return servers;
153  }

◆ init()

void org.turro.assistant.model.AssistantsVM.init ( @ExecutionArgParam("as") AssistantSet  assistants,
@ExecutionArgParam("servers") List< ServerAdapter >  servers 
)

Definition at line 43 of file AssistantsVM.java.

44  {
45  this.assistants = assistants;
46  this.servers = servers;
47  }

◆ isWithServers()

boolean org.turro.assistant.model.AssistantsVM.isWithServers ( )

Definition at line 67 of file AssistantsVM.java.

67  {
68  return !servers.isEmpty();
69  }

◆ setEntity()

void org.turro.assistant.model.AssistantsVM.setEntity ( Object  entity)

Definition at line 143 of file AssistantsVM.java.

143  {
144  this.entity = entity;
145  }

◆ setFromComments()

void org.turro.assistant.model.AssistantsVM.setFromComments ( boolean  value)

Definition at line 79 of file AssistantsVM.java.

79  {
80  if(value) {
81  modifiers.add(AssistantConstants.FROM_COMMENTS);
82  } else {
83  modifiers.remove(AssistantConstants.FROM_COMMENTS);
84  }
85  }

◆ setFromForum()

void org.turro.assistant.model.AssistantsVM.setFromForum ( boolean  value)

Definition at line 127 of file AssistantsVM.java.

127  {
128  if(value) {
129  modifiers.add(AssistantConstants.FROM_FORUM);
130  } else {
131  modifiers.remove(AssistantConstants.FROM_FORUM);
132  }
133  }

◆ setFromStudents()

void org.turro.assistant.model.AssistantsVM.setFromStudents ( boolean  value)

Definition at line 115 of file AssistantsVM.java.

115  {
116  if(value) {
117  modifiers.add(AssistantConstants.FROM_STUDENTS);
118  } else {
119  modifiers.remove(AssistantConstants.FROM_STUDENTS);
120  }
121  }

◆ setFromSubscriptions()

void org.turro.assistant.model.AssistantsVM.setFromSubscriptions ( boolean  value)

Definition at line 103 of file AssistantsVM.java.

103  {
104  if(value) {
105  modifiers.add(AssistantConstants.FROM_SUBSCRIPTIONS);
106  } else {
107  modifiers.remove(AssistantConstants.FROM_SUBSCRIPTIONS);
108  }
109  }

◆ setFromVotes()

void org.turro.assistant.model.AssistantsVM.setFromVotes ( boolean  value)

Definition at line 91 of file AssistantsVM.java.

91  {
92  if(value) {
93  modifiers.add(AssistantConstants.FROM_VOTES);
94  } else {
95  modifiers.remove(AssistantConstants.FROM_VOTES);
96  }
97  }

The documentation for this class was generated from the following file: