001/*
002 * Copyright 2013 Global Biodiversity Information Facility (GBIF)
003 * Licensed under the Apache License, Version 2.0 (the "License");
004 * you may not use this file except in compliance with the License.
005 * You may obtain a copy of the License at
006 * http://www.apache.org/licenses/LICENSE-2.0
007 * Unless required by applicable law or agreed to in writing, software
008 * distributed under the License is distributed on an "AS IS" BASIS,
009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
010 * See the License for the specific language governing permissions and
011 * limitations under the License.
012 */
013package org.gbif.api.model.registry;
014
015import java.util.List;
016import javax.validation.constraints.NotNull;
017
018/**
019 * Generic endpoint interface for entities.
020 */
021public interface Endpointable {
022
023  @NotNull
024  List<Endpoint> getEndpoints();
025
026  void setEndpoints(List<Endpoint> endpoints);
027
028  void addEndpoint(Endpoint endpoint);
029
030}