| Constructor and Description |
|---|
ManufacturerService() |
| Modifier and Type | Method and Description |
|---|---|
Manufacturer |
createManufacturer(String name,
String address,
String phoneNumber,
String email,
String country,
String userId)
Created manufacturer.
|
boolean |
deleteManufacturer(Manufacturer manufacturer,
String userId)
Marks the manufacturer deleted in the database.
|
List<Manufacturer> |
getFilteredManufacturers(Collection<ManufacturerColumn> fields,
String regExp)
Returns all manufacturers for which at least one of the specified fields matches the given regular expression.
|
List<Manufacturer> |
getFilteredManufacturers(String customQuery,
Query query)
Return a list of filtered manufacturers.
|
Manufacturer |
getManufacturer(String name)
Returns a Manufacturer with the specified name.
|
Manufacturer |
getManufacturerByCode(String code)
Returns a Manufacturer with the specified code.
|
List<Manufacturer> |
getManufacturers() |
boolean |
updateManufacturer(Manufacturer manufacturer,
Manufacturer oldManufacturer,
String userId)
Updates the attributes on the given manufacturer.
|
public List<Manufacturer> getManufacturers()
public List<Manufacturer> getFilteredManufacturers(String customQuery, Query query)
customQuery - custom query for filtering manufacturersquery - query to updatepublic List<Manufacturer> getFilteredManufacturers(Collection<ManufacturerColumn> fields, String regExp)
fields - the list of string fields to checkregExp - regular expression containing only literals, wildcard (*) and single character (?)public Manufacturer getManufacturerByCode(String code)
code - code of the manufacturerpublic Manufacturer getManufacturer(String name)
name - name of the manufacturerpublic Manufacturer createManufacturer(String name, String address, String phoneNumber, String email, String country, String userId)
name - of the manufactureraddress - the manufacturer addressphoneNumber - the contact number of the manufactureremail - the contact email of the manufacturercountry - the country of the manufactureruserId - username of user creating the manufacturer, for history recordpublic boolean updateManufacturer(Manufacturer manufacturer, Manufacturer oldManufacturer, String userId)
manufacturer - the manufacturer with modified attributes to save to the databaseoldManufacturer - the manufacturer before modificationuserId - username of user updating the manufacturer, for history recordpublic boolean deleteManufacturer(Manufacturer manufacturer, String userId)
manufacturer - the manufacturer to deleteuserId - username of user deleting the manufacturer, for history recordCopyright © 2025 European Spallation Source. All rights reserved.