Package overit.geocall.edm.model
Class AttributesSummary
java.lang.Object
overit.geocall.edm.model.AttributesSummary
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllUnknownAttribute(@NotNull Set<String> attributes) Adds multiple unknown attributes.voidaddAllUnknownCriteria(@NotNull Set<String> attributes) Adds multiple unknown criteria to the summary.voidaddCantEditAttribute(@NotNull String attribute) Adds an attribute that cannot be edited.voidaddCantViewAttribute(@NotNull String attribute) Adds an attribute that cannot be viewed.voidaddUnknownCriteria(@NotNull String criteria) Adds an unknown criteria.booleanGets the set of attributes that cannot be edited.Gets the set of attributes that cannot be viewed.Gets the set of unknown attributes.Gets an unmodifiable view of the unknown criteria set.booleanChecks if there are any attributes that cannot be edited.booleanChecks if there are any attributes that cannot be viewed.inthashCode()booleanChecks if there are any unknown attributes.booleanChecks if there are any unknown criteria in the summary.toString()
-
Constructor Details
-
AttributesSummary
public AttributesSummary()
-
-
Method Details
-
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:
trueif there are unknown criteria,falseotherwise
-
addAllUnknownCriteria
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
Adds an unknown criteria.- Parameters:
criteria- The criteria to add.
-
getCantViewAttributes
Gets the set of attributes that cannot be viewed.- Returns:
- An unmodifiable set of attributes.
-
getCantEditAttributes
Gets the set of attributes that cannot be edited.- Returns:
- An unmodifiable set of attributes.
-
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
Adds an attribute that cannot be viewed.- Parameters:
attribute- The attribute to add.
-
addCantEditAttribute
Adds an attribute that cannot be edited.- Parameters:
attribute- The attribute to add.
-
addAllUnknownAttribute
Adds multiple unknown attributes.- Parameters:
attributes- The attributes to add.
-
equals
-
hashCode
public int hashCode() -
toString
-