Package usecase.follow
Class FollowService
- java.lang.Object
-
- usecase.follow.FollowService
-
@ApplicationScoped public class FollowService extends Object
Classe che fornisce i servizi relativi ai follow.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFollowService()protectedFollowService(GenericRepository genericRepository, CurrentUser currentUser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfollow(int sectionId)Permette di seguire una sezionevoidunFollow(int sectionId)Permette di togliere il follow ad una sezione
-
-
-
Constructor Detail
-
FollowService
protected FollowService()
-
FollowService
@Inject protected FollowService(GenericRepository genericRepository, CurrentUser currentUser)
-
-
Method Detail
-
follow
@AuthenticationRequired public void follow(@SectionExists int sectionId)
Permette di seguire una sezione- Parameters:
sectionId- identificativo sezione
-
unFollow
@AuthenticationRequired public void unFollow(@SectionExists int sectionId)
Permette di togliere il follow ad una sezione- Parameters:
sectionId- identificativo sezione
-
-