| | |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import com.gitblit.manager.INotificationManager; |
| | | import com.gitblit.manager.IPluginManager; |
| | |
| | | import com.gitblit.models.TicketModel; |
| | | import com.gitblit.models.TicketModel.Attachment; |
| | | import com.gitblit.models.TicketModel.Change; |
| | | import com.google.inject.Inject; |
| | | import com.google.inject.Singleton; |
| | | |
| | | /** |
| | | * Implementation of a ticket service that rejects everything. |
| | |
| | | * @author James Moger |
| | | * |
| | | */ |
| | | @Singleton |
| | | public class NullTicketService extends ITicketService { |
| | | |
| | | @Inject |
| | | public NullTicketService( |
| | | IRuntimeManager runtimeManager, |
| | | IPluginManager pluginManager, |
| | |
| | | |
| | | @Override |
| | | public NullTicketService start() { |
| | | log.info("{} started", getClass().getSimpleName()); |
| | | return this; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public synchronized Set<Long> getIds(RepositoryModel repository) { |
| | | return Collections.emptySet(); |
| | | } |
| | | |
| | | @Override |
| | | public synchronized long assignNewId(RepositoryModel repository) { |
| | | return 0L; |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | protected List<Change> getJournalImpl(RepositoryModel repository, long ticketId) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public boolean supportsAttachments() { |
| | | return false; |
| | | } |