public interface MetadataEditorHelper
Functionalities:
1. Form selection for asset and array of assets
2. Mimetype of asset or common mimetype for multiple assets
3. Validate metadata for the asset(s)
Modifier and Type | Method and Description |
---|---|
Resource |
getEditorFormResource(Resource... resources)
Gets the merged metadata-editor form which qualifies for the passed
Assets.
|
java.util.List<Resource> |
getInvalidFormItems(Resource resource)
Checks if the resource has valid metadata present in the merged form.
|
Resource getEditorFormResource(Resource... resources)
Example:
If 2 assets are passed in the argument with mimetypes image/png and image/jpg, the merged form will contain [default form + image form]
resources
- Array of asset resources for which form is to be fetchedSlingException
- may be thrown to convey any problem while fetching
the formjava.lang.IllegalArgumentException
- if the method arguments are not
compatible with the implementation detailsjava.util.List<Resource> getInvalidFormItems(Resource resource)
resource
- The Resource for which validity of metadata is to be
checked.SlingException
- may be thrown to convey any problem while fetching
the formjava.lang.IllegalArgumentException
- if the method arguments are not
compatible with the implementation detailsCopyright © 2010 - 2023 Adobe. All Rights Reserved