public interface JahiaPreferencesProvider<T extends JCRNodeWrapper>
| Modifier and Type | Method and Description |
|---|---|
JahiaPreference<T> |
createJahiaPreferenceNode(Principal principal)
Create a JahiaPeference with "empty" properties
|
void |
deleteAllPreferencesByPrincipal(Principal principal)
Delete all preferences of principal.
|
void |
deleteJahiaPreference(JahiaPreference<T> jahiaPreference)
Delete Jahia Prefernce
|
void |
deleteJahiaPreference(Principal principal,
String sqlConstraint)
Delete Jahia Preference
|
List<JahiaPreference<T>> |
findJahiaPreferences(Principal principal,
String sqlConstraint)
Find all preferences for a user mathing certain sqlConstraint
|
List<JahiaPreference<T>> |
getJahiaAllPreferences(Principal principal)
Get all preferences of a user.
|
JahiaPreference<T> |
getJahiaPreference(Principal principal,
String sqlConstraint)
Get the existing JahiaPreference associated to this path
|
JahiaPreference<T> |
getJahiaPreference(Principal principal,
String sqlConstraint,
boolean notNull)
Get or create the requested preference at the path
|
String |
getType()
Get the type of the provider.
|
void |
setJahiaPreference(JahiaPreference<T> jahiaPreference)
Set Jahia preference
|
void |
setJahiaPreferenceByMaps(Map<String,String> jahiaPreferenceAttributes)
Set a jahia preference value.
|
boolean |
validate(JahiaPreference<T> jahiaPreference) |
String getType()
JahiaPreference<T> createJahiaPreferenceNode(Principal principal)
principal - boolean validate(JahiaPreference<T> jahiaPreference) throws JahiaPreferencesNotValidException
jahiaPreference - JahiaPreferencesNotValidExceptionJahiaPreference<T> getJahiaPreference(Principal principal, String sqlConstraint)
principal - the user for searching the preferencesqlConstraint - the sql constraint of the preferenceJahiaPreference<T> getJahiaPreference(Principal principal, String sqlConstraint, boolean notNull)
principal - the user for searching the preferencesqlConstraint - the sql constraint of the preferencenotNull - if true create the preference if not foundList<JahiaPreference<T>> getJahiaAllPreferences(Principal principal)
principal - the user for whom we want the prefrencesList<JahiaPreference<T>> findJahiaPreferences(Principal principal, String sqlConstraint)
principal - the user for whom we want the prefrencessqlConstraint - the sql constraint of the preferencevoid deleteJahiaPreference(Principal principal, String sqlConstraint) throws JahiaPreferenceNotDefinedAttributeException
principal - the user for whom we want the prefrencessqlConstraint - the sql constraint of the preferenceJahiaPreferenceNotDefinedAttributeExceptionvoid deleteJahiaPreference(JahiaPreference<T> jahiaPreference)
jahiaPreference - the preference to deletevoid setJahiaPreference(JahiaPreference<T> jahiaPreference)
jahiaPreference - the preference to setvoid setJahiaPreferenceByMaps(Map<String,String> jahiaPreferenceAttributes) throws JahiaPreferenceNotDefinedAttributeException, JahiaPreferenceNotDefinedPropertyException, JahiaPreferencesNotValidException
jahiaPreferenceAttributes - JahiaPreferenceNotDefinedAttributeExceptionJahiaPreferenceNotDefinedPropertyExceptionJahiaPreferencesNotValidExceptionvoid deleteAllPreferencesByPrincipal(Principal principal)
principal - Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.