public class RolleAPI extends AEntityAPI<Rolle>
Rolle
entities.entityClass
Constructor and Description |
---|
RolleAPI() |
Modifier and Type | Method and Description |
---|---|
Rolle |
addModulToRolle(UserContext uc,
Rolle rolle,
Modul newModul)
Method for adding a module to a existing role.
|
Rolle |
getAdminRolle(UserContext uc,
Mandant mandant)
Method for determining a admin role of a client.
|
List<Rolle> |
getRollenByModul(UserContext uc,
Modul modul)
Method for determining all roles by a module.
|
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getBy, getById, getById, resultTotalCount, update, update
getHandlerProvider
public List<Rolle> getRollenByModul(UserContext uc, Modul modul)
uc
- UserContext
the user context in which the action is to be performed.modul
- Modul
whose roles are to be determined.List
of Rolle
s which were found.public Rolle getAdminRolle(UserContext uc, Mandant mandant)
uc
- UserContext
the user context in which the action is to be performed.mandant
- Mandant
whose admin role is wanted.Rolle
the client's admin.public Rolle addModulToRolle(UserContext uc, Rolle rolle, Modul newModul)
uc
- UserContext
the user context in which the action is to be performed.rolle
- Rolle
to which the module should be added.newModul
- Modul
which should be added.Rolle
with the added Modul
.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.