19 package org.turro.visual;
21 import org.turro.plugin.contacts.IContact;
22 import org.turro.students.entities.Challenge;
23 import org.turro.students.entities.Response;
31 private Boolean challenger;
32 private Boolean participates;
39 this.challenger = challenger;
44 this.participates = participates;
50 return challenger ==
null && participates ==
null;
60 return checkAttributes(entity, contact) ||
61 checkParticipates(entity, contact);
68 private boolean checkParticipates(Challenge challenge, IContact contact) {
75 return super.allows(name, response.
getChallenge(), contact);
boolean checkAllMatch(Challenge entity, IContact contact)
ChallengeVisualElement setChallenger(Boolean challenger)
ChallengeVisualElement setParticipates(Boolean participates)
boolean emptyEntityConstraints()
ChallengeVisualElement(String name, ChallengeVisualElements factory)
boolean checkAnyMatch(Challenge entity, IContact contact)
boolean allows(String name, Response response, IContact contact)
boolean checkContact(IContact contact)
boolean isNullOrFalse(Boolean value)