Class AuditLevelService
java.lang.Object
com.eurodyn.qlack.fuse.audit.service.AuditLevelService
Provides Audit level CRUD functionality
- Author:
- European Dynamics SA.
-
Constructor Summary
ConstructorDescriptionAuditLevelService
(AuditLevelRepository auditLevelRepository, AuditLevelMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionaddLevel
(AuditLevelDTO level) Adds a new Audit LeveladdLevelIfNotExists
(AuditLevelDTO level) void
deleteLevelById
(String levelId) Deletes Audit level with specific idvoid
deleteLevelByName
(String levelName) Deletes Audit level with specific namegetAuditLevelByName
(String levelName) Finds the persisted Audit level based on its nameRetrieves all persisted Audit levelsvoid
updateLevel
(AuditLevelDTO level) Updates level with new data
-
Constructor Details
-
AuditLevelService
-
-
Method Details
-
addLevel
Adds a new Audit Level- Parameters:
level
- DTO containing all information of the persisted level- Returns:
- the id of the newly created Audit level
-
addLevelIfNotExists
-
deleteLevelById
Deletes Audit level with specific id- Parameters:
levelId
- the id of the level to delete
-
deleteLevelByName
Deletes Audit level with specific name- Parameters:
levelName
- the name of the level to delete
-
updateLevel
Updates level with new data- Parameters:
level
- DTO containing the updated information
-
getAuditLevelByName
Finds the persisted Audit level based on its name- Parameters:
levelName
- the name of the persisted Audit level- Returns:
- the persisted Audit Level
-
listAuditLevels
Retrieves all persisted Audit levels- Returns:
- a list containing all existing Audit levels
-