use of eu.bcvsolutions.idm.core.api.dto.PanelDto in project CzechIdMng by bcvsolutions.
the class DefaultIdmProfileService method setPanelCollapsed.
private IdmProfileDto setPanelCollapsed(Serializable identityIdentifier, String panelIdentifier, boolean collapsed, BasePermission... permission) {
IdmProfileDto profile = findOrCreateByIdentity(identityIdentifier, permission);
//
ConfigurationMap setting = profile.getSetting();
PanelDto panel = (PanelDto) setting.get(panelIdentifier);
if (panel == null) {
panel = new PanelDto(panelIdentifier);
}
panel.setCollapsed(collapsed);
setting.put(panelIdentifier, panel);
profile.setSetting(setting);
//
return save(profile, permission);
}
Aggregations