de.knightsoftnet.mtwidgets.client.services.AdminService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-mt-widgets-spring-gwtp Show documentation
Show all versions of gwt-mt-widgets-spring-gwtp Show documentation
A set of widgets and handlers using server calls for gwt applications using gwt-bean-validators-spring-gwtp.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You 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.
*/
package de.knightsoftnet.mtwidgets.client.services;
import de.knightsoftnet.gwtp.spring.shared.data.AdminResult;
import de.knightsoftnet.gwtp.spring.shared.data.DeserializeablePage;
import de.knightsoftnet.validators.shared.Parameters;
import org.springframework.data.domain.Persistable;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
/**
* Definition of administration service.
*
* @author Manfred Tremmel
*/
public interface AdminService> {
@GET
AdminResult getEntry();
@GET
@Path("/{" + Parameters.ID + "}")
AdminResult getEntryById(@PathParam(Parameters.ID) final Long pid);
@GET
@Path("/" + Parameters.SEARCH + "/{" + Parameters.LANGUAGE + "}")
DeserializeablePage search(@PathParam(Parameters.LANGUAGE) final String planguage,
@QueryParam(Parameters.SEARCH) final String search);
@GET
@Path("/" + Parameters.SEARCH + "/{" + Parameters.LANGUAGE + "}")
DeserializeablePage searchPaging(@PathParam(Parameters.LANGUAGE) final String planguage,
@QueryParam(Parameters.SEARCH) final String search,
@QueryParam(Parameters.PAGE) final int page, @QueryParam(Parameters.SIZE) final int size);
@GET
@Path("/" + Parameters.SEARCH + "/{" + Parameters.LANGUAGE + "}")
DeserializeablePage searchPagingAndSorting(
@PathParam(Parameters.LANGUAGE) final String planguage,
@QueryParam(Parameters.SEARCH) final String search,
@QueryParam(Parameters.PAGE) final int page, @QueryParam(Parameters.SIZE) final int size,
@QueryParam(Parameters.SORT) final String sort);
@POST
AdminResult createEntry(final T pentry);
@PUT
@Path("/{" + Parameters.ID + "}")
AdminResult changeEntry(@PathParam(Parameters.ID) final Long pid, final T pentry);
@DELETE
@Path("/{" + Parameters.ID + "}")
AdminResult deleteEntry(@PathParam(Parameters.ID) final Long pid);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy