Also used :
PathVariable(org.springframework.web.bind.annotation.PathVariable)
RequestParam(org.springframework.web.bind.annotation.RequestParam)
PreAuthorize(org.springframework.security.access.prepost.PreAuthorize)
LoggerFactory(org.slf4j.LoggerFactory)
Autowired(org.springframework.beans.factory.annotation.Autowired)
RequestMapping(org.springframework.web.bind.annotation.RequestMapping)
Controller(org.springframework.stereotype.Controller)
Announcement(ca.corefacility.bioinformatics.irida.model.announcements.Announcement)
Model(org.springframework.ui.Model)
DataTablesResponseModel(ca.corefacility.bioinformatics.irida.ria.web.components.datatables.models.DataTablesResponseModel)
AnnouncementSpecification(ca.corefacility.bioinformatics.irida.repositories.specification.AnnouncementSpecification)
DataTablesResponse(ca.corefacility.bioinformatics.irida.ria.web.components.datatables.DataTablesResponse)
Logger(org.slf4j.Logger)
DTAnnouncementUser(ca.corefacility.bioinformatics.irida.ria.web.models.datatables.DTAnnouncementUser)
DataTablesRequest(ca.corefacility.bioinformatics.irida.ria.web.components.datatables.config.DataTablesRequest)
PageRequest(org.springframework.data.domain.PageRequest)
RequestMethod(org.springframework.web.bind.annotation.RequestMethod)
IOException(java.io.IOException)
DTAnnouncementAdmin(ca.corefacility.bioinformatics.irida.ria.web.models.datatables.DTAnnouncementAdmin)
Page(org.springframework.data.domain.Page)
ResponseBody(org.springframework.web.bind.annotation.ResponseBody)
Collectors(java.util.stream.Collectors)
UserSpecification(ca.corefacility.bioinformatics.irida.repositories.specification.UserSpecification)
List(java.util.List)
Principal(java.security.Principal)
UserService(ca.corefacility.bioinformatics.irida.service.user.UserService)
Optional(java.util.Optional)
AnnouncementUserJoin(ca.corefacility.bioinformatics.irida.model.announcements.AnnouncementUserJoin)
User(ca.corefacility.bioinformatics.irida.model.user.User)
AnnouncementService(ca.corefacility.bioinformatics.irida.service.AnnouncementService)
Collections(java.util.Collections)
DataTablesParams(ca.corefacility.bioinformatics.irida.ria.web.components.datatables.DataTablesParams)
PageRequest(org.springframework.data.domain.PageRequest)
DTAnnouncementUser(ca.corefacility.bioinformatics.irida.ria.web.models.datatables.DTAnnouncementUser)
User(ca.corefacility.bioinformatics.irida.model.user.User)
Announcement(ca.corefacility.bioinformatics.irida.model.announcements.Announcement)
DataTablesResponseModel(ca.corefacility.bioinformatics.irida.ria.web.components.datatables.models.DataTablesResponseModel)
DTAnnouncementUser(ca.corefacility.bioinformatics.irida.ria.web.models.datatables.DTAnnouncementUser)
DataTablesResponse(ca.corefacility.bioinformatics.irida.ria.web.components.datatables.DataTablesResponse)
PreAuthorize(org.springframework.security.access.prepost.PreAuthorize)
RequestMapping(org.springframework.web.bind.annotation.RequestMapping)
ResponseBody(org.springframework.web.bind.annotation.ResponseBody)