public class ResourceBackedPojoChangeMonitor extends Object implements org.apache.sling.api.resource.observation.ResourceChangeListener, org.apache.sling.api.resource.observation.ExternalResourceChangeListener
| Constructor and Description |
|---|
ResourceBackedPojoChangeMonitor() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModifiedDateForJavaUseObject(String path)
Returns the last modified date for a Java Use-API object stored in the repository.
|
void |
onChange(@NotNull List<org.apache.sling.api.resource.observation.ResourceChange> changes) |
void |
recordLastModifiedTimestamp(String path,
long timestamp)
Records the usage of the Use-object available at the provided
path. |
public void recordLastModifiedTimestamp(String path, long timestamp)
path.path - the path of the Use-objecttimestamp - the timestamp when the object identified by the resource from path was last modifiedpublic long getLastModifiedDateForJavaUseObject(String path)
path - the Resource path of the Use-objectpublic void onChange(@NotNull
@NotNull List<org.apache.sling.api.resource.observation.ResourceChange> changes)
onChange in interface org.apache.sling.api.resource.observation.ResourceChangeListenerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.