Interface InboxPreferencesProvider
-
@ProviderType public interface InboxPreferencesProvider
Interface for the setting and getting AEM Inbox Preferences
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InboxPreferences
getPreferences(ResourceResolver resolver)
Returns theInboxPreferences
of the user or empty object if Inbox Prefernces is not presentvoid
setPreferences(ResourceResolver resolver, InboxPreferences preferences)
Sets theInboxPreferences
of the user or null if you want to remove inbox preferences
-
-
-
Method Detail
-
getPreferences
@Nonnull InboxPreferences getPreferences(@Nonnull ResourceResolver resolver) throws InboxException
Returns theInboxPreferences
of the user or empty object if Inbox Prefernces is not present- Parameters:
resolver
- The caller'sResourceResolver
- Returns:
- The
InboxPreferences
of the user - Throws:
InboxException
-InboxException
-
setPreferences
void setPreferences(@Nonnull ResourceResolver resolver, @Nullable InboxPreferences preferences) throws InboxException
Sets theInboxPreferences
of the user or null if you want to remove inbox preferences- Parameters:
resolver
- The caller'sResourceResolver
preferences
- TheInboxPreferences
of the user- Throws:
InboxException
-InboxException
-
-