public class ResourceChange
extends java.lang.Object
ExternalResourceChangeListener.
For all events (local and external), the path and the type of change is
set.
Resource provider events are always local events and only provide the path.
Local events for resources provide the names of the properties that
have been added, removed or changed. This information might be missing
for external events.| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceChange.ChangeType
The type of the change
|
| Constructor and Description |
|---|
ResourceChange(ResourceChange.ChangeType changeType,
java.lang.String path,
boolean isExternal,
java.util.Set<java.lang.String> addedPropertyNames,
java.util.Set<java.lang.String> changedPropertyNames,
java.util.Set<java.lang.String> removedPropertyNames)
Create a new change object
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAddedPropertyNames()
Optional information about added properties.
|
java.util.Set<java.lang.String> |
getChangedPropertyNames()
Optional information about changed properties.
|
java.lang.String |
getPath()
Get the resource path.
|
java.util.Set<java.lang.String> |
getRemovedPropertyNames()
Optional information about removed properties.
|
ResourceChange.ChangeType |
getType()
Get the type of change
|
java.lang.String |
getUserId()
Get the user id of the user initiating the change
|
boolean |
isExternal()
Is this an external event?
|
public ResourceChange(ResourceChange.ChangeType changeType, java.lang.String path, boolean isExternal, java.util.Set<java.lang.String> addedPropertyNames, java.util.Set<java.lang.String> changedPropertyNames, java.util.Set<java.lang.String> removedPropertyNames)
changeType - The change typepath - The resource pathisExternal - {code true} if the change happened on another nodeaddedPropertyName - set of added property names, if provided must be immutablechangedPropertyNames - set of added property names, if provided must be immutableremovedPropertyNames - set of added property names, if provided must be immutablepublic java.lang.String getPath()
public java.lang.String getUserId()
null if it's not available.public boolean isExternal()
true if the event is external.public ResourceChange.ChangeType getType()
public java.util.Set<java.lang.String> getChangedPropertyNames()
null is returned.public java.util.Set<java.lang.String> getAddedPropertyNames()
null is returned.public java.util.Set<java.lang.String> getRemovedPropertyNames()
null is returned."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"