@Internal public interface RepositoryDefinitionDao extends BambooObjectDao<RepositoryDataEntity>
RepositoryDataEntity
Modifier and Type | Method and Description |
---|---|
long |
countAll() |
Collection<? extends RepositoryDataEntity> |
findAll() |
Collection<? extends RepositoryDataEntity> |
findAll(int firstResult,
int maxResults) |
Set<Long> |
findAllRepositoryIds() |
RepositoryDataEntity |
findById(long id) |
List<RepositoryDataEntity> |
findRepositoriesByPluginKey(String pluginKey) |
List<RepositoryDataEntity> |
getGlobalRepositoryDefinitions() |
BambooEntityOid |
getMaxRepositoryOid(int serverKey)
Returns the max
BambooEntityOid that's currently in use of BambooEntityType.REPOSITORY type, with
the given server key. |
Collection<RepositoryDataEntity> |
getPrivateRepositoryDefinitionsByPlan(Plan plan) |
void |
removeRepositoryIfUnused(RepositoryDataEntity repositoryDataEntity) |
void |
removeUnusedRepositories() |
countAll, countWithRestriction, delete, deleteAll, findAll, findById, save, saveAll
@Nullable RepositoryDataEntity findById(long id)
@NotNull Collection<? extends RepositoryDataEntity> findAll()
@NotNull Collection<? extends RepositoryDataEntity> findAll(int firstResult, int maxResults)
long countAll()
@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.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.