@Dependent public class SaveAndRenameCommandBuilder<T,M> extends Object
Constructor and Description |
---|
SaveAndRenameCommandBuilder(RenamePopUpPresenter renamePopUpPresenter,
BusyIndicatorView busyIndicatorView,
javax.enterprise.event.Event<NotificationEvent> notification,
javax.enterprise.event.Event<RenameInProgressEvent> renameInProgressEvent) |
@Inject public SaveAndRenameCommandBuilder(RenamePopUpPresenter renamePopUpPresenter, BusyIndicatorView busyIndicatorView, javax.enterprise.event.Event<NotificationEvent> notification, javax.enterprise.event.Event<RenameInProgressEvent> renameInProgressEvent)
public SaveAndRenameCommandBuilder<T,M> addValidator(Validator validator)
public SaveAndRenameCommandBuilder<T,M> addValidator(Supplier<Boolean> validator)
public SaveAndRenameCommandBuilder<T,M> addRenameService(org.jboss.errai.common.client.api.Caller<? extends SupportsSaveAndRename<T,M>> renameCaller)
public SaveAndRenameCommandBuilder<T,M> addPathSupplier(Supplier<Path> pathSupplier)
public SaveAndRenameCommandBuilder<T,M> addMetadataSupplier(Supplier<M> metadataSupplier)
public SaveAndRenameCommandBuilder<T,M> addContentSupplier(Supplier<T> contentSupplier)
public SaveAndRenameCommandBuilder<T,M> addIsDirtySupplier(Supplier<Boolean> isDirtySupplier)
public SaveAndRenameCommandBuilder<T,M> addSuccessCallback(ParameterizedCommand<Path> onSuccess)
public SaveAndRenameCommandBuilder<T,M> addErrorCallback(Command onError)
public SaveAndRenameCommandBuilder<T,M> addBeforeSaveAndRenameCommand(Command beforeSaveAndRenameCommand)
public Command build()
protected CommandWithFileNameAndCommitMessage makeSaveAndRenameCommand()
protected CommandWithFileNameAndCommitMessage makeRenameCommand()
protected void callSaveAndRename(FileNameAndCommitMessage details)
protected void callRename(FileNameAndCommitMessage details)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.