Fixed some typos

Jens Pelzetter 2020-07-24 20:42:15 +02:00
parent 06d1e5b07c
commit 445db26f33
1 changed files with 11 additions and 11 deletions

View File

@ -353,7 +353,7 @@ public class CategoriesApi {
@PathParam("domainIdentifier") final String domainIdentifierParam, @PathParam("domainIdentifier") final String domainIdentifierParam,
@PathParam("path") final String categoryPath, @PathParam("path") final String categoryPath,
@QueryParam("limit") @DefaultValue("20") final int limit, @QueryParam("limit") @DefaultValue("20") final int limit,
@QueryParam("offset") @DefaultValue("20") final int offset @QueryParam("offset") @DefaultValue("0") final int offset
) { ) {
final Domain domain = repository.findDomain(domainIdentifierParam); final Domain domain = repository.findDomain(domainIdentifierParam);
final Category category = categoryRepository final Category category = categoryRepository
@ -389,7 +389,7 @@ public class CategoriesApi {
public ListView<CategoryData> getSubCategories( public ListView<CategoryData> getSubCategories(
@PathParam("categoryId") final long categoryId, @PathParam("categoryId") final long categoryId,
@QueryParam("limit") @DefaultValue("20") final int limit, @QueryParam("limit") @DefaultValue("20") final int limit,
@QueryParam("offset") @DefaultValue("20") final int offset @QueryParam("offset") @DefaultValue("0") final int offset
) { ) {
final Category category = categoryRepository final Category category = categoryRepository
.findById(categoryId) .findById(categoryId)
@ -422,7 +422,7 @@ public class CategoriesApi {
public ListView<CategoryData> getSubCategories( public ListView<CategoryData> getSubCategories(
@PathParam("categoryUuid") final String uuid, @PathParam("categoryUuid") final String uuid,
@QueryParam("limit") @DefaultValue("20") final int limit, @QueryParam("limit") @DefaultValue("20") final int limit,
@QueryParam("offset") @DefaultValue("20") final int offset @QueryParam("offset") @DefaultValue("0") final int offset
) { ) {
final Category category = categoryRepository final Category category = categoryRepository
.findByUuid(uuid) .findByUuid(uuid)
@ -505,8 +505,8 @@ public class CategoriesApi {
public ListView<CategorizationData> getObjectsInCategory( public ListView<CategorizationData> getObjectsInCategory(
@PathParam("domainIdentifier") final String domainIdentifier, @PathParam("domainIdentifier") final String domainIdentifier,
@PathParam("path") final String categoryPath, @PathParam("path") final String categoryPath,
@QueryParam("limit") final int limit, @QueryParam("limit") @DefaultValue("20") final int limit,
@QueryParam("offset") final int offset @QueryParam("offset") @DefaultValue("0") final int offset
) { ) {
final Domain domain = repository.findDomain(domainIdentifier); final Domain domain = repository.findDomain(domainIdentifier);
final Category category = findCategory(domain, categoryPath); final Category category = findCategory(domain, categoryPath);
@ -530,8 +530,8 @@ public class CategoriesApi {
@Transactional(Transactional.TxType.REQUIRED) @Transactional(Transactional.TxType.REQUIRED)
public ListView<CategorizationData> getCategoryObjectsInCategory( public ListView<CategorizationData> getCategoryObjectsInCategory(
@PathParam("categoryId") final long categoryId, @PathParam("categoryId") final long categoryId,
@QueryParam("limit") final int limit, @QueryParam("limit") @DefaultValue("20") final int limit,
@QueryParam("offset") final int offset @QueryParam("offset") @DefaultValue("0") final int offset
) { ) {
final Category category = findCategory(categoryId); final Category category = findCategory(categoryId);
@ -554,8 +554,8 @@ public class CategoriesApi {
@Transactional(Transactional.TxType.REQUIRED) @Transactional(Transactional.TxType.REQUIRED)
public ListView<CategorizationData> getObjectsInCategory( public ListView<CategorizationData> getObjectsInCategory(
@PathParam("uuid") final String uuid, @PathParam("uuid") final String uuid,
@QueryParam("limit") final int limit, @QueryParam("limit") @DefaultValue("20") final int limit,
@QueryParam("offset") final int offset @QueryParam("offset") @DefaultValue("0") final int offset
) { ) {
final Category category = findCategory(uuid); final Category category = findCategory(uuid);
@ -779,12 +779,12 @@ public class CategoriesApi {
} }
@DELETE @DELETE
@Path("/UUID-{categoryId}/objects/objectIdentifier") @Path("/UUID-{categoryId}/objects/{objectIdentifier}")
@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired @AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN) @RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED) @Transactional(Transactional.TxType.REQUIRED)
public Response removeObjectsFromCategory( public Response removeObjectFromCategory(
@PathParam("categoryId") final String categoryUuid, @PathParam("categoryId") final String categoryUuid,
@PathParam("objectIdentifier") final String categorizationUuid @PathParam("objectIdentifier") final String categorizationUuid
) { ) {