Class RestResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
- Direct Known Subclasses:
AbstractInputsResource
,ActionResource
,AdministrationResource
,AuthServiceBackendsResource
,AuthServicesResource
,AuthServiceTestResource
,AuthzRolesResource
,AvailableEntityTypesResource
,CatalogResource
,ClusterConfigResource
,ClusterResource
,ClusterStatsResource
,CodecTypesResource
,CollectorResource
,ConfigurationResource
,ConfigurationResource
,ConfigurationVariableResource
,ContainsStringTesterResource
,ContentPackResource
,DashboardsResource
,DebugEventsResource
,DebugStreamsResource
,DecoratorResource
,DeflectorResource
,DocumentationBrowserResource
,DocumentationResource
,EnterpriseResource
,EntityScopeResource
,EntitySuggestionResource
,EventDefinitionsResource
,EventNotificationsResource
,EventsResource
,ExportJobsResource
,ExtractorsResource
,FailuresResource
,FieldTypesResource
,GettingStartedResource
,GlobalAuthServiceConfigResource
,GrantsOverviewResource
,GrokResource
,GrokTesterResource
,HelloWorldResource
,IndexerClusterResource
,IndexerOverviewResource
,IndexRangesResource
,IndexSetDefaultsResource
,IndexSetsResource
,IndexTemplatesResource
,IndicesResource
,InputTypesResource
,JournalResource
,JsonTesterResource
,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
,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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAnyPermission
(String[] permissions, String instanceId) protected void
checkPermission
(String permission) protected void
checkPermission
(String permission, String instanceId) protected User
protected IndexSet
getIndexSet
(IndexSetRegistry indexSetRegistry, String indexSetId) protected org.apache.shiro.subject.Subject
protected javax.ws.rs.core.UriBuilder
protected boolean
isAnyPermitted
(String... permissions) protected boolean
isAnyPermitted
(String[] permissions, String instanceId) protected boolean
isPermitted
(String permission) protected boolean
isPermitted
(String permission, String instanceId) void
setPrettyPrint
(boolean prettyPrint)
-
Field Details
-
userService
-
configuration
-
-
Constructor Details
-
RestResource
public RestResource()
-
-
Method Details
-
setPrettyPrint
@QueryParam("pretty") public void setPrettyPrint(boolean prettyPrint) -
getSubject
protected org.apache.shiro.subject.Subject getSubject() -
isPermitted
-
checkPermission
-
isPermitted
-
checkPermission
-
isAnyPermitted
-
isAnyPermitted
-
checkAnyPermission
-
getCurrentUser
-
getUriBuilderToSelf
protected javax.ws.rs.core.UriBuilder getUriBuilderToSelf() -
getIndexSet
-