Class JcrResourceChange


  • public final class JcrResourceChange
    extends org.apache.sling.api.resource.observation.ResourceChange
    Extension of ResourceChange to support user id and user data (if available)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.sling.api.resource.observation.ResourceChange

        org.apache.sling.api.resource.observation.ResourceChange.ChangeType
    • Constructor Summary

      Constructors 
      Constructor Description
      JcrResourceChange​(org.apache.sling.api.resource.observation.ResourceChange.ChangeType changeType, String path, boolean isExternal, String userId, String userData)  
    • Constructor Detail

      • JcrResourceChange

        public JcrResourceChange​(org.apache.sling.api.resource.observation.ResourceChange.ChangeType changeType,
                                 String path,
                                 boolean isExternal,
                                 String userId,
                                 String userData)
    • Method Detail

      • getUserId

        public String getUserId()
        Overrides:
        getUserId in class org.apache.sling.api.resource.observation.ResourceChange
      • 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)