Class EntityFormData

java.lang.Object
ch.tocco.nice2.netui.api.bind.entity.EntityFormData

public class EntityFormData extends Object
Response object for loading form data based on an entity.

This response object is used for the good case, as well as for some special but expected cases: - object deleted [meanwhile] - ...?

  • Constructor Details

    • EntityFormData

      public EntityFormData(AbstractFieldInfo[] fieldInfos, long version, EntityDescriptor entityDescriptor)
      Parameters:
      version - The version of the primary record for which the form is.
  • Method Details

    • statusDeleted

      public static EntityFormData statusDeleted()
    • statusNoPermission

      public static EntityFormData statusNoPermission()
    • getStatus

      public EntityFormData.Status getStatus()
    • getFieldInfos

      @Nullable public @Nullable AbstractFieldInfo[] getFieldInfos()
      Returns:
      Not null if Status = OK.
    • getVersion

      public long getVersion()
    • getEntityDescriptor

      @Nullable public @Nullable EntityDescriptor getEntityDescriptor()
      Returns:
      Not null if Status = OK.