Package io.meeds.portal.security.service
Class SecuritySettingService
java.lang.Object
io.meeds.portal.security.service.SecuritySettingService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringstatic final Stringprotected static final Stringstatic final Stringprotected static final Stringstatic final Stringprotected static final booleanprotected static final booleanprotected static final booleanprotected static final Stringstatic final Stringprotected static final booleanprotected static final UserRegistrationTypeprotected static final Stringstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final org.exoplatform.commons.api.settings.data.Contextprotected static final org.exoplatform.commons.api.settings.data.Scope -
Constructor Summary
ConstructorsConstructorDescriptionSecuritySettingService(org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.services.resources.LocaleConfigService localeConfigService) -
Method Summary
Modifier and TypeMethodDescriptiongetDeletedUserLabel(Locale locale) String[]Memoized aggregate meant for display purposes only: the memoization is node-local (invalidated in the JVM that saved, the modification events being broadcast on the node-local ListenerService), so on a cluster the other nodes may serve a stale copy until they save in turn.booleanbooleanbooleanbooleanvoidsaveAccountDeactivationEnabled(boolean accountDeactivationEnabled) voidsaveAccountDeletionAnonymizationEnabled(boolean accountDeletionAnonymizationEnabled) voidsaveAccountDeletionEnabled(boolean accountDeletionEnabled) voidsaveDeletedUserLabels(Map<String, String> deletedUserLabels) voidsaveRegistrationExternalUser(boolean externalUser) voidsaveRegistrationGroupIds(String[] groupIds) voidsaveRegistrationSetting(RegistrationSetting registrationSetting) voidsaveRegistrationType(UserRegistrationType registrationType)
-
Field Details
-
ACCESS_TYPE_MODIFIED
- See Also:
-
EXTERNAL_USER_REG_MODIFIED
- See Also:
-
DEFAULT_GROUPS_MODIFIED
- See Also:
-
ACCOUNT_DEACTIVATION_MODIFIED
- See Also:
-
ACCOUNT_DELETION_MODIFIED
- See Also:
-
ACCOUNT_DELETION_ANONYMIZATION_MODIFIED
- See Also:
-
DELETED_USER_LABELS_MODIFIED
- See Also:
-
SECURITY_CONTEXT
protected static final org.exoplatform.commons.api.settings.data.Context SECURITY_CONTEXT -
SECURITY_SCOPE
protected static final org.exoplatform.commons.api.settings.data.Scope SECURITY_SCOPE -
REGISTRATION_TYPE_PARAM
- See Also:
-
REGISTRATION_EXTERNAL_USER_PARAM
- See Also:
-
REGISTRATION_EXTRA_GROUPS_PARAM
- See Also:
-
ACCOUNT_DEACTIVATION_ENABLED_PARAM
- See Also:
-
ACCOUNT_DELETION_ENABLED_PARAM
- See Also:
-
ACCOUNT_DELETION_ANONYMIZATION_ENABLED_PARAM
- See Also:
-
DELETED_USER_LABEL_PARAM_PREFIX
- See Also:
-
EXTRA_GROUPS_SEPARATOR
- See Also:
-
DEFAULT_REGISTRATION_TYPE
-
DEFAULT_REGISTRATION_EXTERNAL_USER
protected static final boolean DEFAULT_REGISTRATION_EXTERNAL_USER -
DEFAULT_ACCOUNT_DEACTIVATION
protected static final boolean DEFAULT_ACCOUNT_DEACTIVATION -
DEFAULT_ACCOUNT_DELETION
protected static final boolean DEFAULT_ACCOUNT_DELETION -
DEFAULT_ACCOUNT_DELETION_ANONYMIZATION
protected static final boolean DEFAULT_ACCOUNT_DELETION_ANONYMIZATION -
DEFAULT_DELETED_USER_LABEL
-
MACHINE_LOCALE_NAME
- See Also:
-
-
Constructor Details
-
SecuritySettingService
public SecuritySettingService(org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.services.resources.LocaleConfigService localeConfigService)
-
-
Method Details
-
getRegistrationSetting
Memoized aggregate meant for display purposes only: the memoization is node-local (invalidated in the JVM that saved, the modification events being broadcast on the node-local ListenerService), so on a cluster the other nodes may serve a stale copy until they save in turn. A security check must call the direct readers instead (isAccountDeactivationEnabled(),isAccountDeletionEnabled()...), which go through the cluster-invalidated setting cache. -
saveRegistrationSetting
-
getRegistrationGroupIds
-
getRegistrationType
-
saveRegistrationType
-
isRegistrationExternalUser
public boolean isRegistrationExternalUser() -
saveRegistrationExternalUser
public void saveRegistrationExternalUser(boolean externalUser) -
isAccountDeactivationEnabled
public boolean isAccountDeactivationEnabled() -
saveAccountDeactivationEnabled
public void saveAccountDeactivationEnabled(boolean accountDeactivationEnabled) -
isAccountDeletionEnabled
public boolean isAccountDeletionEnabled() -
saveAccountDeletionEnabled
public void saveAccountDeletionEnabled(boolean accountDeletionEnabled) -
isAccountDeletionAnonymizationEnabled
public boolean isAccountDeletionAnonymizationEnabled() -
saveAccountDeletionAnonymizationEnabled
public void saveAccountDeletionAnonymizationEnabled(boolean accountDeletionAnonymizationEnabled) -
getDeletedUserLabels
-
getDeletedUserLabel
-
saveDeletedUserLabels
-
saveRegistrationGroupIds
-