BrightSide Workbench Full Report + Source Code
org.turro.script.ProfileFunctions Class Reference

Public Member Functions

boolean isUser ()
 
boolean anyOfSyndications (Object user, String syndications)
 
boolean anyOfGroupings (Object user, String groupings)
 

Detailed Description

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

Definition at line 30 of file ProfileFunctions.java.

Member Function Documentation

◆ anyOfGroupings()

boolean org.turro.script.ProfileFunctions.anyOfGroupings ( Object  user,
String  groupings 
)

Definition at line 41 of file ProfileFunctions.java.

41  {
42  List<String> groupList = Strings.csvToList(groupings);
43  return groupList.contains(((IContact) user).getGrouping());
44  }

◆ anyOfSyndications()

boolean org.turro.script.ProfileFunctions.anyOfSyndications ( Object  user,
String  syndications 
)

Definition at line 36 of file ProfileFunctions.java.

36  {
37  List<String> syndList = Strings.csvToList(syndications);
38  return ((IContact) user).getSyndications().stream().anyMatch(s -> syndList.contains(s));
39  }

◆ isUser()

boolean org.turro.script.ProfileFunctions.isUser ( )

Definition at line 32 of file ProfileFunctions.java.

32  {
33  return Application.getApplication().isInRole("user:in");
34  }
Here is the call graph for this function:

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