Class RestResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
Direct Known Subclasses:
AbstractInputsResource, ActionResource, AdministrationResource, AuthServiceBackendsResource, AuthServicesResource, AuthServiceTestResource, AuthzRolesResource, AvailableEntityTypesResource, AWSConfigurationResource, CatalogResource, ClusterConfigResource, ClusterResource, ClusterStatsResource, CodecTypesResource, CollectorResource, ConfigurationResource, ConfigurationResource, ConfigurationVariableResource, ContainsStringTesterResource, ContentPackResource, ContentStreamResource, DashboardsResource, DebugEventsResource, DebugStreamsResource, DecoratorResource, DeflectorResource, DocumentationBrowserResource, DocumentationResource, EnterpriseResource, EntityScopeResource, EntitySuggestionResource, EventDefinitionsResource, EventNotificationsResource, EventsResource, ExportJobsResource, ExtractorsResource, FailuresResource, FieldTypeMappingsResource, FieldTypesResource, GettingStartedResource, GlobalAuthServiceConfigResource, GrantsOverviewResource, GrokResource, GrokTesterResource, HelloWorldResource, IndexerClusterResource, IndexerOverviewResource, IndexRangesResource, IndexSetDefaultsResource, IndexSetsMappingResource, IndexSetsResource, IndexTemplatesResource, IndicesResource, InputTypesResource, JournalResource, JsonTesterResource, KinesisSetupResource, LoadBalancerStatusResource, LoggersResource, LookupTableResource, LookupTableTesterResource, MessageProcessorsResource, MessageResource, MessagesResource, MessagesResource, MetricsResource, NaturalDateTesterResource, NotificationsResource, OutputResource, PermissionsResource, PipelineConnectionsResource, PipelineResource, PivotSeriesFunctionsResource, ProxiedResource, QualifyingViewsResource, QueryValidationResource, RegexReplaceTesterResource, RegexTesterResource, RestResourceWithOwnerCheck, RetentionStrategyResource, RolesResource, RotationStrategyResource, RuleBuilderResource, RuleResource, SavedSearchesResource, ScriptingApiResource, SearchMetadataResource, SearchResource, SearchResource, SearchVersionResource, ServiceManagerResource, SessionsResource, SidecarResource, SimulatorResource, SplitAndIndexTesterResource, StartPageResource, StaticFieldsResource, StatsResource, StreamOutputResource, StreamResource, StreamRuleInputsResource, StreamRuleResource, SubstringTesterResource, SuggestionsResource, SupportBundleResource, SystemFieldsResource, SystemJobResource, SystemNotificationRenderResource, SystemPluginResource, SystemProcessingResource, SystemProcessingStatusResource, SystemResource, SystemShutdownResource, TelemetryResource, ThroughputResource, TrafficResource, UrlWhitelistResource, UsersResource, ViewsResource

public abstract class RestResource extends Object
  • Field Details

  • Constructor Details

    • RestResource

      public RestResource()
  • Method Details

    • setPrettyPrint

      @QueryParam("pretty") public void setPrettyPrint(boolean prettyPrint)
    • getSubject

      protected org.apache.shiro.subject.Subject getSubject()
    • isPermitted

      protected boolean isPermitted(String permission, String instanceId)
    • checkPermission

      protected void checkPermission(String permission)
    • isPermitted

      protected boolean isPermitted(String permission)
    • checkPermission

      protected void checkPermission(String permission, String instanceId)
    • isAnyPermitted

      protected boolean isAnyPermitted(String[] permissions, String instanceId)
    • isAnyPermitted

      protected boolean isAnyPermitted(String... permissions)
    • checkAnyPermission

      protected void checkAnyPermission(String[] permissions, String instanceId)
    • getCurrentUser

      @Nullable protected User getCurrentUser()
    • getUriBuilderToSelf

      protected javax.ws.rs.core.UriBuilder getUriBuilderToSelf()
    • getIndexSet

      protected IndexSet getIndexSet(IndexSetRegistry indexSetRegistry, String indexSetId)