BrightSide Workbench Full Report + Source Code
org.turro.user.activity.UserActivities Class Reference

Static Public Member Functions

static Set< ActivitygetActivity (IContact contact)
 
static Set< ActivitygetActivity (IContact contact, ActivityType... type)
 
static Set< ActivitygetActivity (IContact contact, Date from, ActivityType... type)
 

Detailed Description

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

Definition at line 32 of file UserActivities.java.

Member Function Documentation

◆ getActivity() [1/3]

static Set<Activity> org.turro.user.activity.UserActivities.getActivity ( IContact  contact)
static

Definition at line 34 of file UserActivities.java.

34  {
35  return getActivity(contact, ActivityType.values());
36  }
static Set< Activity > getActivity(IContact contact)
Here is the caller graph for this function:

◆ getActivity() [2/3]

static Set<Activity> org.turro.user.activity.UserActivities.getActivity ( IContact  contact,
ActivityType...  type 
)
static

Definition at line 38 of file UserActivities.java.

38  {
39  Date from = new CheckDate().addYears(-5).getDate();
40  return getActivity(contact, from, type);
41  }
Here is the call graph for this function:

◆ getActivity() [3/3]

static Set<Activity> org.turro.user.activity.UserActivities.getActivity ( IContact  contact,
Date  from,
ActivityType...  type 
)
static

Definition at line 43 of file UserActivities.java.

43  {
44  LOCK.lock();
45  try {
46  ActivitySet set = new ActivitySet();
47  for(IUserActivity activity : Instances.cached().byAnnotation(UserActivity.class, IUserActivity.class)) {
48  activity.init();
49  set.addAll(activity.getActivity(contact, from, type));
50  activity.end();
51  }
52  return set;
53  } finally {
54  LOCK.unlock();
55  }
56  }

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