19 package org.turro.script;
21 import java.util.List;
22 import org.turro.string.Strings;
23 import org.turro.elephant.context.Application;
24 import org.turro.plugin.contacts.IContact;
37 List<String> syndList = Strings.csvToList(syndications);
38 return ((
IContact) user).getSyndications().stream().anyMatch(s -> syndList.contains(s));
42 List<String> groupList = Strings.csvToList(groupings);
43 return groupList.contains(((
IContact) user).getGrouping());
boolean isInRole(String role)
static Application getApplication()
boolean anyOfGroupings(Object user, String groupings)
boolean anyOfSyndications(Object user, String syndications)