Class DefaultPlatformTypeFacadeStrategy
java.lang.Object
com.hybris.backoffice.cockpitng.dataaccess.facades.type.DefaultPlatformTypeFacadeStrategy
- All Implemented Interfaces:
com.hybris.cockpitng.core.util.Resettable,com.hybris.cockpitng.dataaccess.facades.type.TypeFacade,com.hybris.cockpitng.dataaccess.facades.type.TypeFacadeStrategy
- Direct Known Subclasses:
CustomerTypeFacadeStrategy,TicketTypeFacadeStrategy
public class DefaultPlatformTypeFacadeStrategy
extends Object
implements com.hybris.cockpitng.dataaccess.facades.type.TypeFacadeStrategy, com.hybris.cockpitng.core.util.Resettable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected com.hybris.cockpitng.dataaccess.facades.type.DataAttributeconvertAttribute(AttributeDescriptorModel attributeDescriptorModel) protected com.hybris.cockpitng.dataaccess.facades.type.DataType.TypeconvertPlatformCollectionTypeToDatatypeType(TypeOfCollectionEnum typeOfCollection) com.hybris.cockpitng.dataaccess.facades.type.DataTypeconvertType(TypeModel platformType, boolean lightWeight) com.hybris.cockpitng.dataaccess.facades.type.DataTypeconvertType(TypeModel platformType, boolean lightWeight, com.hybris.cockpitng.dataaccess.context.Context context) protected com.hybris.cockpitng.dataaccess.facades.type.DataType.BuildercreateCollectionTypeBuilder(String typeCode) Deprecated, for removal: This API element is subject to removal in a future version.protected com.hybris.cockpitng.dataaccess.facades.type.DataType.BuildercreateCollectionTypeBuilder(String typeCode, TypeOfCollectionEnum typeOfCollection) protected com.hybris.cockpitng.dataaccess.facades.type.MapDataType.MapBuildercreateMapTypeBuilder(String typeCode) protected com.hybris.cockpitng.dataaccess.facades.type.DataType.BuildercreateTypeBuilder(String typeCode) com.hybris.cockpitng.dataaccess.facades.type.DataAttributegetAttribute(Object object, String attributeQualifier) getAttributeDescription(String type, String qualifier) getAttributeDescription(String type, String qualifier, Locale locale) getBlacklistedAttributes(Set<String> typeCodeHierarchy) com.hybris.cockpitng.i18n.CockpitLocaleServiceDeprecated, for removal: This API element is subject to removal in a future version.not used anymoreprotected AttributeExpressionResolverFactorygetTypeHierarchy(ComposedTypeModel typeModel) protected TypeServiceprotected TypeSystemLocalizationHelpervoidinit()protected booleanisOrdered(AttributeDescriptorModel attributeDescriptorModel) protected booleanisWritable(AttributeDescriptorModel attributeDescriptorModel) protected booleanisWritableOnCreation(AttributeDescriptorModel attributeDescriptorModel) com.hybris.cockpitng.dataaccess.facades.type.DataTypecom.hybris.cockpitng.dataaccess.facades.type.DataTypeprotected com.hybris.cockpitng.dataaccess.facades.type.DataTypeloadAndCache(String code, com.hybris.cockpitng.dataaccess.context.Context context, boolean lightWeight) voidreset()voidsetCockpitLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService) Deprecated, for removal: This API element is subject to removal in a future version.not used anymorevoidsetDynamicTypesBlacklist(List<String> dynamicTypesBlacklist) voidsetI18nService(I18NService i18nService) Deprecated, for removal: This API element is subject to removal in a future version.not used anymorevoidsetModelService(ModelService modelService) voidsetPlatformFacadeStrategyHandleCache(PlatformFacadeStrategyHandleCache platformFacadeStrategyHandleCache) voidsetResolverFactory(AttributeExpressionResolverFactory resolverFactory) voidsetTypeAttributesBlackList(Map<String, Collection<String>> typeAttributesBlackList) voidsetTypeService(TypeService typeService) voidsetTypeSystemLocalizationHelper(TypeSystemLocalizationHelper typeSystemLocalizationHelper) voidsetVariantsService(VariantsService variantsService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.dataaccess.facades.type.TypeFacade
getAttribute
-
Constructor Details
-
DefaultPlatformTypeFacadeStrategy
public DefaultPlatformTypeFacadeStrategy()
-
-
Method Details
-
init
@PostConstruct public void init() -
load
public com.hybris.cockpitng.dataaccess.facades.type.DataType load(String code) throws com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException - Specified by:
loadin interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacade- Throws:
com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException
-
load
public com.hybris.cockpitng.dataaccess.facades.type.DataType load(String code, com.hybris.cockpitng.dataaccess.context.Context ctx) throws com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException - Specified by:
loadin interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacade- Throws:
com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException
-
loadAndCache
protected com.hybris.cockpitng.dataaccess.facades.type.DataType loadAndCache(String code, com.hybris.cockpitng.dataaccess.context.Context context, boolean lightWeight) throws com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException - Parameters:
code- type codecontext- generic contextlightWeight- if true only the type's definition is loaded, no reference types etc must be loaded at this point- Returns:
- The (possibly) cached type.
- Throws:
com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException- throw when the given type cannot be found
-
convertType
public com.hybris.cockpitng.dataaccess.facades.type.DataType convertType(TypeModel platformType, boolean lightWeight) -
convertType
public com.hybris.cockpitng.dataaccess.facades.type.DataType convertType(TypeModel platformType, boolean lightWeight, com.hybris.cockpitng.dataaccess.context.Context context) -
createTypeBuilder
protected com.hybris.cockpitng.dataaccess.facades.type.DataType.Builder createTypeBuilder(String typeCode) -
createCollectionTypeBuilder
@Deprecated(since="2005", forRemoval=true) protected com.hybris.cockpitng.dataaccess.facades.type.DataType.Builder createCollectionTypeBuilder(String typeCode) Deprecated, for removal: This API element is subject to removal in a future version.since 2005, please usecreateCollectionTypeBuilder(String, TypeOfCollectionEnum) -
createCollectionTypeBuilder
protected com.hybris.cockpitng.dataaccess.facades.type.DataType.Builder createCollectionTypeBuilder(String typeCode, TypeOfCollectionEnum typeOfCollection) -
convertPlatformCollectionTypeToDatatypeType
protected com.hybris.cockpitng.dataaccess.facades.type.DataType.Type convertPlatformCollectionTypeToDatatypeType(TypeOfCollectionEnum typeOfCollection) -
createMapTypeBuilder
protected com.hybris.cockpitng.dataaccess.facades.type.MapDataType.MapBuilder createMapTypeBuilder(String typeCode) -
getTypeHierarchy
-
getBlacklistedAttributes
-
convertAttribute
protected com.hybris.cockpitng.dataaccess.facades.type.DataAttribute convertAttribute(AttributeDescriptorModel attributeDescriptorModel) throws com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException - Throws:
com.hybris.cockpitng.dataaccess.facades.type.exceptions.TypeNotFoundException
-
isWritable
-
isWritableOnCreation
-
isOrdered
-
canHandle
- Specified by:
canHandlein interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacadeStrategy
-
getType
- Specified by:
getTypein interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacade
-
getAttribute
public com.hybris.cockpitng.dataaccess.facades.type.DataAttribute getAttribute(Object object, String attributeQualifier) - Specified by:
getAttributein interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacade
-
getAttributeDescription
- Specified by:
getAttributeDescriptionin interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacade
-
getAttributeDescription
- Specified by:
getAttributeDescriptionin interfacecom.hybris.cockpitng.dataaccess.facades.type.TypeFacade
-
getModelService
-
setModelService
-
getTypeService
-
setTypeService
-
setI18nService
Deprecated, for removal: This API element is subject to removal in a future version.not used anymore- Parameters:
i18nService- i18n service
-
setPlatformFacadeStrategyHandleCache
public void setPlatformFacadeStrategyHandleCache(PlatformFacadeStrategyHandleCache platformFacadeStrategyHandleCache) -
reset
public void reset()- Specified by:
resetin interfacecom.hybris.cockpitng.core.util.Resettable
-
getDynamicTypesBlacklist
- Returns:
- a collection ('black list') of type names that are NOT going to be cached since are considered to be dynamic (may change in the runtime)
-
setDynamicTypesBlacklist
-
getTypeAttributesBlackList
-
setTypeAttributesBlackList
-
getResolverFactory
-
setResolverFactory
-
getVariantsService
-
setVariantsService
-
getTypeSystemLocalizationHelper
-
setTypeSystemLocalizationHelper
public void setTypeSystemLocalizationHelper(TypeSystemLocalizationHelper typeSystemLocalizationHelper) -
getCockpitLocaleService
@Deprecated(since="2005", forRemoval=true) public com.hybris.cockpitng.i18n.CockpitLocaleService getCockpitLocaleService()Deprecated, for removal: This API element is subject to removal in a future version.not used anymore- Returns:
- locale service
-
setCockpitLocaleService
@Deprecated(since="2005", forRemoval=true) public void setCockpitLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService) Deprecated, for removal: This API element is subject to removal in a future version.not used anymore- Parameters:
cockpitLocaleService- locale service
-
createCollectionTypeBuilder(String, TypeOfCollectionEnum)