All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bloomscorp.aster.restful.AsterCartItemResponse Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.0.64
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy