Extend Assets Metadata Editor
While using the below code to get the asset path getting null pointer . Can anybody help me is there any other way to get the asset path?
public class ExamplePostProcessor implements SlingPostProcessor {
@Override
public void process(final SlingHttpServletRequest request, final List<Modification> modifications){
try {
final String assetPath = request.getRequestURI();// this method not giving the required assetPath.It is giving content/dam.html
final Resource rr = request.getResourceResolver().getResource(assetPath);
.......
}
}
Requirement is onclick of save&close button in metada editor it should save all the metadat in a external DB.