parent
08cebebd02
commit
2d15639124
|
|
@ -190,14 +190,121 @@ public class CategoriesApi {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
// GET object in category @Path("/{domain-identifier}/{path}/objects
|
@GET
|
||||||
// GET object in category @Path("/ID-{categoryId}
|
@Path("/{domainIdentifier}/{path:^[\\w\\-/]+$}/objects")
|
||||||
// GET object in category @Path("/UUID-{categoryUuid}
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
// PUT object in category @Path("/{domain-identifier}/{path}/objects/{objectIdentifier}
|
@AuthorizationRequired
|
||||||
// PUT object in category @Path("/ID-{categoryId}/{objectIdentifier}
|
@RequiresPrivilege(CoreConstants.PRIVILEGE_ADMIN)
|
||||||
// PUT object in category @Path("/UUID-{categoryUuid}/{objectIdentifier}
|
@Transactional(Transactional.TxType.REQUIRED)
|
||||||
// DELETE object in category @Path("/{domain-identifier}/{path}/objects/{objectIdentifier}
|
public CategoryData getObjectsInCategory(
|
||||||
// DELETE object in category @Path("/ID-{categoryId}/{objectIdentifier}
|
@PathParam("domainIdentifier") final String domainIdentifierParam,
|
||||||
// DELETE object in category @Path("/UUID-{categoryUuid}/{objectIdentifier}
|
@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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue