getGroupName
Versionshinweise | 24.4 |
---|
Code
String getGroupName(IEmployeeSyncGroup employeeSyncGroup)
Beschreibung
Liest den Gruppen-Namen aus der IEmployeeSyncGroup
Parameter
employeeSyncGroup
- Das IEmployeeSyncGroup Objekt
Rückgabe
Der Gruppen-Name als String
Beispiele
List<IEmployeeSyncUser> syncUsers = EmployeeSyncUtils.getUsers();
List<String> userSyncIds = new ArrayList<>();
for(IEmployeeSyncUser syncUser : syncUsers)
{
String msg = EmployeeSyncUtils.getUserLastName(syncUser) + "\n";
List<IEmployeeSyncGroup> syncGroups = EmployeeSyncUtils.getUserGroups(syncUser);
for (IEmployeeSyncGroup syncGroup : syncGroups)
{
msg += EmployeeSyncUtils.getGroupSyncId(syncGroup) + "\n";
}
ScriptUtils.debug("group name: " + msg);
}