public interface ProjectListener
extends java.util.EventListener
Modifier and Type | Method and Description |
---|---|
void |
projectAdded(Project stagingVersion,
Project publishedVersion)
Called when a new project is added.
|
void |
projectDeleted(long id)
Called when a project is deleted.
|
void |
projectUpdated(Project project,
ProjectVersion version)
Called after a project is changed.
|
void projectAdded(Project stagingVersion, Project publishedVersion)
void projectDeleted(long id)
void projectUpdated(Project project, ProjectVersion version)
Called after a project is changed. Important: this can be used in two different ways:
The way to differentiate between these two use cases is by comparing the UUID of the project to what you received last time. Any time the UUID changes, you know that the project has been overwritten and should consider it to be a full project update, not a diff.
project
- A project diff representing the changes to the project, or a full copy of the project,
depending on whether this update was caused by a save or an upload/overwrite.
Any of the base level properties (name, title, etc) may have changed, and this diff will
contain the new values, as well as any dirty and/or deleted resources.version
- What version of the project this change represents. A "Staging" change is caused by a save, a
"Publish" change is caused by a publish.