Class CanViewUsageStatisticsFeature

  • All Implemented Interfaces:
    AuthorizationFeature

    @Component
    @AuthorizationFeatureDocumentation(name="canViewUsageStatistics",
                                       description="It can be used to verify if statistics can be viewed")
    public class CanViewUsageStatisticsFeature
    extends Object
    implements AuthorizationFeature
    The view statistics feature. It can be used to verify if statistics can be viewed. In case DSpace is configured to only show statistics to administrators, authorization is granted if the current user is the object's admin. Otherwise, authorization is granted if the current user can view the object.