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

com.bloomscorp.aster.restful.AsterOrderResponse 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.

The newest version!
package com.bloomscorp.aster.restful;

import com.bloomscorp.aster.order.orm.AsterOrder;
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 AsterOrderResponse<
        E extends Enum,
        R extends AsterUserRole,
        T extends NVerseTenant,
        O extends AsterOrder
        > extends RainResponse {

    public AsterOrderResponse(RainTree rainTree) {
        super(rainTree);
    }

    @Override
    public String buildEntity(O o) {
        return this.prepareEntity(o, ResponseParameter.ORDER);
    }

    @Override
    public String buildList(List list) {
        return this.prepareList(list, ResponseParameter.ORDER_LIST);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy