@Service(value="cuba_UserSettingService") public class UserSettingServiceBean extends java.lang.Object implements UserSettingService
Modifier and Type | Field and Description |
---|---|
protected Metadata |
metadata |
protected Persistence |
persistence |
protected Security |
security |
protected UserSessionSource |
userSessionSource |
NAME
Constructor and Description |
---|
UserSettingServiceBean() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.util.UUID,FilterEntity> |
copyFilters(User fromUser,
User toUser) |
protected SearchFolder |
copyFolder(SearchFolder searchFolder,
User toUser,
java.util.Map<SearchFolder,SearchFolder> copiedFolders,
java.util.Map<java.util.UUID,Presentation> presentationsMap) |
protected java.util.Map<java.util.UUID,Presentation> |
copyPresentations(User fromUser,
User toUser) |
void |
copySettings(User fromUser,
User toUser)
Copy user settings to another user
|
protected void |
copyUserFolders(User fromUser,
User toUser,
java.util.Map<java.util.UUID,Presentation> presentationsMap) |
void |
deleteScreenSettings(ClientType clientType,
java.util.Set<java.lang.String> screens)
Delete settings of screens (settings of tables, filters etc) for the current user.
|
void |
deleteSettings(ClientType clientType,
java.lang.String name)
Delete settings for the current user
|
protected UserSetting |
findUserSettings(ClientType clientType,
java.lang.String name) |
protected SearchFolder |
getParent(SearchFolder parentFolder,
User toUser,
java.util.Map<SearchFolder,SearchFolder> copiedFolders,
java.util.Map<java.util.UUID,Presentation> presentationMap) |
java.lang.String |
loadSetting(ClientType clientType,
java.lang.String name)
Load settings for the current user.
|
java.lang.String |
loadSetting(java.lang.String name)
Load settings for the current user and null client type.
|
void |
saveSetting(ClientType clientType,
java.lang.String name,
java.lang.String value)
Save settings for the current user
|
void |
saveSetting(java.lang.String name,
java.lang.String value)
Save settings for the current user and null client type
|
@Inject protected Persistence persistence
@Inject protected UserSessionSource userSessionSource
@Inject protected Metadata metadata
@Inject protected Security security
public java.lang.String loadSetting(java.lang.String name)
UserSettingService
loadSetting
in interface UserSettingService
public java.lang.String loadSetting(ClientType clientType, java.lang.String name)
UserSettingService
loadSetting
in interface UserSettingService
public void saveSetting(java.lang.String name, java.lang.String value)
UserSettingService
saveSetting
in interface UserSettingService
public void saveSetting(ClientType clientType, java.lang.String name, java.lang.String value)
UserSettingService
saveSetting
in interface UserSettingService
public void deleteSettings(ClientType clientType, java.lang.String name)
UserSettingService
deleteSettings
in interface UserSettingService
public void copySettings(User fromUser, User toUser)
UserSettingService
copySettings
in interface UserSettingService
public void deleteScreenSettings(ClientType clientType, java.util.Set<java.lang.String> screens)
UserSettingService
deleteScreenSettings
in interface UserSettingService
clientType
- client typescreens
- set of window ids, whose settings must be deleted@Nullable protected UserSetting findUserSettings(ClientType clientType, java.lang.String name)
protected java.util.Map<java.util.UUID,Presentation> copyPresentations(User fromUser, User toUser)
protected void copyUserFolders(User fromUser, User toUser, java.util.Map<java.util.UUID,Presentation> presentationsMap)
protected SearchFolder copyFolder(SearchFolder searchFolder, User toUser, java.util.Map<SearchFolder,SearchFolder> copiedFolders, java.util.Map<java.util.UUID,Presentation> presentationsMap)
protected SearchFolder getParent(SearchFolder parentFolder, User toUser, java.util.Map<SearchFolder,SearchFolder> copiedFolders, java.util.Map<java.util.UUID,Presentation> presentationMap)
protected java.util.Map<java.util.UUID,FilterEntity> copyFilters(User fromUser, User toUser)