public class DefaultContentEvent extends Object implements ContentEvent
A container class that to be used in the ContentListener
implementations. It holds the content reference(s) involved in the content management operation as well as the
content metadata, the content scope and the content manager that triggered the event.
ContentManager
Modifier and Type | Class and Description |
---|---|
static class |
DefaultContentEvent.Builder
The Builder class of the
DefaultContentEvent . |
ContentEvent.Type
Modifier and Type | Method and Description |
---|---|
static DefaultContentEvent.Builder |
builder()
Builder method to build ContentEvent instances.
|
boolean |
equals(Object o) |
ContentEvent.Type |
getContentEventType()
Gets the
ContentEvent.Type of the event |
ContentManager |
getContentManager()
Gets the content manager that triggered the event.
|
ContentScope |
getContentScope()
Gets the content scope from the content involved in the event.
|
Optional<ContentMetadata> |
getNewContentMetadata()
Gets the current content metadata from the content involved in the event.
|
ContentReference |
getNewContentReference()
Gets the current content reference from the content involved in the event.
|
Optional<ContentMetadata> |
getOldContentMetadata()
Gets the previous content metadata from the content involved in the event.
|
Optional<ContentReference> |
getOldContentReference()
Gets the previous content reference from the content involved in the event.
|
int |
hashCode() |
public ContentEvent.Type getContentEventType()
ContentEvent
Gets the ContentEvent.Type
of the event
getContentEventType
in interface ContentEvent
public ContentReference getNewContentReference()
ContentEvent
Gets the current content reference from the content involved in the event.
getNewContentReference
in interface ContentEvent
public Optional<ContentReference> getOldContentReference()
ContentEvent
Gets the previous content reference from the content involved in the event. If there is no previous content, Optional#absent()
is returned.
getOldContentReference
in interface ContentEvent
public Optional<ContentMetadata> getNewContentMetadata()
ContentEvent
Gets the current content metadata from the content involved in the event. If the content metadata is not available, Optional#absent()
is returned.
getNewContentMetadata
in interface ContentEvent
public Optional<ContentMetadata> getOldContentMetadata()
ContentEvent
Gets the previous content metadata from the content involved in the event. If there is no previous content, Optional#absent()
is returned.
getOldContentMetadata
in interface ContentEvent
public ContentScope getContentScope()
ContentEvent
Gets the content scope from the content involved in the event.
getContentScope
in interface ContentEvent
public ContentManager getContentManager()
ContentEvent
Gets the content manager that triggered the event.
getContentManager
in interface ContentEvent
public static DefaultContentEvent.Builder builder()
Builder method to build ContentEvent instances.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.