io.thestencil.client.api.DeleteBuilder Maven / Gradle / Ivy
The newest version!
package io.thestencil.client.api;
/*-
* #%L
* stencil-persistence-api
* %%
* Copyright (C) 2021 Copyright 2021 ReSys OÜ
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import org.immutables.value.Value;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.smallrye.mutiny.Uni;
import io.thestencil.client.api.StencilClient.Article;
import io.thestencil.client.api.StencilClient.Entity;
import io.thestencil.client.api.StencilClient.Link;
import io.thestencil.client.api.StencilClient.Locale;
import io.thestencil.client.api.StencilClient.Page;
import io.thestencil.client.api.StencilClient.Release;
import io.thestencil.client.api.StencilClient.Template;
import io.thestencil.client.api.StencilClient.Workflow;
public interface DeleteBuilder {
Uni> locale(String localeId);
Uni> article(String articleId);
Uni> page(String pageId);
Uni> link(String linkId);
Uni> linkArticlePage(LinkArticlePage linkArticlePage);
Uni> template(String templateId);
Uni> workflow(String workflowId);
Uni> workflowArticlePage(WorkflowArticlePage workflowArticlePage);
Uni> release(String releaseId);
@Value.Immutable
@JsonSerialize(as = ImmutableLinkArticlePage.class)
@JsonDeserialize(as = ImmutableLinkArticlePage.class)
interface LinkArticlePage {
String getLinkId();
String getArticleId();
}
@Value.Immutable
@JsonSerialize(as = ImmutableWorkflowArticlePage.class)
@JsonDeserialize(as = ImmutableWorkflowArticlePage.class)
interface WorkflowArticlePage {
String getWorkflowId();
String getArticleId();
}
}