Package de.xima.fc.api.entity
Class RolleAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<Rolle>
-
- de.xima.fc.api.entity.RolleAPI
-
public class RolleAPI extends AEntityAPI<Rolle>
API class for manipulation ofRolleentities.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description RolleAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RolleaddModulToRolle(UserContext uc, Rolle rolle, Modul newModul)Method for adding a module to a existing role.RollegetAdminRolle(UserContext uc, Mandant mandant)Method for determining a admin role of a client.RollegetByUUID(UserContext uc, Mandant client, String uuid)Returns the role with the given UUIDRollegetByUUID(UserContext uc, Mandant client, UUID uuid)Returns the role with the given UUIDList<Rolle>getRollenByModul(UserContext uc, Modul modul)Method for determining all roles by a module.-
Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
getRollenByModul
public List<Rolle> getRollenByModul(UserContext uc, Modul modul)
Method for determining all roles by a module.- Parameters:
uc-UserContextthe user context in which the action is to be performed.modul-Modulwhose roles are to be determined.- Returns:
ListofRolles which were found.- Since:
- 2.4.3
-
getAdminRolle
public Rolle getAdminRolle(UserContext uc, Mandant mandant)
Method for determining a admin role of a client.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantwhose admin role is wanted.- Returns:
Rollethe client's admin.- Since:
- 2.4.3
-
getByUUID
public Rolle getByUUID(UserContext uc, Mandant client, String uuid)
Returns the role with the given UUID- Parameters:
uc-UserContextto useclient-Mandantcontext in which to look for roleuuid-StringUUID of the role- Returns:
Rollefor the given UUID and client- Since:
- 6.x.x
-
getByUUID
public Rolle getByUUID(UserContext uc, Mandant client, UUID uuid)
Returns the role with the given UUID- Parameters:
uc-UserContextto useclient-Mandantcontext in which to look for roleuuid-UUIDUUID of the role- Returns:
Rollefor the given UUID and client- Since:
- 6.x.x
-
addModulToRolle
public Rolle addModulToRolle(UserContext uc, Rolle rolle, Modul newModul)
Method for adding a module to a existing role.- Parameters:
uc-UserContextthe user context in which the action is to be performed.rolle-Rolleto which the module should be added.newModul-Modulwhich should be added.- Returns:
Rollewith the addedModul.- Since:
- 2.4.3
-
-