Class AttributesSummary

java.lang.Object
overit.geocall.edm.model.AttributesSummary

@Component @RequestScope public class AttributesSummary extends Object
A request-scoped component that maintains a summary of attribute states and permissions within the Entity Data Model (EDM) context. This class tracks different categories of attributes based on their accessibility and recognition status.

The summary includes:

  • Unknown attributes - attributes that are not recognized by the system
  • Unknown criteria - criteria that are not recognized by the system
  • Restricted view attributes - attributes that cannot be viewed due to permissions
  • Restricted edit attributes - attributes that cannot be edited due to permissions

This class is designed to be used within a single request scope to collect and analyze attribute permissions and validity during EDM operations.

  • Constructor Details

    • AttributesSummary

      public AttributesSummary()
  • Method Details

    • getUnknownCriteria

      public Set<String> getUnknownCriteria()
      Gets an unmodifiable view of the unknown criteria set.
      Returns:
      an unmodifiable set containing all unknown criteria
    • hasUnknownCriteria

      public boolean hasUnknownCriteria()
      Checks if there are any unknown criteria in the summary.
      Returns:
      true if there are unknown criteria, false otherwise
    • addAllUnknownCriteria

      public void addAllUnknownCriteria(@NotNull @NotNull Set<String> attributes)
      Adds multiple unknown criteria to the summary.
      Parameters:
      attributes - the set of criteria to add as unknown
      Throws:
      NullPointerException - if the attributes parameter is null
    • addUnknownCriteria

      public void addUnknownCriteria(@NotNull @NotNull String criteria)
      Adds an unknown criteria.
      Parameters:
      criteria - The criteria to add.
    • getCantViewAttributes

      public Set<String> getCantViewAttributes()
      Gets the set of attributes that cannot be viewed.
      Returns:
      An unmodifiable set of attributes.
    • getCantEditAttributes

      public Set<String> getCantEditAttributes()
      Gets the set of attributes that cannot be edited.
      Returns:
      An unmodifiable set of attributes.
    • getUnknownAttributes

      public Set<String> getUnknownAttributes()
      Gets the set of unknown attributes.
      Returns:
      An unmodifiable set of attributes.
    • hasUnknownAttributes

      public boolean hasUnknownAttributes()
      Checks if there are any unknown attributes.
      Returns:
      true if there are unknown attributes, false otherwise.
    • hasCantEditAttributes

      public boolean hasCantEditAttributes()
      Checks if there are any attributes that cannot be edited.
      Returns:
      true if there are attributes that cannot be edited, false otherwise.
    • hasCantViewAttributes

      public boolean hasCantViewAttributes()
      Checks if there are any attributes that cannot be viewed.
      Returns:
      true if there are attributes that cannot be viewed, false otherwise.
    • addCantViewAttribute

      public void addCantViewAttribute(@NotNull @NotNull String attribute)
      Adds an attribute that cannot be viewed.
      Parameters:
      attribute - The attribute to add.
    • addCantEditAttribute

      public void addCantEditAttribute(@NotNull @NotNull String attribute)
      Adds an attribute that cannot be edited.
      Parameters:
      attribute - The attribute to add.
    • addAllUnknownAttribute

      public void addAllUnknownAttribute(@NotNull @NotNull Set<String> attributes)
      Adds multiple unknown attributes.
      Parameters:
      attributes - The attributes to add.
    • 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