All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.connect.spring.AtlassianHostMappingRepository Maven / Gradle / Ivy

There is a newer version: 5.1.3
Show newest version
package com.atlassian.connect.spring;

import org.springframework.data.repository.CrudRepository;
import org.springframework.lang.NonNull;

import java.util.Optional;

/**
 * A Spring Data repository for
 * associating the Forge installation identifier with the corresponding Connect addon data
 *
 * 

For guidance on configuring persistence for your application, see {@link AtlassianHostRepository}

* * @since 4.1.0 */ public interface AtlassianHostMappingRepository extends CrudRepository { /** * Delete all the mappings that are associated with a specific clientKey * * @param clientKey the associated client key * @return the amount of mappings that were deleted */ long deleteByClientKey(String clientKey); /** * Find the AtlassianHostMapping that is associated with a specific installationId * * @param installationId the associated installationId * @return the clientKey that is associated with the installationId */ @Override @NonNull Optional findById(@NonNull String installationId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy