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()
ContentEventGets the ContentEvent.Type of the event
getContentEventType in interface ContentEventpublic ContentReference getNewContentReference()
ContentEventGets the current content reference from the content involved in the event.
getNewContentReference in interface ContentEventpublic Optional<ContentReference> getOldContentReference()
ContentEventGets the previous content reference from the content involved in the event. If there is no previous content, Optional#absent() is returned.
getOldContentReference in interface ContentEventpublic Optional<ContentMetadata> getNewContentMetadata()
ContentEventGets 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 ContentEventpublic Optional<ContentMetadata> getOldContentMetadata()
ContentEventGets the previous content metadata from the content involved in the event. If there is no previous content, Optional#absent() is returned.
getOldContentMetadata in interface ContentEventpublic ContentScope getContentScope()
ContentEventGets the content scope from the content involved in the event.
getContentScope in interface ContentEventpublic ContentManager getContentManager()
ContentEventGets the content manager that triggered the event.
getContentManager in interface ContentEventpublic static DefaultContentEvent.Builder builder()
Builder method to build ContentEvent instances.
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.