Package wt.preference
Interface PreferenceService2
Interface specifying methods needed to provide client accessible server-side
functionality for managing preferences.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of a preference specified by definitionName in the site context.getValue(String definitionName, String clientName, OrgContainer organization) Gets the value of a preference specified by definitionName in the specified organization context.getValue(String definitionName, String clientName, WTContainer container, WTUser user) Deprecated.use getValue(WTContainerRef, String, String, WTUser) instead.getValue(String definitionName, WTContainer container, WTUser user) Deprecated.use getValue(WTContainerRef, String, String, WTUser) instead.getValue(WTContainerRef containerRef, String definitionName, String clientName, WTUser user) Gets the value of a preference specified by definitionName in the specified container or user context.Gets the value of a preference specified by definitionName in the specified user context.getValues(Collection<String> definitionNames, Collection<String> categoryNames, String clientName) Gets the values of multiple preferences in the site context.getValues(Collection<String> definitionNames, Collection<String> categoryNames, String clientName, OrgContainer organization) Gets the values of multiple preferences in an organization context.getValues(Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTContainer container, WTUser user) Deprecated.use getValues(WTContainerRef, Collection, Collection , String, WTUser) instead. getValues(Collection<String> definitionNames, Collection<String> categoryNames, WTContainer container, WTUser user) Deprecated.use getValues(WTContainerRef, Collection, Collection , String, WTUser) instead. getValues(Collection<String> definitionNames, WTContainer container, WTUser user) Deprecated.use getValues(WTContainerRef, Collection, Collection , String, WTUser) instead. getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName) Gets the values of multiple preferences in the site context.getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, OrgContainer organization) Gets the values of multiple preferences in an organization context.getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTContainer container, WTUser user) Deprecated.use getValues(WTContainerRef, Map<String, Object>, Collection, Collection , String, WTUser) instead. getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, WTContainer container, WTUser user) Deprecated.use getValues(WTContainerRef, Map<String, Object>, Collection, Collection , String, WTUser) instead. getValues(Map<String, Object> map, Collection<String> definitionNames, WTContainer container, WTUser user) Deprecated.use getValues(WTContainerRef, Map<String, Object>, Collection, Collection , String, WTUser) instead. getValues(WTContainerRef containerRef, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTUser user) Gets the values of multiple preferences in a container or user context.getValues(WTContainerRef containerRef, Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTUser user) Gets the values of multiple preferences in a container or user context.
-
Method Details
-
getValue
Deprecated.use getValue(WTContainerRef, String, String, WTUser) instead.Gets the value of a preference specified by definitionName in the specified container or user context. Only considers instances of the default (WINDCHILL) client.
Supported API: true- Parameters:
definitionName- The internal name of the PreferenceDefinitioncontainer-user- User specifying the context in which the preference is being retrieved- Returns:
- Object
- Throws:
WTException
-
getValue
Object getValue(String definitionName, String clientName, WTContainer container, WTUser user) throws WTException Deprecated.use getValue(WTContainerRef, String, String, WTUser) instead.Gets the value of a preference specified by definitionName in the specified container or user context. Only considers instances of clients including the passed in client and its ancestors.
Supported API: true- Parameters:
definitionName- The internal name of the PreferenceDefinitionclientName- The internal name of the PreferenceClientcontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Object
- Throws:
WTException
-
getValue
Object getValue(String definitionName, String clientName, OrgContainer organization) throws WTException Gets the value of a preference specified by definitionName in the specified organization context. Only considers instances of clients including the passed in client and its ancestors.
Supported API: true- Parameters:
definitionName- The internal name of the PreferenceDefinitionclientName- The internal name of the PreferenceClientorganization- Organization specifying the context in which the preference is being retrieved- Returns:
- Object
- Throws:
WTException
-
getValue
Gets the value of a preference specified by definitionName in the site context. Only considers instances of clients including the passed in client and its ancestors.
Supported API: true- Parameters:
definitionName- The internal name of the PreferenceDefinitionclientName- The internal name of the PreferenceClient- Returns:
- Object
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Collection<String> definitionNames, WTContainer container, WTUser user) throws WTException Deprecated.use getValues(WTContainerRef, Collection, Collection , String, WTUser) instead. Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames. Only considers instances of the default (WINDCHILL) client. A map which maps preference internal names to the value of the preference is returned.
Supported API: true- Parameters:
definitionNames- Internal names of PreferenceDefinitionscontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Map<String, Object> map, Collection<String> definitionNames, WTContainer container, WTUser user) throws WTExceptionDeprecated.use getValues(WTContainerRef, Map<String, Object>, Collection, Collection , String, WTUser) instead. Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames. Only considers instances of the default (WINDCHILL) client. The results will be added to the inputted map, which maps preference internal names to the value of the preference. This map is then returned.
Supported API: true- Parameters:
map- Map of PreferenceDefinition internal names to values, results are added to this map and this map is returneddefinitionNames- Internal names of PreferenceDefinitionscontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Collection<String> definitionNames, Collection<String> categoryNames, WTContainer container, WTUser user) throws WTException Deprecated.use getValues(WTContainerRef, Collection, Collection , String, WTUser) instead. Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of the default (WINDCHILL) client. A map which maps preference internal names to the value of the preference is returned.
Supported API: true- Parameters:
definitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriescontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, WTContainer container, WTUser user) throws WTExceptionDeprecated.use getValues(WTContainerRef, Map<String, Object>, Collection, Collection , String, WTUser) instead. Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of the default (WINDCHILL) client. The results will be added to the inputted map, which maps preference internal names to the value of the preference. This map is then returned.
Supported API: true- Parameters:
map- Map of PreferenceDefinition internal names to values, results are added to this map and this map is returneddefinitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriescontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTContainer container, WTUser user) throws WTException Deprecated.use getValues(WTContainerRef, Collection, Collection , String, WTUser) instead. Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. A map which maps preference internal names to the value of the preference is returned.
Supported API: true- Parameters:
definitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClientcontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTContainer container, WTUser user) throws WTExceptionDeprecated.use getValues(WTContainerRef, Map<String, Object>, Collection, Collection , String, WTUser) instead. Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. The results will be added to the inputted map, which maps preference internal names to the value of the preference. This map is then returned.
Supported API: true- Parameters:
map- Map of PreferenceDefinition internal names to values, results are added to this map and this map is returneddefinitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClientcontainer- Container specifying the context in which the preference is being retrieveduser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Collection<String> definitionNames, Collection<String> categoryNames, String clientName, OrgContainer organization) throws WTException Gets the values of multiple preferences in an organization context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. A map which maps preference internal names to the value of the preference is returned.
Supported API: true- Parameters:
definitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClientorganization- Organization specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, OrgContainer organization) throws WTExceptionGets the values of multiple preferences in an organization context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. The results will be added to the inputted map, which maps preference internal names to the value of the preference. This map is then returned.
Supported API: true- Parameters:
map- Map of PreferenceDefinition internal names to values, results are added to this map and this map is returneddefinitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClientorganization- Organization specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Collection<String> definitionNames, Collection<String> categoryNames, String clientName) throws WTException Gets the values of multiple preferences in the site context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. A map which maps preference internal names to the value of the preference is returned.
Supported API: true- Parameters:
definitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClient- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName) throws WTExceptionGets the values of multiple preferences in the site context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. The results will be added to the inputted map, which maps preference internal names to the value of the preference. This map is then returned.
Supported API: true- Parameters:
map- Map of PreferenceDefinition internal names to values, results are added to this map and this map is returneddefinitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClient- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValue
Gets the value of a preference specified by definitionName in the specified user context. Only considers instances of clients including the passed in client and its ancestors.
Supported API: true- Parameters:
user- User specifying the context in which the preference is being retrieveddefinitionName- The internal name of the PreferenceDefinitionclientName- The internal name of the PreferenceClient- Returns:
- Object
- Throws:
WTException
-
getValue
Object getValue(WTContainerRef containerRef, String definitionName, String clientName, WTUser user) throws WTException Gets the value of a preference specified by definitionName in the specified container or user context. Only considers instances of clients including the passed in client and its ancestors.
Supported API: true- Parameters:
containerRef- Container reference specifying the context in which the preference is being retrieveddefinitionName- The internal name of the PreferenceDefinitionclientName- The internal name of the PreferenceClientuser- User specifying the context in which the preference is being retrieved- Returns:
- Object
- Throws:
WTException
-
getValues
Map<String,Object> getValues(WTContainerRef containerRef, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTUser user) throws WTException Gets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. A map which maps preference internal names to the value of the preference is returned.
Supported API: true- Parameters:
containerRef- Container reference specifying the context in which the preference is being retrieveddefinitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClientuser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-
getValues
Map<String,Object> getValues(WTContainerRef containerRef, Map<String, Object> map, Collection<String> definitionNames, Collection<String> categoryNames, String clientName, WTUser user) throws WTExceptionGets the values of multiple preferences in a container or user context. This will get the value of all preferences that are specified by definitionNames or that belong to the PreferenceCategories specified by categoryNames. Only considers instances of clients including the passed in client and its ancestors. The results will be added to the inputted map, which maps preference internal names to the value of the preference. This map is then returned.
Supported API: true- Parameters:
containerRef- Container reference specifying the context in which the preference is being retrievedmap- Map of PreferenceDefinition internal names to values, results are added to this map and this map is returneddefinitionNames- Internal names of PreferenceDefinitionscategoryNames- Internal names of PreferenceCategoriesclientName- The internal name of the PreferenceClientuser- User specifying the context in which the preference is being retrieved- Returns:
- Map<String,Object>
- Throws:
WTException
-