Class IncludePolicy
java.lang.Object
com.kazforge.jsonapi.representation.IncludePolicy
Decides which relationships may be traversed for compound-document inclusion.
Policy governs inclusion traversal only. Linkage emission on selected resources remains unaffected.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IncludePolicyallowAll()Permits every mapped relationship for inclusion traversal.static IncludePolicyallowing(Set<RelationshipAllowance> allowances) Permits only the given owner-type + relationship allowances.booleanReturns whether inclusion traversal may followrelationshipNameon a resource whose JSON:API type isownerResourceType.static IncludePolicydenyAll()Rejects every relationship for inclusion traversal.booleaninthashCode()
-
Method Details
-
denyAll
Rejects every relationship for inclusion traversal. -
allowAll
Permits every mapped relationship for inclusion traversal. -
allowing
Permits only the given owner-type + relationship allowances. The allowance set is defensively copied. -
allows
Returns whether inclusion traversal may followrelationshipNameon a resource whose JSON:API type isownerResourceType. -
equals
-
hashCode
public int hashCode()
-