public class UserUIDFieldValue extends java.lang.Object implements FieldValue
Item.getUserUIDValue(com.canto.cumulus.GUID)
to get this wrapper class object. You can then use Item.setStringValue(com.canto.cumulus.GUID, String)
with a user unique ID to set the field value back into the item.Modifier and Type | Method and Description |
---|---|
void |
clearValue()
Clear the field's value.
|
java.lang.String |
getDisplayString()
Return the field's value as a string that can be displayed to the user.
|
java.lang.String |
getDisplayString(java.util.Locale locale)
Return the field's value as a string that can be displayed to the user.
|
static java.lang.String |
getDisplayString(Server server,
java.lang.String userUID) |
java.lang.String |
getUserUID()
Get the user unique ID string for this field value.
|
boolean |
hasValue()
Return whether this field has a value.
|
void |
setFromDisplayString(java.util.Locale locale,
java.lang.String value)
This method is not supported.
|
void |
setFromDisplayString(java.lang.String value)
This method is not supported.
|
void |
setUserUID(java.lang.String userUID)
Set teh value of this field to a given user unique ID string.
|
java.lang.String |
toString()
Same as
getDisplayString() . |
public boolean hasValue()
hasValue
in interface FieldValue
true
if the field has a value, false
otherwise.public void clearValue()
Item.save()
to save this change back to the catalog.clearValue
in interface FieldValue
public java.lang.String getDisplayString()
getDisplayString
in interface FieldValue
public java.lang.String getDisplayString(java.util.Locale locale)
getDisplayString
in interface FieldValue
locale
- This parameter is not used.public void setFromDisplayString(java.lang.String value) throws InvalidArgumentException
setFromDisplayString
in interface FieldValue
value
- The display string to set the value from.InvalidArgumentException
- if the display string is not of the right format.public void setFromDisplayString(java.util.Locale locale, java.lang.String value) throws InvalidArgumentException
setFromDisplayString
in interface FieldValue
locale
- The locale to use for formatting and language selection.value
- The display string to set the value from.InvalidArgumentException
- if the display string is not of the right format.public static java.lang.String getDisplayString(Server server, java.lang.String userUID)
public java.lang.String getUserUID()
public void setUserUID(java.lang.String userUID)
Item.save()
to save this change back to the catalog.userUID
- The unique ID string for the user.public java.lang.String toString()
getDisplayString()
.toString
in class java.lang.Object
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.