| Constructor and Description |
|---|
InstallationPackageService() |
| Modifier and Type | Method and Description |
|---|---|
InstallationPackage |
createInstallationPackage(InstallationPackage installationPackage,
String userId)
Creates an installation package in the database and returns it.
|
boolean |
deleteInstallationPackage(InstallationPackage installationPackage,
String userId)
Marks the installation package deleted in the database.
|
void |
detachAllInstallationPackages()
Performs clearing of the persistance context, thus detaching all entities.
|
void |
detachInstallationPackage(InstallationPackage installationPackage)
Detaches a single installation package from entity manager
|
List<InstallationPackage> |
getActiveInstallationPackages() |
InstallationPackage |
getInstallationPackageById(Long id)
Returns an installation package with the specified installation package id.
|
InstallationPackage |
getInstallationPackageByName(String name)
Returns an installation package with the specified installation package name.
|
List<InstallationPackage> |
getInstallationPackages() |
boolean |
updateInstallationPackage(InstallationPackage installationPackage,
InstallationPackage oldInstallationPackage,
String userId)
Updates the attributes on the given installation package.
|
public List<InstallationPackage> getInstallationPackages()
public List<InstallationPackage> getActiveInstallationPackages()
public InstallationPackage getInstallationPackageByName(String name)
name - the installation package namepublic InstallationPackage getInstallationPackageById(Long id)
id - the installation package idpublic InstallationPackage createInstallationPackage(InstallationPackage installationPackage, String userId)
installationPackage - the installation package to adduserId - userId of user creating the installation package, for history recordpublic boolean updateInstallationPackage(InstallationPackage installationPackage, InstallationPackage oldInstallationPackage, String userId)
installationPackage - the installation package with modified attributes to save to the databaseoldInstallationPackage - the installation package before modificationuserId - userId of user updating the installation package, for history recordpublic boolean deleteInstallationPackage(InstallationPackage installationPackage, String userId)
installationPackage - the installation package to deleteuserId - userid of user deleting the installation package, for history recordpublic void detachAllInstallationPackages()
public void detachInstallationPackage(InstallationPackage installationPackage)
installationPackage - the installation package to detachCopyright © 2025 European Spallation Source. All rights reserved.