Package com.day.cq.dam.commons.metadata
Class SimpleXmpToJcrMetadataBuilder
- java.lang.Object
-
- com.day.cq.dam.commons.metadata.SimpleXmpToJcrMetadataBuilder
-
@Service(SimpleXmpToJcrMetadataBuilder.class) public class SimpleXmpToJcrMetadataBuilder extends java.lang.Object
TheXmpToJcrMetadataBuilder
class ...
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.String>
conflictPropMap
static java.lang.String
NT_RDF_ALT
static java.lang.String
NT_RDF_BAG
static java.lang.String
NT_RDF_SEQ
-
Constructor Summary
Constructors Constructor Description SimpleXmpToJcrMetadataBuilder()
Constructs a new instance that resolves dependencies via sling @References.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description XMPMeta
getXmpFromJcr(Node metadataRoot)
Deprecated.void
storeAsXmp(ExtractedMetadata metadata, Asset asset, boolean doSave)
void
storeAsXmp(ExtractedMetadata metadata, Node metadataRoot)
void
storeAsXmp(ExtractedMetadata metadata, Node metadataRoot, boolean doSave)
Deprecated.usestoreAsXmp(ExtractedMetadata, Asset, boolean)
insteadvoid
storeXmp(Node metadataRoot, XMPMeta meta)
void
storeXmp(Node metadataRoot, XMPMeta meta, boolean doSave)
Deprecated.
-
-
-
Field Detail
-
NT_RDF_BAG
public static final java.lang.String NT_RDF_BAG
- See Also:
- Constant Field Values
-
NT_RDF_SEQ
public static final java.lang.String NT_RDF_SEQ
- See Also:
- Constant Field Values
-
NT_RDF_ALT
public static final java.lang.String NT_RDF_ALT
- See Also:
- Constant Field Values
-
conflictPropMap
public final java.util.Map<java.lang.String,java.lang.String> conflictPropMap
-
-
Method Detail
-
storeXmp
@Deprecated public void storeXmp(Node metadataRoot, XMPMeta meta, boolean doSave) throws XMPException, RepositoryException
Deprecated.- Throws:
XMPException
RepositoryException
-
storeXmp
public void storeXmp(Node metadataRoot, XMPMeta meta) throws XMPException, RepositoryException
- Throws:
XMPException
RepositoryException
-
getXmpFromJcr
@Deprecated public XMPMeta getXmpFromJcr(Node metadataRoot) throws RepositoryException, XMPException
Deprecated.- Throws:
RepositoryException
XMPException
-
storeAsXmp
@Deprecated public void storeAsXmp(ExtractedMetadata metadata, Node metadataRoot, boolean doSave) throws XMPException, RepositoryException
Deprecated.usestoreAsXmp(ExtractedMetadata, Asset, boolean)
instead- Parameters:
metadata
- - map of properties extracted by asset handlermetadataRoot
- - metadata node of assetdoSave
- - whether the repository changes are saved or not- Throws:
XMPException
RepositoryException
-
storeAsXmp
public void storeAsXmp(ExtractedMetadata metadata, Asset asset, boolean doSave) throws XMPException, RepositoryException
- Parameters:
metadata
- - map of properties extracted by asset handlerasset
- - asset to which metadata is to be savedoSave
- - whether the repository changes are saved or not- Throws:
XMPException
RepositoryException
-
storeAsXmp
public void storeAsXmp(ExtractedMetadata metadata, Node metadataRoot) throws XMPException, RepositoryException
- Throws:
XMPException
RepositoryException
-
-