/* * #%L * BroadleafCommerce Open Admin Platform * %% * Copyright (C) 2009 - 2013 Broadleaf Commerce * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ package org.broadleafcommerce.openadmin.server.dao.provider.metadata.request; import org.broadleafcommerce.common.presentation.client.SupportedFieldType; import org.broadleafcommerce.openadmin.dto.MergedPropertyType; import org.broadleafcommerce.openadmin.server.dao.DynamicEntityDao; import org.hibernate.mapping.Property; import org.hibernate.type.Type; import java.util.List; /** * Contains the requested Hibernate type, metadata and support classes. * * @author Jeff Fischer */ public class AddMetadataFromMappingDataRequest { private final List<Property> componentProperties; private final SupportedFieldType type; private final SupportedFieldType secondaryType; private final Type requestedEntityType; private final String propertyName; private final MergedPropertyType mergedPropertyType; private final DynamicEntityDao dynamicEntityDao; public AddMetadataFromMappingDataRequest(List<Property> componentProperties, SupportedFieldType type, SupportedFieldType secondaryType, Type requestedEntityType, String propertyName, MergedPropertyType mergedPropertyType, DynamicEntityDao dynamicEntityDao) { this.componentProperties = componentProperties; this.type = type; this.secondaryType = secondaryType; this.requestedEntityType = requestedEntityType; this.propertyName = propertyName; this.mergedPropertyType = mergedPropertyType; this.dynamicEntityDao = dynamicEntityDao; } public List<Property> getComponentProperties() { return componentProperties; } public SupportedFieldType getType() { return type; } public SupportedFieldType getSecondaryType() { return secondaryType; } public Type getRequestedEntityType() { return requestedEntityType; } public String getPropertyName() { return propertyName; } public MergedPropertyType getMergedPropertyType() { return mergedPropertyType; } public DynamicEntityDao getDynamicEntityDao() { return dynamicEntityDao; } }