Search in sources :

Example 1 with PanelDto

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);
}
Also used : IdmProfileDto(eu.bcvsolutions.idm.core.api.dto.IdmProfileDto) ConfigurationMap(eu.bcvsolutions.idm.core.api.domain.ConfigurationMap) PanelDto(eu.bcvsolutions.idm.core.api.dto.PanelDto)

Aggregations

ConfigurationMap (eu.bcvsolutions.idm.core.api.domain.ConfigurationMap)1 IdmProfileDto (eu.bcvsolutions.idm.core.api.dto.IdmProfileDto)1 PanelDto (eu.bcvsolutions.idm.core.api.dto.PanelDto)1