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 storageExternalDatabase
create(ExternalDatabase entity)
Creates the given entity in the persistent storage.List<ExternalDatabase>
findAllByNameIn(List<String> names)
ExternalDatabase
findByName(String name)
ExternalDatabase
findByNameWithAuditTrail(String name)
ExternalDatabase
findByNameWithExternalDatabases(String name)
ExternalDatabase
findOrCreate(ExternalDatabase externalDatabase)
Does a search for the entity in the persistent storage, and if not found, creates it.Collection<ExternalDatabase>
loadAllWithAuditTrail()
ExternalDatabase
loadWithExternalDatabases(Long id)
void
remove(Collection<ExternalDatabase> entities)
Removes all the given entities from persistent storage.void
remove(ExternalDatabase externalDatabase)
Removes the given entity from the persistent storage.void
update(Collection<ExternalDatabase> entities)
Updates all entities in the given collection in the persistent storage.void
update(ExternalDatabase entity)
Updates the given entity in the persistent storage.void
updateReleaseDetails(ExternalDatabase externalDatabase, String releaseVersion, URL releaseUrl, String releaseNote, Date lastUpdated)
void
updateReleaseLastUpdated(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:BaseImmutableService
Creates all the given entities in a persistent storage- Specified by:
create
in 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:BaseImmutableService
Creates the given entity in the persistent storage.- Specified by:
create
in 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:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in 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:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<ExternalDatabase>
- Parameters:
entity
- the entity to be updated.
-
update
@Secured("GROUP_AGENT") void update(Collection<ExternalDatabase> entities)
Description copied from interface:BaseService
Updates all entities in the given collection in the persistent storage.- Specified by:
update
in 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:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<ExternalDatabase>
- Parameters:
externalDatabase
- the entity to be removed.
-
remove
@Secured("GROUP_ADMIN") void remove(Collection<ExternalDatabase> entities)
Description copied from interface:BaseImmutableService
Removes all the given entities from persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<ExternalDatabase>
- Parameters:
entities
- the entities to be removed.
-
findAllByNameIn
List<ExternalDatabase> findAllByNameIn(List<String> names)
-
-