Package org.ametys.core.userpref
Class UserPreference
- java.lang.Object
- 
- org.ametys.runtime.parameter.Parameter<ParameterHelper.ParameterType>
- 
- org.ametys.core.userpref.UserPreference
 
 
- 
- Direct Known Subclasses:
- StaticUserPreferenceProvider.StaticUserPreference
 
 public class UserPreference extends Parameter<ParameterHelper.ParameterType> Definition of a user preference.
- 
- 
Field SummaryFields Modifier and Type Field Description protected I18nizableText_displayGroupThe display group.protected String_managerRoleThe manager role.protected boolean_multipleIndicates if the user preference is multiple.protected int_orderThe preference order.protected boolean_privateThe private status.
 - 
Constructor SummaryConstructors Constructor Description UserPreference()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableTextgetDisplayGroup()Get the display group.StringgetManagerRole()Get the storage manager role.intgetOrder()Get the preference order.booleanisMultiple()Test if the preference is multiple-valued.booleanisPrivate()Get whether the preference is private, i.e.voidsetDisplayGroup(I18nizableText displayGroup)Set the parameter display group.voidsetManagerRole(String managerRole)Set the storage manager role.voidsetMultiple(boolean multiple)Set if the preference is multiple-valued.voidsetOrder(int order)Set the preference order.voidsetPrivate(boolean privateStatus)Set the private status of the preferenceStringtoString()- 
Methods inherited from class org.ametys.runtime.parameter.ParametergetDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
 
- 
 
- 
- 
- 
Field Detail- 
_displayGroupprotected I18nizableText _displayGroup The display group.
 - 
_multipleprotected boolean _multiple Indicates if the user preference is multiple.
 - 
_managerRoleprotected String _managerRole The manager role.
 - 
_orderprotected int _order The preference order.
 - 
_privateprotected boolean _private The private status.
 
- 
 - 
Constructor Detail- 
UserPreferencepublic UserPreference() 
 
- 
 - 
Method Detail- 
getDisplayGrouppublic I18nizableText getDisplayGroup() Get the display group.- Returns:
- the display group.
 
 - 
setDisplayGrouppublic void setDisplayGroup(I18nizableText displayGroup) Set the parameter display group.- Parameters:
- displayGroup- the display group to set.
 
 - 
getManagerRolepublic String getManagerRole() Get the storage manager role.- Returns:
- the manager role. Can be null to use the default storage manager.
 
 - 
setManagerRolepublic void setManagerRole(String managerRole) Set the storage manager role.- Parameters:
- managerRole- the manager role to set. Can be null to use the default storage manager.
 
 - 
isMultiplepublic boolean isMultiple() Test if the preference is multiple-valued.- Returns:
- true if the preference is multiple-valued, false if the preference is single-valued.
 
 - 
setMultiplepublic void setMultiple(boolean multiple) Set if the preference is multiple-valued.- Parameters:
- multiple- true if the preference is multiple-valued, false if the preference is single-valued.
 
 - 
getOrderpublic int getOrder() Get the preference order.- Returns:
- the preference order.
 
 - 
setOrderpublic void setOrder(int order) Set the preference order.- Parameters:
- order- the preference order.
 
 - 
isPrivatepublic boolean isPrivate() Get whether the preference is private, i.e. should not be visible by the regular user preferences interface.- Returns:
- true if the preference is private, false if it is public.
 
 - 
setPrivatepublic void setPrivate(boolean privateStatus) Set the private status of the preference- Parameters:
- privateStatus- true if the preference is private, false if it is public.
 
 
- 
 
-