BrightSide Workbench Full Report + Source Code
org.turro.user.activity.CommonsUserActivity Class Reference
Inheritance diagram for org.turro.user.activity.CommonsUserActivity:
Collaboration diagram for org.turro.user.activity.CommonsUserActivity:

Protected Member Functions

Dao createDao ()
 
Set< ActivityTypegetAllowed ()
 
Set< ActivitygetActivity (IContact contact, Date from, Set< ActivityType > types)
 
- Protected Member Functions inherited from org.turro.user.activity.AbstractUserActivity
Dao getDao ()
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.user.activity.AbstractUserActivity
void init ()
 
Set< ActivitygetActivity (IContact contact, Date from, ActivityType... type)
 
void end ()
 

Detailed Description

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

Definition at line 40 of file CommonsUserActivity.java.

Member Function Documentation

◆ createDao()

Dao org.turro.user.activity.CommonsUserActivity.createDao ( )
protected

Reimplemented from org.turro.user.activity.AbstractUserActivity.

Definition at line 43 of file CommonsUserActivity.java.

43  {
44  return new ElephantPU();
45  }

◆ getActivity()

Set<Activity> org.turro.user.activity.CommonsUserActivity.getActivity ( IContact  contact,
Date  from,
Set< ActivityType types 
)
protected

Reimplemented from org.turro.user.activity.AbstractUserActivity.

Definition at line 54 of file CommonsUserActivity.java.

54  {
55  Set<Activity> set = new HashSet<>();
56  set.addAll(getParticipations(contact, from, types));
57  return set;
58  }

◆ getAllowed()

Set<ActivityType> org.turro.user.activity.CommonsUserActivity.getAllowed ( )
protected

Reimplemented from org.turro.user.activity.AbstractUserActivity.

Definition at line 48 of file CommonsUserActivity.java.

48  {
49  return EnumSet.of(ActivityType.ACTIVITY_FOLLOW, ActivityType.ACTIVITY_PARTICIPATE,
50  ActivityType.ACTIVITY_SEEN, ActivityType.ACTIVITY_SPAM, ActivityType.ACTIVITY_LIKE);
51  }

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