Search in sources :

Example 1 with BookmarksParametersBase

use of org.ovirt.engine.core.common.action.BookmarksParametersBase in project ovirt-engine by oVirt.

the class BookmarkListModel method onRemove.

public void onRemove() {
    Bookmark selectedBookmark = (Bookmark) getSelectedItem();
    BookmarksParametersBase parameters = new BookmarksParametersBase(selectedBookmark.getId());
    IFrontendActionAsyncCallback async = result -> postOnSave(result.getReturnValue());
    getWindow().startProgress();
    Frontend.getInstance().runAction(ActionType.RemoveBookmark, parameters, async);
}
Also used : QueryType(org.ovirt.engine.core.common.queries.QueryType) Guid(org.ovirt.engine.core.compat.Guid) IFrontendActionAsyncCallback(org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback) HelpTag(org.ovirt.engine.ui.uicommonweb.help.HelpTag) Event(org.ovirt.engine.ui.uicompat.Event) ActionReturnValue(org.ovirt.engine.core.common.action.ActionReturnValue) SearchableListModel(org.ovirt.engine.ui.uicommonweb.models.SearchableListModel) ConfirmationModel(org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel) ArrayList(java.util.ArrayList) AsyncCallback(org.ovirt.engine.ui.frontend.AsyncCallback) ActionType(org.ovirt.engine.core.common.action.ActionType) Frontend(org.ovirt.engine.ui.frontend.Frontend) BookmarksOperationParameters(org.ovirt.engine.core.common.action.BookmarksOperationParameters) ConstantsManager(org.ovirt.engine.ui.uicompat.ConstantsManager) EventArgs(org.ovirt.engine.ui.uicompat.EventArgs) QueryParametersBase(org.ovirt.engine.core.common.queries.QueryParametersBase) QueryReturnValue(org.ovirt.engine.core.common.queries.QueryReturnValue) BookmarksParametersBase(org.ovirt.engine.core.common.action.BookmarksParametersBase) UICommand(org.ovirt.engine.ui.uicommonweb.UICommand) Bookmark(org.ovirt.engine.core.common.businessentities.Bookmark) Serializable(java.io.Serializable) List(java.util.List) EventDefinition(org.ovirt.engine.ui.uicompat.EventDefinition) Comparator(java.util.Comparator) Collections(java.util.Collections) Bookmark(org.ovirt.engine.core.common.businessentities.Bookmark) IFrontendActionAsyncCallback(org.ovirt.engine.ui.uicompat.IFrontendActionAsyncCallback) BookmarksParametersBase(org.ovirt.engine.core.common.action.BookmarksParametersBase)

Aggregations

Serializable (java.io.Serializable)1 ArrayList (java.util.ArrayList)1 Collections (java.util.Collections)1 Comparator (java.util.Comparator)1 List (java.util.List)1 ActionReturnValue (org.ovirt.engine.core.common.action.ActionReturnValue)1 ActionType (org.ovirt.engine.core.common.action.ActionType)1 BookmarksOperationParameters (org.ovirt.engine.core.common.action.BookmarksOperationParameters)1 BookmarksParametersBase (org.ovirt.engine.core.common.action.BookmarksParametersBase)1 Bookmark (org.ovirt.engine.core.common.businessentities.Bookmark)1 QueryParametersBase (org.ovirt.engine.core.common.queries.QueryParametersBase)1 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)1 QueryType (org.ovirt.engine.core.common.queries.QueryType)1 Guid (org.ovirt.engine.core.compat.Guid)1 AsyncCallback (org.ovirt.engine.ui.frontend.AsyncCallback)1 Frontend (org.ovirt.engine.ui.frontend.Frontend)1 UICommand (org.ovirt.engine.ui.uicommonweb.UICommand)1 HelpTag (org.ovirt.engine.ui.uicommonweb.help.HelpTag)1 ConfirmationModel (org.ovirt.engine.ui.uicommonweb.models.ConfirmationModel)1 SearchableListModel (org.ovirt.engine.ui.uicommonweb.models.SearchableListModel)1