Class JcrResourceChange
- java.lang.Object
-
- org.apache.sling.api.resource.observation.ResourceChange
-
- org.apache.sling.jcr.resource.api.JcrResourceChange
-
public final class JcrResourceChange extends org.apache.sling.api.resource.observation.ResourceChange
Extension ofResourceChange
to support user id and user data (if available)
-
-
Constructor Summary
Constructors Constructor Description JcrResourceChange(org.apache.sling.api.resource.observation.ResourceChange.ChangeType changeType, String path, boolean isExternal, String userId, String userData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUserData()
Get the user data associated with the underlying JCR observation event (Event.getUserData()
)String
getUserId()
-
-
-
Method Detail
-
getUserId
public String getUserId()
- Overrides:
getUserId
in classorg.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
)
-
-