All method definitions for the CategoriesApi are now in place

Jens Pelzetter 2020-06-05 07:21:35 +02:00
parent 6388ca7c62
commit 8b3f843531
1 changed files with 120 additions and 13 deletions

View File

@ -190,14 +190,121 @@ public class CategoriesApi {
throw new UnsupportedOperationException();
}
// GET object in category @Path("/{domain-identifier}/{path}/objects
// GET object in category @Path("/ID-{categoryId}
// GET object in category @Path("/UUID-{categoryUuid}
// PUT object in category @Path("/{domain-identifier}/{path}/objects/{objectIdentifier}
// PUT object in category @Path("/ID-{categoryId}/{objectIdentifier}
// PUT object in category @Path("/UUID-{categoryUuid}/{objectIdentifier}
// DELETE object in category @Path("/{domain-identifier}/{path}/objects/{objectIdentifier}
// DELETE object in category @Path("/ID-{categoryId}/{objectIdentifier}
// DELETE object in category @Path("/UUID-{categoryUuid}/{objectIdentifier}
@GET
@Path("/{domainIdentifier}/{path:^[\\w\\-/]+$}/objects")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData getObjectsInCategory(
@PathParam("domainIdentifier") final String domainIdentifierParam,
@PathParam("path") final String categoryPathTokens
) {
throw new UnsupportedOperationException();
}
@GET
@Path("/ID-{categoryId}/objects")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData getCategoryObjectsInCategory(
@PathParam("categoryId") final long categoryId
) {
throw new UnsupportedOperationException();
}
@GET
@Path("/UUID-{categoryId}/objects")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData getObjectsInCategory(
@PathParam("categoryId") final String categoryUuid
) {
throw new UnsupportedOperationException();
}
@PUT
@Path("/{domainIdentifier}/{path:^[\\w\\-/]+$}/objects/{objectIdentifier}")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData addObjectToCategory(
@PathParam("domainIdentifier") final String domainIdentifierParam,
@PathParam("path") final String categoryPathTokens,
@PathParam("objectIdentifier") final String objectIdentifierParam
) {
throw new UnsupportedOperationException();
}
@PUT
@Path("/ID-{categoryId}/objects/{objectIdentifier}")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData addObjectToCategory(
@PathParam("categoryId") final long categoryId,
@PathParam("objectIdentifier") final String objectIdentifier
) {
throw new UnsupportedOperationException();
}
@PUT
@Path("/UUID-{categoryId}/objects/objectIdentifier")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData addObjectsToCategory(
@PathParam("categoryId") final String categoryUuid,
@PathParam("objectIdentifier") final String objectIdentifier
) {
throw new UnsupportedOperationException();
}
@DELETE
@Path("/{domainIdentifier}/{path:^[\\w\\-/]+$}/objects/{objectIdentifier}")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData removeObjectFromCategory(
@PathParam("domainIdentifier") final String domainIdentifierParam,
@PathParam("path") final String categoryPathTokens,
@PathParam("objectIdentifier") final String objectIdentifierParam
) {
throw new UnsupportedOperationException();
}
@DELETE
@Path("/ID-{categoryId}/objects/{objectIdentifier}")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData removeObjectFromCategory(
@PathParam("categoryId") final long categoryId,
@PathParam("objectIdentifier") final String objectIdentifier
) {
throw new UnsupportedOperationException();
}
@DELETE
@Path("/UUID-{categoryId}/objects/objectIdentifier")
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationRequired
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
@Transactional(Transactional.TxType.REQUIRED)
public CategoryData removeObjectsFromCategory(
@PathParam("categoryId") final String categoryUuid,
@PathParam("objectIdentifier") final String objectIdentifier
) {
throw new UnsupportedOperationException();
}
}