com.bloomscorp.aster.restful.AsterCartItemResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bmx-aster Show documentation
Show all versions of bmx-aster Show documentation
Base package with managed dependencies for a single vendor e-commerce platform.
This is an opinionated version of Spring Boot configuration with added as-is dependency configurations.
package com.bloomscorp.aster.restful;
import com.bloomscorp.aster.cart.orm.AsterCartItem;
import com.bloomscorp.aster.product.orm.AsterProduct;
import com.bloomscorp.aster.support.ResponseParameter;
import com.bloomscorp.aster.tenant.orm.AsterUserRole;
import com.bloomscorp.nverse.pojo.NVerseTenant;
import com.bloomscorp.raintree.RainTree;
import com.bloomscorp.raintree.restful.RainResponse;
import java.util.List;
public class AsterCartItemResponse<
E extends Enum,
R extends AsterUserRole,
T extends NVerseTenant,
P extends AsterProduct,
C extends AsterCartItem
> extends RainResponse {
public AsterCartItemResponse(RainTree rainTree) {
super(rainTree);
}
@Override
public String buildEntity(C c) {
return this.prepareEntity(c, ResponseParameter.CART);
}
@Override
public String buildList(List list) {
return this.prepareList(list, ResponseParameter.CART_LIST);
}
}