Class JcrResourceChange

java.lang.Object
org.apache.sling.api.resource.observation.ResourceChange
org.apache.sling.jcr.resource.api.JcrResourceChange

public final class JcrResourceChange extends ResourceChange
Extension of ResourceChange to support user id and user data (if available)
  • Constructor Details

  • Method Details

    • getUserId

      public String getUserId()
      Description copied from class: ResourceChange
      Get the user id of the user initiating the change
      Overrides:
      getUserId in class ResourceChange
      Returns:
      The user id or null if it's not available.
    • getUserData

      public String getUserData()
      Get the user data associated with the underlying JCR observation event (Event.getUserData())
      Returns:
      the JCR observation event's user data (may be null)