Class StatisticsPolicyEnforcementPoint
java.lang.Object
org.gcube.informationsystem.resourceregistry.pep.PolicyEnforcementPoint
org.gcube.informationsystem.resourceregistry.statistics.StatisticsPolicyEnforcementPoint
Policy Enforcement Point (PEP) for the public statistics.
The statistics are public: the request carries no token and no role is checked. The endpoint accepts no query parameter; any one sent is ignored with a warning.
- Author:
- Luca Frosini (ISTI - CNR)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gcube.informationsystem.resourceregistry.pep.PolicyEnforcementPoint
PolicyEnforcementPoint.EndpointPolicySpec, PolicyEnforcementPoint.QueryParamSpec, PolicyEnforcementPoint.TokenScopeRule -
Field Summary
Fields inherited from class org.gcube.informationsystem.resourceregistry.pep.PolicyEnforcementPoint
ALL_ADMIN_ROLES, ALL_OPERATIONAL_ROLES, CONTEXT_MANAGER, DEPTH_DEFAULT, GLOBAL_PRIVILEGED_ROLES, INFRASTRUCTURE_MANAGER, IS_ADMIN, IS_CONTRIBUTOR, IS_EDITOR, IS_MANAGER, IS_MEMBER, LEGACY_ALL_META_QUERY_PARAMETER, LEGACY_INCLUDE_META_QUERY_PARAMETER, LIMIT_DEFAULT, LIMIT_MAX, MEMBERSHIP_SCOPE_PARAM_SPEC, OFFSET_DEFAULT, requestContext, UNIVERSAL_ROLES -
Constructor Summary
ConstructorsConstructorDescriptionStatisticsPolicyEnforcementPoint(jakarta.ws.rs.container.ContainerRequestContext requestContext) -
Method Summary
Methods inherited from class org.gcube.informationsystem.resourceregistry.pep.PolicyEnforcementPoint
addContentWarning, addIgnoredFieldsWarning, addLink, addPaginationLinks, addPreferenceApplied, addQueryParameterWarning, addResultScope, buildUri, enforceAllowedRoles, enforcePolicy, enforcePrivilegedQueryParameters, enforceTargetContextWithinTokenSubtree, getAllWarnings, getContentLocation, getContentWarnings, getIgnoredFieldsWarnings, getLinks, getPreferenceApplied, getQueryParameterWarnings, getRawQueryParameter, getResolvedContextPath, getResultScopes, getUriInfo, invalidQueryParameterValue, isAdministrativeUser, isPrivilegedUser, isUniversalUser, isUserAllowed, reportStateFilteredInstances, requireLiveTokenContext, resolveAllMeta, resolveBoolean, resolveBypassHierarchyCheck, resolveContextsPolicy, resolveDepth, resolveDepth, resolveDryRun, resolveEnum, resolveHierarchical, resolveIncludeMeta, resolveLimit, resolveMembershipScope, resolveMembershipView, resolveMetadataPolicy, resolveOffset, resolvePolymorphic, resolvePropagationMode, resolveRawResult, resolveTokenContextUuid, setContentLocation, validateQueryParameters, warnEnrichmentParametersIgnored, warnEnrichmentParametersIgnoredByEmitProjection
-
Constructor Details
-
StatisticsPolicyEnforcementPoint
public StatisticsPolicyEnforcementPoint(jakarta.ws.rs.container.ContainerRequestContext requestContext) - Parameters:
requestContext- the JAX-RSContainerRequestContextfor the current request
-
-
Method Details
-
read
public String read() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionReturns the last computed statistics.- Returns:
- the statistics document as JSON
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the document cannot be serialized
-