19 package org.turro.user.activity;
21 import java.util.Arrays;
22 import java.util.Collections;
23 import java.util.Date;
24 import java.util.EnumSet;
26 import org.turro.jpa.Dao;
27 import org.turro.plugin.contacts.IContact;
42 Set<ActivityType> types = EnumSet.copyOf(Arrays.asList(type));
43 if(types.stream().anyMatch(t ->
getAllowed().contains(t))) {
46 return Collections.EMPTY_SET;
Set< Activity > getActivity(IContact contact, Date from, ActivityType... type)
abstract Set< Activity > getActivity(IContact contact, Date from, Set< ActivityType > types)
abstract Set< ActivityType > getAllowed()