fr.ird.observe.services.service.ReferenceService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolkit-service Show documentation
Show all versions of toolkit-service Show documentation
ObServe Toolkit Service module
The newest version!
package fr.ird.observe.services.service;
/*-
* #%L
* ObServe Toolkit :: Service
* %%
* Copyright (C) 2017 - 2021 Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* .
* #L%
*/
import fr.ird.observe.dto.reference.DataDtoReference;
import fr.ird.observe.dto.reference.DataDtoReferenceSet;
import fr.ird.observe.dto.reference.ReferentialDtoReference;
import fr.ird.observe.dto.reference.ReferentialDtoReferenceSet;
import fr.ird.observe.security.Permission;
import fr.ird.observe.services.spi.MethodCredential;
import io.ultreia.java4all.http.spi.Get;
import io.ultreia.java4all.http.spi.Nullable;
/**
* Created on 10/11/2020.
*
* @author Tony Chemit - [email protected]
* @since 8.0.1
*/
public interface ReferenceService extends ObserveService {
@Get
@MethodCredential(Permission.READ_DATA)
R loadOrCreateData(Class type, @Nullable String id);
@Get
@MethodCredential(Permission.READ_DATA)
R loadData(Class type, String id);
@Get
@MethodCredential(Permission.READ_DATA)
DataDtoReferenceSet loadAllData(Class type);
@Get
@MethodCredential(Permission.READ_REFERENTIAL)
R loadOrCreateReferential(Class type, @Nullable String id);
@Get
@MethodCredential(Permission.READ_REFERENTIAL)
R loadReferential(Class type, String id);
@Get
@MethodCredential(Permission.READ_REFERENTIAL)
ReferentialDtoReferenceSet loadAllReferential(Class type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy