- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 34 of file Banned.java.
◆ getBannedIds()
List<String> org.turro.alliance.provider.Banned.getBannedIds |
( |
| ) |
|
Definition at line 36 of file Banned.java.
37 return SqlClause.select(
"b").from(
"AxProjectBan b")
38 .where().equal(
"b.relation.relatedMemberId", member.
getMemberId())
39 .and().isTrue(
"b.banned")
41 .stream(AxProjectBan.class)
◆ of()
static Banned org.turro.alliance.provider.Banned.of |
( |
WsMember |
member | ) |
|
|
static |
Definition at line 81 of file Banned.java.
82 return new Banned(member);
◆ status()
boolean org.turro.alliance.provider.Banned.status |
( |
String |
axId | ) |
|
Definition at line 46 of file Banned.java.
47 AxProjectBan ban = SqlClause.select(
"b").from(
"AxProjectBan b")
48 .where().equal(
"b.relation.relatedMemberId", member.
getMemberId())
49 .and().equal(
"id", axId)
51 .singleResult(AxProjectBan.class);
52 return ban !=
null ? ban.isBanned() :
false;
◆ toggle()
boolean org.turro.alliance.provider.Banned.toggle |
( |
String |
axId | ) |
|
Definition at line 55 of file Banned.java.
56 AxProjectBan ban = SqlClause.select(
"b").from(
"AxProjectBan b")
57 .where().equal(
"b.relation.relatedMemberId", member.
getMemberId())
58 .and().equal(
"id", axId)
60 .singleResult(AxProjectBan.class);
62 ban =
new AxProjectBan();
63 ban.setRelation(
new RelationId());
65 ban.getRelation().setRelatedEntityId(
"*");
66 ban.getRelation().setRelatedMemberId(member.
getMemberId());
69 ban.setBanned(!ban.isBanned());
71 ban = dao.get().saveObject(ban);
72 return ban.isBanned();
The documentation for this class was generated from the following file: