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 aPicklistValueobject for a specific picklist value name.booleanIndicates whether the picklist has a controlling picklist.booleanIndicates 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
Picklistwas 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
Picklistwas 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 aPicklistValueobject for a specific picklist value name.- Parameters:
picklistValueName- the name of a picklist value- Returns:
- a
PicklistValueobject for the picklist value name specified in the parameter
-
getAllPicklistValues
Deprecated.as of 24R3.4, replaced byPicklistService.getPicklistValueMetadataCollection(PicklistValueMetadataCollectionRequest)Retrieves allPicklistValueobjects for this picklist. Returns thePicklistValueobjects in ascending order, as designated by the picklist value'sorderattribute. Picklist values that share the sameordervalue are returned in the order they were configured. Retrieve theorderof the picklist values with the Retrieve Component Record (XML/JSON) endpoint on thePicklistcomponent.- Returns:
- a list of
PicklistValueobjects in ascending order, as designated by the picklist value'sorderattribute
-
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 allPicklistValueobjects for this picklist.