Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Put back @path on REST services
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Sep 25, 2013
1 parent e950c6f commit 7d5f10f
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 9 deletions.
Expand Up @@ -4,6 +4,7 @@
import java.util.Set;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
Expand Down Expand Up @@ -32,7 +33,7 @@
import org.zanata.seam.resteasy.IgnoreInterfacePath;

@Name("accountService")
//@Path(AccountResource.SERVICE_PATH)
@Path(AccountResource.SERVICE_PATH)
@Transactional
@IgnoreInterfacePath
public class AccountService implements AccountResource
Expand Down
Expand Up @@ -56,6 +56,9 @@
import com.google.common.collect.Lists;

import lombok.extern.slf4j.Slf4j;

import javax.ws.rs.Path;

import static org.zanata.rest.dto.ProcessStatus.ProcessStatusCode;

/**
Expand All @@ -64,7 +67,7 @@
* @author Carlos Munoz <a href="mailto:camunoz@redhat.com">camunoz@redhat.com</a>
*/
@Name("asynchronousProcessResourceService")
//@Path(AsynchronousProcessResource.SERVICE_PATH)
@Path(AsynchronousProcessResource.SERVICE_PATH)
@Transactional
@Slf4j
@IgnoreInterfacePath
Expand Down
Expand Up @@ -34,6 +34,7 @@
import java.util.Set;

import javax.annotation.Nonnull;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
Expand Down Expand Up @@ -68,7 +69,7 @@
import com.google.common.io.ByteStreams;

@Name("fileService")
//@Path(FileResource.FILE_RESOURCE)
@Path(FileResource.FILE_RESOURCE)
@IgnoreInterfacePath
public class FileService implements FileResource
{
Expand Down
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;
Expand Down Expand Up @@ -30,7 +31,7 @@
import org.zanata.service.GlossaryFileService;

@Name("glossaryService")
//@Path(GlossaryService.SERVICE_PATH)
@Path(GlossaryService.SERVICE_PATH)
@Transactional
@IgnoreInterfacePath
public class GlossaryService implements GlossaryResource
Expand Down
Expand Up @@ -26,6 +26,7 @@
import javax.annotation.Nonnull;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.EntityTag;
Expand Down Expand Up @@ -56,7 +57,7 @@
import com.google.common.base.Objects;

@Name("projectIterationService")
//@Path(ProjectIterationService.SERVICE_PATH)
@Path(ProjectIterationService.SERVICE_PATH)
@Transactional
@IgnoreInterfacePath
public class ProjectIterationService implements ProjectIterationResource
Expand Down
Expand Up @@ -8,6 +8,7 @@
import javax.annotation.Nonnull;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.EntityTag;
Expand Down Expand Up @@ -43,7 +44,7 @@
import com.google.common.base.Objects;

@Name("projectService")
//@Path(ProjectService.SERVICE_PATH)
@Path(ProjectService.SERVICE_PATH)
@Transactional
@IgnoreInterfacePath
public class ProjectService implements ProjectResource
Expand Down
Expand Up @@ -29,6 +29,7 @@

import javax.ws.rs.DefaultValue;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.GenericEntity;
import javax.ws.rs.core.MediaType;
Expand All @@ -53,7 +54,7 @@
import com.google.common.base.Objects;

@Name("projectsService")
//@Path(ProjectsResource.SERVICE_PATH)
@Path(ProjectsResource.SERVICE_PATH)
@Transactional
@IgnoreInterfacePath
public class ProjectsService implements ProjectsResource
Expand Down
Expand Up @@ -48,12 +48,15 @@
import org.zanata.service.DocumentService;
import org.zanata.service.LocaleService;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.EntityTag;
import javax.ws.rs.core.GenericEntity;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Request;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;
Expand Down
Expand Up @@ -25,6 +25,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.StreamingOutput;

Expand Down Expand Up @@ -56,7 +57,7 @@

import com.google.common.base.Optional;
@Name("translationMemoryResource")
//@Path(TranslationMemoryResource.SERVICE_PATH)
@Path(TranslationMemoryResource.SERVICE_PATH)
@Transactional(TransactionPropagationType.SUPPORTS)
@Slf4j
@ParametersAreNonnullByDefault
Expand Down
@@ -1,6 +1,7 @@
package org.zanata.rest.service;


import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

import org.jboss.seam.annotations.Name;
Expand All @@ -11,7 +12,7 @@


@Name("versionService")
//@Path(VersionResource.SERVICE_PATH)
@Path(VersionResource.SERVICE_PATH)
@IgnoreInterfacePath
public class VersionService implements VersionResource
{
Expand Down

0 comments on commit 7d5f10f

Please sign in to comment.