Merge remote-tracking branch 'origin/pr/1032'

master
Andrew DeMaria 6 years ago
commit 0a1164966d
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 4
      airsonic-main/src/main/java/org/airsonic/player/ajax/MultiService.java
  2. 4
      airsonic-main/src/main/java/org/airsonic/player/ajax/StarService.java
  3. 4
      airsonic-main/src/main/java/org/airsonic/player/cache/CacheFactory.java
  4. 2
      airsonic-main/src/main/java/org/airsonic/player/controller/AccessDeniedController.java
  5. 5
      airsonic-main/src/main/java/org/airsonic/player/controller/ExportPlayListController.java
  6. 7
      airsonic-main/src/main/java/org/airsonic/player/controller/IndexController.java
  7. 6
      airsonic-main/src/main/java/org/airsonic/player/controller/LoginController.java
  8. 7
      airsonic-main/src/main/java/org/airsonic/player/controller/NotFoundController.java
  9. 4
      airsonic-main/src/main/java/org/airsonic/player/dao/ArtistDao.java
  10. 4
      airsonic-main/src/main/java/org/airsonic/player/dao/GenericDaoHelper.java
  11. 4
      airsonic-main/src/main/java/org/airsonic/player/dao/PlaylistDao.java
  12. 4
      airsonic-main/src/main/java/org/airsonic/player/service/playlist/XspfPlaylistImportHandler.java

@ -29,8 +29,6 @@ import org.airsonic.player.service.MediaFileService;
import org.airsonic.player.service.SecurityService;
import org.airsonic.player.service.SettingsService;
import org.directwebremoting.WebContextFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -51,8 +49,6 @@ import java.util.List;
@Service("ajaxMultiService")
public class MultiService {
private static final Logger LOG = LoggerFactory.getLogger(MultiService.class);
@Autowired
private MediaFileService mediaFileService;
@Autowired

@ -24,8 +24,6 @@ import org.airsonic.player.domain.User;
import org.airsonic.player.service.SecurityService;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -39,8 +37,6 @@ import org.springframework.stereotype.Service;
@Service("ajaxStarService")
public class StarService {
private static final Logger LOG = LoggerFactory.getLogger(StarService.class);
@Autowired
private SecurityService securityService;
@Autowired

@ -24,8 +24,6 @@ import net.sf.ehcache.Ehcache;
import net.sf.ehcache.config.Configuration;
import net.sf.ehcache.config.ConfigurationFactory;
import org.airsonic.player.service.SettingsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import java.io.File;
@ -37,8 +35,6 @@ import java.io.File;
* @version $Id$
*/
public class CacheFactory implements InitializingBean {
private static final Logger LOG = LoggerFactory.getLogger(CacheFactory.class);
private CacheManager cacheManager;
public void afterPropertiesSet() throws Exception {

@ -17,11 +17,11 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/accessDenied")
public class AccessDeniedController {
private static final Logger LOG = LoggerFactory.getLogger(AccessDeniedController.class);
@RequestMapping(method = {RequestMethod.GET})
public ModelAndView accessDenied(HttpServletRequest request, HttpServletResponse response) {
LOG.info("The IP {0} tried to access the forbidden url {1}.", request.getRemoteAddr(), request.getRequestURL());
return new ModelAndView("accessDenied");
}

@ -4,8 +4,6 @@ import org.airsonic.player.domain.Playlist;
import org.airsonic.player.service.PlaylistService;
import org.airsonic.player.service.SecurityService;
import org.airsonic.player.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.ServletRequestUtils;
@ -23,9 +21,6 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/exportPlaylist")
public class ExportPlayListController {
private static final Logger LOG = LoggerFactory.getLogger(ExportPlayListController.class);
@Autowired
private PlaylistService playlistService;
@Autowired

@ -3,8 +3,6 @@ package org.airsonic.player.controller;
import org.airsonic.player.domain.UserSettings;
import org.airsonic.player.service.SecurityService;
import org.airsonic.player.service.SettingsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ -20,9 +18,6 @@ import java.util.Map;
@RequestMapping("/index")
public class IndexController {
private static final Logger LOG = LoggerFactory.getLogger(IndexController.class);
@Autowired
private SecurityService securityService;
@Autowired
@ -41,6 +36,4 @@ public class IndexController {
map.put("brand", settingsService.getBrand());
return new ModelAndView("index", "model", map);
}
}

@ -4,8 +4,6 @@ import org.airsonic.player.domain.User;
import org.airsonic.player.service.SecurityService;
import org.airsonic.player.service.SettingsService;
import org.airsonic.player.util.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
import org.springframework.stereotype.Controller;
@ -26,9 +24,6 @@ import java.util.Map;
@Controller
public class LoginController {
private static final Logger LOG = LoggerFactory.getLogger(LoginController.class);
@Autowired
private SecurityService securityService;
@Autowired
@ -62,5 +57,4 @@ public class LoginController {
return new ModelAndView("login", "model", map);
}
}

@ -1,7 +1,5 @@
package org.airsonic.player.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@ -17,13 +15,8 @@ import javax.servlet.http.HttpServletResponse;
@RequestMapping("/notFound")
public class NotFoundController {
private static final Logger LOG = LoggerFactory.getLogger(NotFoundController.class);
@RequestMapping(method = {RequestMethod.GET})
public ModelAndView notFound(HttpServletRequest request, HttpServletResponse response) {
return new ModelAndView("notFound");
}
}

@ -21,8 +21,6 @@ package org.airsonic.player.dao;
import org.airsonic.player.domain.Artist;
import org.airsonic.player.domain.MusicFolder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@ -38,8 +36,6 @@ import java.util.*;
*/
@Repository
public class ArtistDao extends AbstractDao {
private static final Logger LOG = LoggerFactory.getLogger(ArtistDao.class);
private static final String INSERT_COLUMNS = "name, cover_art_path, album_count, last_scanned, present, folder_id";
private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS;

@ -1,7 +1,5 @@
package org.airsonic.player.dao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
@ -9,8 +7,6 @@ import javax.sql.DataSource;
public class GenericDaoHelper implements DaoHelper {
private static final Logger LOG = LoggerFactory.getLogger(GenericDaoHelper.class);
final JdbcTemplate jdbcTemplate;
final NamedParameterJdbcTemplate namedParameterJdbcTemplate;

@ -21,8 +21,6 @@ package org.airsonic.player.dao;
import org.airsonic.player.domain.MediaFile;
import org.airsonic.player.domain.Playlist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@ -38,8 +36,6 @@ import java.util.*;
*/
@Repository
public class PlaylistDao extends AbstractDao {
private static final Logger LOG = LoggerFactory.getLogger(PlaylistDao.class);
private static final String INSERT_COLUMNS = "username, is_public, name, comment, file_count, duration_seconds, " +
"created, changed, imported_from";
private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS;

@ -7,8 +7,6 @@ import chameleon.playlist.xspf.StringContainer;
import org.airsonic.player.domain.MediaFile;
import org.airsonic.player.service.MediaFileService;
import org.airsonic.player.util.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ -21,8 +19,6 @@ import java.util.stream.Collectors;
@Component
public class XspfPlaylistImportHandler implements PlaylistImportHandler {
private static final Logger LOG = LoggerFactory.getLogger(XspfPlaylistImportHandler.class);
@Autowired
MediaFileService mediaFileService;

Loading…
Cancel
Save