Class ExtendedDataAttributeImpl

java.lang.Object
overit.geocall.edm.model.ExtendedDataAttributeImpl
All Implemented Interfaces:
Serializable, BaseDataAttribute, DataAttribute

public class ExtendedDataAttributeImpl extends Object implements DataAttribute, Serializable
Represents an extended data attribute in the Entity-Data-Model (EDM). This class implements the DataAttribute interface and provides additional functionality for attribute properties and permissions. It is designed to handle various configurations and constraints related to data attributes within the EDM framework.
See Also:
  • Constructor Details

    • ExtendedDataAttributeImpl

      public ExtendedDataAttributeImpl(String name, Entity entity, Company company, AttributeProperties attributeProperties)
      Constructs a new ExtendedDataAttribute with the specified properties and lazily evaluated values.
      Parameters:
      name - The name of the attribute.
      entity - The entity the attribute belongs to.
      company - The company associated with the attribute.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: BaseDataAttribute
      Retrieves the name of the data attribute.
      Specified by:
      getName in interface BaseDataAttribute
      Returns:
      The name of the attribute.
    • getAliasFor

      public String getAliasFor()
      Description copied from interface: DataAttribute
      Retrieves the name of the field for which this attribute is an alias.
      Specified by:
      getAliasFor in interface DataAttribute
      Returns:
      the name of the field for which this attribute is an alias.
    • getLabel

      public String getLabel()
      Description copied from interface: DataAttribute
      Retrieves the label of the data attribute.
      Specified by:
      getLabel in interface DataAttribute
      Returns:
      The label of the attribute.
    • getType

      public overit.geocall.edm.model.datatypes.DataType<?,?> getType()
      Description copied from interface: BaseDataAttribute
      Retrieves the data type of the attribute.
      Specified by:
      getType in interface BaseDataAttribute
      Returns:
      The data type of the attribute.
    • isStatic

      public boolean isStatic()
      Description copied from interface: BaseDataAttribute
      Returns true in case this BaseDataAttribute is about a static data attribute; false otherwise.
      Specified by:
      isStatic in interface BaseDataAttribute
      Returns:
      true in case this BaseDataAttribute is about a static data attribute; false otherwise.
    • canView

      public boolean canView(Identity identity)
      Description copied from interface: DataAttribute
      Checks if the specified identity has permission to view the attribute.
      Specified by:
      canView in interface DataAttribute
      Parameters:
      identity - The identity to check permissions for.
      Returns:
      true if the identity can view the attribute, false otherwise.
    • canEdit

      public boolean canEdit(Identity identity)
      Description copied from interface: DataAttribute
      Checks if the specified identity has permission to edit the attribute.
      Specified by:
      canEdit in interface DataAttribute
      Parameters:
      identity - The identity to check permissions for.
      Returns:
      true if the identity can edit the attribute, false otherwise.
    • getViewPermissions

      public String getViewPermissions()
      Description copied from interface: DataAttribute
      Retrieves the view permissions for the current data attribute
      Specified by:
      getViewPermissions in interface DataAttribute
      Returns:
      A String representing the permissions required for viewing the attribute
    • getEditPermissions

      public String getEditPermissions()
      Description copied from interface: DataAttribute
      Retrieves the edit permissions for the current data attribute
      Specified by:
      getEditPermissions in interface DataAttribute
      Returns:
      A String representing the permissions required for editing the attribute
    • getLess

      public Number getLess()
      Description copied from interface: DataAttribute
      Retrieves the upper limit for the attribute (less than constraint).
      Specified by:
      getLess in interface DataAttribute
      Returns:
      The upper limit for the attribute.
    • getLessEqual

      public Number getLessEqual()
      Description copied from interface: DataAttribute
      Retrieves the upper limit (inclusive) for the attribute (less than or equal to constraint).
      Specified by:
      getLessEqual in interface DataAttribute
      Returns:
      The upper limit (inclusive) for the attribute.
    • getGreater

      public Number getGreater()
      Description copied from interface: DataAttribute
      Retrieves the lower limit for the attribute (greater than constraint).
      Specified by:
      getGreater in interface DataAttribute
      Returns:
      The lower limit for the attribute.
    • getGreaterEqual

      public Number getGreaterEqual()
      Description copied from interface: DataAttribute
      Retrieves the lower limit (inclusive) for the attribute (greater than or equal to constraint).
      Specified by:
      getGreaterEqual in interface DataAttribute
      Returns:
      The lower limit (inclusive) for the attribute.
    • getMaxLength

      public Integer getMaxLength()
      Description copied from interface: DataAttribute
      Returns the maximum length allowed.
      Specified by:
      getMaxLength in interface DataAttribute
      Returns:
      the maximum length allowed
    • getMinLength

      public Integer getMinLength()
      Description copied from interface: DataAttribute
      Returns a representing the minimum length property.
      Specified by:
      getMinLength in interface DataAttribute
      Returns:
      An Optional<Integer> containing the minimum length property if present, otherwise an empty optional.
    • getPrecision

      public Integer getPrecision()
      Description copied from interface: DataAttribute
      Returns a representing the precision property.
      Specified by:
      getPrecision in interface DataAttribute
      Returns:
      An Optional<Integer> containing the precision property if present, otherwise an empty optional.
    • getRegExpPattern

      public Pattern getRegExpPattern()
      Specified by:
      getRegExpPattern in interface DataAttribute
    • getFromDate

      public LocalDate getFromDate()
      Description copied from interface: DataAttribute
      Returns the starting date of the range.
      Specified by:
      getFromDate in interface DataAttribute
      Returns:
      the starting date of the range
    • getToDate

      public LocalDate getToDate()
      Description copied from interface: DataAttribute
      Returns the ending date of the range.
      Specified by:
      getToDate in interface DataAttribute
      Returns:
      the ending date of the range
    • getHourRange

      public IntegerSet getHourRange()
      Description copied from interface: DataAttribute
      Returns the set of hours allowed in the range.
      Specified by:
      getHourRange in interface DataAttribute
      Returns:
      the set of hours allowed in the range
    • getMinuteRange

      public IntegerSet getMinuteRange()
      Description copied from interface: DataAttribute
      Returns the set of minutes allowed in the range.
      Specified by:
      getMinuteRange in interface DataAttribute
      Returns:
      the set of minutes allowed in the range
    • getEntity

      public Entity getEntity()
      Description copied from interface: DataAttribute
      Returns the associated Entity.
      Specified by:
      getEntity in interface DataAttribute
      Returns:
      the associated Entity.
    • getTitle

      public String getTitle()
      Description copied from interface: DataAttribute
      Retrieves the title.
      Specified by:
      getTitle in interface DataAttribute
      Returns:
      the title as a String.
    • getAriaLabel

      public String getAriaLabel()
      Description copied from interface: DataAttribute
      Retrieves the ARIA label for accessibility purposes.
      Specified by:
      getAriaLabel in interface DataAttribute
      Returns:
      the ARIA label as a String.
    • getAriaDescription

      public String getAriaDescription()
      Description copied from interface: DataAttribute
      Retrieves the ARIA description for accessibility purposes.
      Specified by:
      getAriaDescription in interface DataAttribute
      Returns:
      the ARIA description as a String.
    • getCleaner

      public String getCleaner()
      Description copied from interface: DataAttribute
      Retrieves the cleaner, which could be used for formatting or sanitization.
      Specified by:
      getCleaner in interface DataAttribute
      Returns:
      the cleaner as a String.
    • getValue

      public String getValue()
      Description copied from interface: DataAttribute
      Retrieves the value associated with this object.
      Specified by:
      getValue in interface DataAttribute
      Returns:
      the value as a String.
    • getKey

      public String getKey()
      Description copied from interface: DataAttribute
      Retrieves the key associated with this object.
      Specified by:
      getKey in interface DataAttribute
      Returns:
      the key as a String.
    • getHeadTitle

      public String getHeadTitle()
      Description copied from interface: DataAttribute
      Retrieves the head title.
      Specified by:
      getHeadTitle in interface DataAttribute
      Returns:
      the head title as a String.
    • getFalseTitle

      public String getFalseTitle()
      Description copied from interface: DataAttribute
      Retrieves the false title.
      Specified by:
      getFalseTitle in interface DataAttribute
      Returns:
      the false title as a String.
    • getEnabled

      public String getEnabled()
      Description copied from interface: DataAttribute
      Retrieves the enabled status.
      Specified by:
      getEnabled in interface DataAttribute
      Returns:
      the enabled status as a String.
    • getFormat

      public String getFormat()
      Description copied from interface: DataAttribute
      Retrieves the format.
      Specified by:
      getFormat in interface DataAttribute
      Returns:
      the format as a String.
    • getRange

      public String getRange()
      Description copied from interface: DataAttribute
      Retrieves the range.
      Specified by:
      getRange in interface DataAttribute
      Returns:
      the range as a String.
    • getSymbols

      public String getSymbols()
      Description copied from interface: DataAttribute
      Retrieves the symbols.
      Specified by:
      getSymbols in interface DataAttribute
      Returns:
      the symbols as a String.
    • getPrefix

      public String getPrefix()
      Description copied from interface: DataAttribute
      Retrieves the prefix.
      Specified by:
      getPrefix in interface DataAttribute
      Returns:
      the prefix as a String.
    • getZoneName

      public String getZoneName()
      Description copied from interface: DataAttribute
      Retrieves the zone name.
      Specified by:
      getZoneName in interface DataAttribute
      Returns:
      the zone name as a String.
    • getZoneValue

      public String getZoneValue()
      Description copied from interface: DataAttribute
      Retrieves the zone value.
      Specified by:
      getZoneValue in interface DataAttribute
      Returns:
      the zone value as a String.
    • getPlaceholder

      public String getPlaceholder()
      Description copied from interface: DataAttribute
      Retrieves the placeholder text.
      Specified by:
      getPlaceholder in interface DataAttribute
      Returns:
      the placeholder as a String.
    • getAutocomplete

      public String getAutocomplete()
      Description copied from interface: DataAttribute
      Retrieves the autocomplete setting.
      Specified by:
      getAutocomplete in interface DataAttribute
      Returns:
      the autocomplete setting as a String.
    • getLetterCase

      public String getLetterCase()
      Description copied from interface: DataAttribute
      Retrieves the letter case setting.
      Specified by:
      getLetterCase in interface DataAttribute
      Returns:
      the letter case setting as a String.
    • getOutputPrecision

      public String getOutputPrecision()
      Description copied from interface: DataAttribute
      Retrieves the output precision, which might indicate the number of decimal places or detail level.
      Specified by:
      getOutputPrecision in interface DataAttribute
      Returns:
      the output precision as a String.
    • getAriaDescriptionD

      public String getAriaDescriptionD()
      Description copied from interface: DataAttribute
      Retrieves ARIA description for date
      Specified by:
      getAriaDescriptionD in interface DataAttribute
      Returns:
      the date ARIA description as a String.
    • getPlaceHolderD

      public String getPlaceHolderD()
      Description copied from interface: DataAttribute
      Retrieves placeholder for date
      Specified by:
      getPlaceHolderD in interface DataAttribute
      Returns:
      the secondary placeholder as a String.
    • getTitleD

      public String getTitleD()
      Description copied from interface: DataAttribute
      Retrieves title for date.
      Specified by:
      getTitleD in interface DataAttribute
      Returns:
      the secondary title as a String.
    • getFromName

      public String getFromName()
      Description copied from interface: DataAttribute
      Retrieves the name of the field to use as "from" constraint.
      Specified by:
      getFromName in interface DataAttribute
      Returns:
      the "from" name as a String.
    • getToName

      public String getToName()
      Description copied from interface: DataAttribute
      Retrieves the name of the field to use as "to" constraint.
      Specified by:
      getToName in interface DataAttribute
      Returns:
      the "to" name as a String.
    • getAriaDescriptionT

      public String getAriaDescriptionT()
      Description copied from interface: DataAttribute
      Retrieves ARIA description for time
      Specified by:
      getAriaDescriptionT in interface DataAttribute
      Returns:
      the ARIA description for time as a String.
    • getPlaceHolderT

      public String getPlaceHolderT()
      Description copied from interface: DataAttribute
      Retrieves placeholder for time.
      Specified by:
      getPlaceHolderT in interface DataAttribute
      Returns:
      the placeholder as a String.
    • getTitleT

      public String getTitleT()
      Description copied from interface: DataAttribute
      Retrieves title for time context.
      Specified by:
      getTitleT in interface DataAttribute
      Returns:
      the title as a String.
    • getMenuMinuteStep

      public String getMenuMinuteStep()
      Description copied from interface: DataAttribute
      Retrieves the menu minute step.
      Specified by:
      getMenuMinuteStep in interface DataAttribute
      Returns:
      the menu minute step as a String.
    • getSearchThreshold

      public String getSearchThreshold()
      Description copied from interface: DataAttribute
      Retrieves the search threshold, which might indicate a limit or criteria for search operations.
      Specified by:
      getSearchThreshold in interface DataAttribute
      Returns:
      the search threshold as a String.
    • getDictionaryPrefix

      public String getDictionaryPrefix()
      Description copied from interface: DataAttribute
      Retrieves the dictionary prefix.
      Specified by:
      getDictionaryPrefix in interface DataAttribute
      Returns:
      the dictionary prefix as a String.
    • getMultiline

      public String getMultiline()
      Description copied from interface: DataAttribute
      Retrieves the multiline setting, possibly indicating if multiple lines of text are supported.
      Specified by:
      getMultiline in interface DataAttribute
      Returns:
      the multiline setting as a String.
    • getValueList

      public List<String> getValueList()
      Description copied from interface: DataAttribute
      Retrieves a list of values associated with this object.
      Specified by:
      getValueList in interface DataAttribute
      Returns:
      a list of values as a List<String>.
    • getDateTypes

      public overit.geocall.timezone.DateTypes getDateTypes()
      Description copied from interface: DataAttribute
      Returns a DateTypes about the configured type of date/time or time (local, central or symbolic).

      This value only makes sense in case of DataAttribute of type date/time or time.

      Specified by:
      getDateTypes in interface DataAttribute
      Returns:
      a DateTypes about the configured type of date/time or time (local, central or symbolic).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object