class ContentStreamCommandController extends CommandController (View source)

Properties

protected ContentRepositoryRegistry $contentRepositoryRegistry

Methods

void
exportCommand(string $contentStreamIdentifier, string $contentRepositoryIdentifier = 'default', int $startSequenceNumber = 0)

No description

void
importCommand(string $contentStreamIdentifier, string $file = null)

Imports events to a content stream from the given file.

void
pruneCommand(string $contentRepositoryIdentifier = 'default')

Remove all content streams which are not needed anymore from the projections.

void
pruneRemovedFromEventStreamCommand(string $contentRepositoryIdentifier = 'default')

Remove unused and deleted content streams from the event stream; effectively REMOVING information completely

Details

void exportCommand(string $contentStreamIdentifier, string $contentRepositoryIdentifier = 'default', int $startSequenceNumber = 0)

No description

Parameters

string $contentStreamIdentifier
string $contentRepositoryIdentifier
int $startSequenceNumber

Return Value

void

Exceptions

StopCommandException

void importCommand(string $contentStreamIdentifier, string $file = null)

Imports events to a content stream from the given file.

Note that the events in the file need to come from the same content stream you import to for now!

Parameters

string $contentStreamIdentifier
string $file

Return Value

void

Exceptions

ContentStreamAlreadyExists
WorkspaceAlreadyExists
EventCouldNotBeAppliedException
ExceptionInterface

void pruneCommand(string $contentRepositoryIdentifier = 'default')

Remove all content streams which are not needed anymore from the projections.

NOTE: This still keeps the event stream as is; so it would be possible to re-construct the content stream at a later point in time (though we currently do not provide any API for it).

To remove the deleted Content Streams, use ./flow contentStream:pruneRemovedFromEventStream after running ./flow contentStream:prune.

Parameters

string $contentRepositoryIdentifier

Return Value

void

void pruneRemovedFromEventStreamCommand(string $contentRepositoryIdentifier = 'default')

Remove unused and deleted content streams from the event stream; effectively REMOVING information completely

Parameters

string $contentRepositoryIdentifier

Return Value

void