public class AssetCompositeIdKeyTranslator extends Object implements info.magnolia.ui.form.field.converter.IdentifierToPathConverter
IdentifierToPathConverter
used to convert an asset's composite id to a path and vice versa. Composite ids are
generated using ItemKey.ItemKey(String, String)
(see ItemKey.from(java.lang.String)
to get the
composite id from an existing string).ItemKey
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) |
void |
setWorkspaceName(String workspaceName) |
public String convertToModel(String path, Class<? extends String> targetType, Locale locale)
public String convertToPresentation(String compositeId, Class<? extends String> targetType, Locale locale)
public void setWorkspaceName(String workspaceName)
setWorkspaceName
in interface info.magnolia.ui.form.field.converter.IdentifierToPathConverter
Copyright © 2018 Magnolia International Ltd.. All rights reserved.