@Internal public interface RepositoryDefinitionDao extends BambooObjectWithOidDao<RepositoryDataEntity>
RepositoryDataEntity
findByOid
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable RepositoryDataEntity findById(long id)
@NotNull Collection<? extends RepositoryDataEntity> findAll()
@NotNull Collection<? extends RepositoryDataEntity> findAll(int firstResult, int maxResults)
@NotNull Collection<? extends RepositoryDataEntity> findAllByParent(@Nullable Long parentId, int firstResult, int maxResult)
long countAll()
long countAllByParent(@Nullable Long parentId)
@NotNull List<RepositoryDataEntity> findRepositoriesByPluginKey(@NotNull String pluginKey)
void removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity)
void removeUnusedRepositories()
@NotNull Collection<RepositoryDataEntity> getPrivateRepositoryDefinitionsByPlan(Plan plan)
@NotNull List<RepositoryDataEntity> getGlobalRepositoryDefinitions()
@Nullable BambooEntityOid getMaxRepositoryOid(int serverKey)
BambooEntityOid
that's currently in use of BambooEntityType.REPOSITORY
type, with
the given server key.
Returns null if no OIDs are in use of this type with the given server key.@Nullable RepositoryDataEntity findLinkedRepositoryByName(@NotNull String name)
name
- Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.