public class AssetCompositeIdKeyTranslator extends Object implements info.magnolia.ui.form.field.converter.IdentifierToPathConverter
PropertyTranslator
used to convert a Asset CompositeIdKey to a Path
and Path to CompositeIdKey. Composite key are generated with the following
class DamIdParser
. In general, if the translation is not possible,
return null.Constructor and Description |
---|
AssetCompositeIdKeyTranslator() |
Modifier and Type | Method and Description |
---|---|
String |
convertToModel(String path,
Class<? extends String> targetType,
Locale locale) |
String |
convertToPresentation(String compositeId,
Class<? extends String> targetType,
Locale locale) |
Class<String> |
getModelType() |
Class<String> |
getPresentationType() |
void |
setWorkspaceName(String workspaceName) |
public String convertToModel(String path, Class<? extends String> targetType, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException
public String convertToPresentation(String compositeId, Class<? extends String> targetType, Locale locale) throws com.vaadin.data.util.converter.Converter.ConversionException
public void setWorkspaceName(String workspaceName)
setWorkspaceName
in interface info.magnolia.ui.form.field.converter.IdentifierToPathConverter
Copyright © 2016 Magnolia International Ltd.. All rights reserved.