Package com.veeva.vault.sdk.api.picklist
Interface Picklist
public interface Picklist
Provides methods to retrieve information about a picklist.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the name (public key) of the controlling picklist.getLabel()
Retrieves thisPicklist
's UI label.getName()
Retrieves thisPicklist
's name.getPicklistValue
(String picklistValueName) Deprecated.as of 24R3.4, replaced byPicklistService.getPicklistValueMetadataCollection(PicklistValueMetadataCollectionRequest)
Retrieves aPicklistValue
object for a specific picklist value name.boolean
Indicates whether the picklist has a controlling picklist.boolean
Indicates whether the picklist is system-managed.
-
Method Details
-
getLabel
String getLabel()Retrieves thisPicklist
's UI label. Depending on the method used to retrieve thisPicklist
, the label may be in the Vault's base language or the user's language. Learn more about base language and user language in Vault Help.If this
Picklist
was retrieved withPicklistService.getPicklist(String)
, the label is in the Vault's base language. If no label exists in the Vault's base language, returns the label in English.If this
Picklist
was retrieved withPicklistService.getPicklist(PicklistRequest)
, the label defaulting behavior is dependent on the request. For more details, seePicklistRequest
- Returns:
- the picklist label
-
getPicklistValue
Deprecated.as of 24R3.4, replaced byPicklistService.getPicklistValueMetadataCollection(PicklistValueMetadataCollectionRequest)
Retrieves aPicklistValue
object for a specific picklist value name.- Parameters:
picklistValueName
- the name of a picklist value- Returns:
- a
PicklistValue
object for the picklist value name specified in the parameter
-
getAllPicklistValues
Deprecated.as of 24R3.4, replaced byPicklistService.getPicklistValueMetadataCollection(PicklistValueMetadataCollectionRequest)
Retrieves allPicklistValue
objects for this picklist. Returns thePicklistValue
objects in ascending order, as designated by the picklist value'sorder
attribute. Picklist values that share the sameorder
value are returned in the order they were configured. Retrieve theorder
of the picklist values with the Retrieve Component Record (XML/JSON) endpoint on thePicklist
component.- Returns:
- a list of
PicklistValue
objects in ascending order, as designated by the picklist value'sorder
attribute
-
getName
String getName()Retrieves thisPicklist
's name.- Returns:
- the picklist's name
-
isSystemManaged
boolean isSystemManaged()Indicates whether the picklist is system-managed.- Returns:
- true if the picklist is system-managed, otherwise false
-
hasControllingPicklist
boolean hasControllingPicklist()Indicates whether the picklist has a controlling picklist.- Returns:
- true if the picklist has a controlling picklist, otherwise false
-
getControllingPicklistName
String getControllingPicklistName()Returns the name (public key) of the controlling picklist. Returns null if no controlling picklist exists.- Returns:
- name of the controlling picklist
-
PicklistService.getPicklistValueMetadataCollection(PicklistValueMetadataCollectionRequest)
Retrieves allPicklistValue
objects for this picklist.