mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
use ExternallyManagedLifecycle instead of deprecated SpringManagedLifecycle
This commit is contained in:
@@ -40,7 +40,7 @@ import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -75,7 +75,7 @@ import javax.ws.rs.core.Response;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("authentication")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
||||
public class AuthenticationResource
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
|
||||
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -69,7 +69,7 @@ import javax.ws.rs.core.Response;
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
@Path("action/change-password")
|
||||
public class ChangePasswordResource
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import sonia.scm.config.ScmConfiguration;
|
||||
import sonia.scm.util.ScmConfigurationUtil;
|
||||
@@ -64,7 +64,7 @@ import javax.ws.rs.core.UriInfo;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("config")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class ConfigurationResource
|
||||
{
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import sonia.scm.group.Group;
|
||||
import sonia.scm.group.GroupException;
|
||||
@@ -75,7 +75,7 @@ import javax.ws.rs.core.UriInfo;
|
||||
*/
|
||||
@Path("groups")
|
||||
@Singleton
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class GroupResource
|
||||
extends AbstractManagerResource<Group, GroupException>
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ package sonia.scm.api.rest.resources;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import sonia.scm.plugin.DefaultPluginManager;
|
||||
import sonia.scm.plugin.OverviewPluginFilter;
|
||||
@@ -67,7 +67,7 @@ import javax.ws.rs.core.Response;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("plugins")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class PluginResource
|
||||
{
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -72,7 +72,7 @@ import javax.ws.rs.core.MediaType;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("import/repositories")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class RepositoryImportResource
|
||||
{
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -101,7 +101,7 @@ import javax.ws.rs.core.UriInfo;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("repositories")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class RepositoryResource
|
||||
extends AbstractManagerResource<Repository, RepositoryException>
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ import com.google.inject.Inject;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import sonia.scm.HandlerEvent;
|
||||
import sonia.scm.cache.Cache;
|
||||
@@ -70,7 +70,7 @@ import javax.ws.rs.core.MediaType;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("search")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class SearchResource implements UserListener, GroupListener
|
||||
{
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.codehaus.enunciate.jaxrs.TypeHint;
|
||||
import org.codehaus.enunciate.modules.jersey.SpringManagedLifecycle;
|
||||
import org.codehaus.enunciate.modules.jersey.ExternallyManagedLifecycle;
|
||||
|
||||
import sonia.scm.security.EncryptionHandler;
|
||||
import sonia.scm.user.User;
|
||||
@@ -78,7 +78,7 @@ import javax.ws.rs.core.UriInfo;
|
||||
*/
|
||||
@Singleton
|
||||
@Path("users")
|
||||
@SpringManagedLifecycle
|
||||
@ExternallyManagedLifecycle
|
||||
public class UserResource extends AbstractManagerResource<User, UserException>
|
||||
{
|
||||
|
||||
@@ -234,7 +234,7 @@ public class UserResource extends AbstractManagerResource<User, UserException>
|
||||
* <li>403 forbidden, the current user has no admin privileges</li>
|
||||
* <li>500 internal server error</li>
|
||||
* </ul>
|
||||
*
|
||||
*
|
||||
* @param request the current request
|
||||
* @param start the start value for paging
|
||||
* @param limit the limit value for paging
|
||||
|
||||
Reference in New Issue
Block a user