Class JcrResourceChange
java.lang.Object
org.apache.sling.api.resource.observation.ResourceChange
org.apache.sling.jcr.resource.api.JcrResourceChange
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
ResourceChange.ChangeType
-
Constructor Summary
ConstructorDescriptionJcrResourceChange
(ResourceChange.ChangeType changeType, String path, boolean isExternal, String userId, String userData) -
Method Summary
Modifier and TypeMethodDescriptionGet the user data associated with the underlying JCR observation event (Event.getUserData()
)Get the user id of the user initiating the changeMethods inherited from class org.apache.sling.api.resource.observation.ResourceChange
getAddedPropertyNames, getChangedPropertyNames, getPath, getRemovedPropertyNames, getType, isExternal, toString
-
Constructor Details
-
JcrResourceChange
public JcrResourceChange(ResourceChange.ChangeType changeType, String path, boolean isExternal, String userId, String userData)
-
-
Method Details
-
getUserId
Description copied from class:ResourceChange
Get the user id of the user initiating the change- Overrides:
getUserId
in classResourceChange
- Returns:
- The user id or
null
if it's not available.
-
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
)
-