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

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 36 of file ContactUserActivity.java.

Member Function Documentation

◆ createDao()

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

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

Definition at line 39 of file ContactUserActivity.java.

39  {
40  return new ContactsPU();
41  }

◆ getActivity()

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

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

Definition at line 49 of file ContactUserActivity.java.

49  {
50  Set<Activity> set = new HashSet<>();
51  if(types.contains(ActivityType.ACTIVITY_PARTICIPATE)) {
52  set.addAll(getParticipations(contact, from, types));
53  }
54  return set;
55  }

◆ getAllowed()

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

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

Definition at line 44 of file ContactUserActivity.java.

44  {
45  return EnumSet.of(ActivityType.ACTIVITY_PARTICIPATE, ActivityType.ACTIVITY_CHANGE);
46  }

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