public static final class DefaultContentEvent.Builder extends Object
The Builder class of the DefaultContentEvent.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ContentEvent |
build()
Build method of the content event builder.
|
DefaultContentEvent.Builder |
contentEventType(ContentEvent.Type type) |
DefaultContentEvent.Builder |
contentManager(ContentManager contentManager)
Builder method to set the content manager that triggered the event.
|
DefaultContentEvent.Builder |
contentScope(ContentScope contentScope)
Builder method to set the content scope.
|
DefaultContentEvent.Builder |
newContentMetadata(ContentMetadata contentMetadata)
Builder method to set the current content metadata.
|
DefaultContentEvent.Builder |
newContentReference(ContentReference contentReference)
Builder method to set the current content reference.
|
DefaultContentEvent.Builder |
oldContentMetadata(ContentMetadata oldContentMetadata)
Builder method to set the previous content metadata.
|
DefaultContentEvent.Builder |
oldContentReference(ContentReference oldContentReference)
Builder method to set the previous content reference.
|
public DefaultContentEvent.Builder contentEventType(ContentEvent.Type type)
public DefaultContentEvent.Builder newContentReference(ContentReference contentReference)
Builder method to set the current content reference.
contentReference - the content reference of the eventpublic DefaultContentEvent.Builder oldContentReference(ContentReference oldContentReference)
Builder method to set the previous content reference. If this method is not called before calling build(), the old content reference is not set.
oldContentReference - the old content referencepublic DefaultContentEvent.Builder newContentMetadata(ContentMetadata contentMetadata)
Builder method to set the current content metadata. If this method is not called before calling build(), the content metadata is not set.
contentMetadata - the content metadata of the eventpublic DefaultContentEvent.Builder oldContentMetadata(ContentMetadata oldContentMetadata)
Builder method to set the previous content metadata. If this method is not called before calling build(), the old content metadata is not set.
oldContentMetadata - the old content metadatapublic DefaultContentEvent.Builder contentScope(ContentScope contentScope)
Builder method to set the content scope.
contentScope - the content scope of the eventpublic DefaultContentEvent.Builder contentManager(ContentManager contentManager)
Builder method to set the content manager that triggered the event.
contentManager - the content manager that triggered the eventpublic ContentEvent build()
Build method of the content event builder.
IllegalArgumentException - if any of the following methods are not called previously: type, newContentReference, contentScope and contentManager.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.