Class UIActivitiesService


  • @Component
    public class UIActivitiesService
    extends java.lang.Object
    UI service for converting events into UI activities.
    • Constructor Detail

      • UIActivitiesService

        @Autowired
        public UIActivitiesService​(ProjectService projectService,
                                   ProjectEventService projectEventService,
                                   org.springframework.context.MessageSource messageSource,
                                   UserService userService)
    • Method Detail

      • getActivitiesForProject

        public PagedListResponse getActivitiesForProject​(java.lang.Long projectId,
                                                         int page,
                                                         java.util.Locale locale)
        Get a page of activities for a project
        Parameters:
        projectId - Identifier for the current project
        page - Current page of activities being asked for
        locale - Current users locale
        Returns:
        The page of activities plus the total amount of activities
      • getRecentActivitiesForUser

        public PagedListResponse getRecentActivitiesForUser​(int page,
                                                            java.util.Locale locale,
                                                            java.security.Principal principal)
        Get a page of recent activities for a user
        Parameters:
        page - Current page of activities being asked for
        locale - Current users locale
        principal - The currently logged on user
        Returns:
        The page of activities plus the total amount of activities
      • getAllRecentActivities

        public PagedListResponse getAllRecentActivities​(int page,
                                                        java.util.Locale locale)
        Get a specific page of recent activities for all projects for admin
        Parameters:
        page - Current page of activities being asked for
        locale - Current users locale
        Returns:
        List of activities and the total number of activities