Interface ExternalDatabaseService
-
- All Superinterfaces:
BaseImmutableService<ExternalDatabase>,BaseReadOnlyService<ExternalDatabase>,BaseService<ExternalDatabase>
- All Known Implementing Classes:
ExternalDatabaseServiceImpl
public interface ExternalDatabaseService extends BaseService<ExternalDatabase>
- Author:
- Gemma
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<ExternalDatabase>create(Collection<ExternalDatabase> entities)Creates all the given entities in a persistent storageExternalDatabasecreate(ExternalDatabase entity)Creates the given entity in the persistent storage.List<ExternalDatabase>findAllByNameIn(List<String> names)ExternalDatabasefindByName(String name)ExternalDatabasefindByNameWithAuditTrail(String name)ExternalDatabasefindByNameWithExternalDatabases(String name)ExternalDatabasefindOrCreate(ExternalDatabase externalDatabase)Does a search for the entity in the persistent storage, and if not found, creates it.Collection<ExternalDatabase>loadAllWithAuditTrail()ExternalDatabaseloadWithExternalDatabases(Long id)voidremove(Collection<ExternalDatabase> entities)Removes all the given entities from persistent storage.voidremove(ExternalDatabase externalDatabase)Removes the given entity from the persistent storage.voidupdate(Collection<ExternalDatabase> entities)Updates all entities in the given collection in the persistent storage.voidupdate(ExternalDatabase entity)Updates the given entity in the persistent storage.voidupdateReleaseDetails(ExternalDatabase externalDatabase, String releaseVersion, URL releaseUrl, String releaseNote, Date lastUpdated)voidupdateReleaseLastUpdated(ExternalDatabase externalDatabase, String note, Date lastUpdated)-
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
remove
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save
-
-
-
-
Method Detail
-
loadAllWithAuditTrail
@Secured("GROUP_ADMIN") Collection<ExternalDatabase> loadAllWithAuditTrail()
-
create
@Secured("GROUP_ADMIN") Collection<ExternalDatabase> create(Collection<ExternalDatabase> entities)Description copied from interface:BaseImmutableServiceCreates all the given entities in a persistent storage- Specified by:
createin interfaceBaseImmutableService<ExternalDatabase>- Parameters:
entities- the entities to be created.- Returns:
- collection of objects referencing the persistent instances of given entities.
-
create
@Secured("GROUP_ADMIN") ExternalDatabase create(ExternalDatabase entity)Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<ExternalDatabase>- Parameters:
entity- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
loadWithExternalDatabases
ExternalDatabase loadWithExternalDatabases(Long id)
-
findByName
ExternalDatabase findByName(String name)
-
findByNameWithExternalDatabases
ExternalDatabase findByNameWithExternalDatabases(String name)
-
findByNameWithAuditTrail
@Secured("GROUP_AGENT") ExternalDatabase findByNameWithAuditTrail(String name)
-
findOrCreate
@Secured("GROUP_ADMIN") ExternalDatabase findOrCreate(ExternalDatabase externalDatabase)Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<ExternalDatabase>- Parameters:
externalDatabase- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
update
@Secured("GROUP_AGENT") void update(ExternalDatabase entity)Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<ExternalDatabase>- Parameters:
entity- the entity to be updated.
-
update
@Secured("GROUP_AGENT") void update(Collection<ExternalDatabase> entities)Description copied from interface:BaseServiceUpdates all entities in the given collection in the persistent storage.- Specified by:
updatein interfaceBaseService<ExternalDatabase>- Parameters:
entities- the entities to be updated.
-
updateReleaseDetails
@Secured("GROUP_AGENT") void updateReleaseDetails(ExternalDatabase externalDatabase, String releaseVersion, @Nullable URL releaseUrl, @Nullable String releaseNote, Date lastUpdated)
-
updateReleaseLastUpdated
@Secured("GROUP_AGENT") void updateReleaseLastUpdated(ExternalDatabase externalDatabase, @Nullable String note, Date lastUpdated)
-
remove
@Secured("GROUP_ADMIN") void remove(ExternalDatabase externalDatabase)Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<ExternalDatabase>- Parameters:
externalDatabase- the entity to be removed.
-
remove
@Secured("GROUP_ADMIN") void remove(Collection<ExternalDatabase> entities)Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<ExternalDatabase>- Parameters:
entities- the entities to be removed.
-
findAllByNameIn
List<ExternalDatabase> findAllByNameIn(List<String> names)
-
-