Class GroovySystemDataGroup

java.lang.Object
groovy.lang.GroovyObjectSupport
de.uplanet.lucy.server.scripting.groovy.GroovySystemDataGroup
All Implemented Interfaces:
groovy.lang.GroovyObject

@Scriptable public final class GroovySystemDataGroup extends groovy.lang.GroovyObjectSupport
  • Constructor Details

    • GroovySystemDataGroup

      public GroovySystemDataGroup()
  • Method Details

    • hasValue

      public boolean hasValue(String p_strFieldGuid)
      Check if a system data group value for the given field exists.
      Parameters:
      p_strFieldGuid - The field GUID.
      Returns:
      true if the system datagroup has a value, or false otherwise.
      Throws:
      IllegalArgumentException - If the given GUID is invalid or does not identify an existing data field.
    • getValueByFieldGuid

      public Object getValueByFieldGuid(String p_strFieldGuid)
      Get the value of the given system data group field.
      Parameters:
      p_strFieldGuid - The field GUID.
      Returns:
      The field value.
      Throws:
      IllegalArgumentException - If the given GUID is invalid or does not identify an existing data field.
      RuntimeException - If there is no value for the given field, in which case hasValue(String) is false.
    • getValueHolderByFieldGuid

      public IValueHolder<?> getValueHolderByFieldGuid(String p_strFieldGuid)
      Get the value of the given system data group field.
      Parameters:
      p_strFieldGuid - The field GUID.
      Returns:
      The field value as a value holder.
      Throws:
      IllegalArgumentException - If the given GUID is invalid or does not identify an existing data field.
      RuntimeException - If there is no value for the given field, in which case hasValue(String) is false.
    • getAt

      public Object getAt(String p_strKey)