Package org.apache.druid.server.security
Class ResourceType
- java.lang.Object
-
- org.apache.druid.server.security.ResourceType
-
public class ResourceType extends Object
Set of built-in and 'registered'Resourcetypes for use byAuthorizer
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIGstatic StringDATASOURCEstatic StringEXTERNALstatic StringQUERY_CONTEXTstatic StringSTATEstatic StringSYSTEM_TABLEstatic StringVIEW
-
Constructor Summary
Constructors Constructor Description ResourceType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>knownTypes()Set of 'known'Resourcetypes which have been registered withregisterResourceType(java.lang.String), for use by utility methods looking to construct permission sets for all types (e.g.static voidregisterResourceType(String type)'register' a 'known' type ofResourceto make available viaknownTypes()
-
-
-
Field Detail
-
DATASOURCE
public static final String DATASOURCE
- See Also:
- Constant Field Values
-
VIEW
public static final String VIEW
- See Also:
- Constant Field Values
-
CONFIG
public static final String CONFIG
- See Also:
- Constant Field Values
-
STATE
public static final String STATE
- See Also:
- Constant Field Values
-
SYSTEM_TABLE
public static final String SYSTEM_TABLE
- See Also:
- Constant Field Values
-
QUERY_CONTEXT
public static final String QUERY_CONTEXT
- See Also:
- Constant Field Values
-
EXTERNAL
public static final String EXTERNAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
knownTypes
public static Set<String> knownTypes()
Set of 'known'Resourcetypes which have been registered withregisterResourceType(java.lang.String), for use by utility methods looking to construct permission sets for all types (e.g. 'superuser' permission set)
-
registerResourceType
public static void registerResourceType(String type)
'register' a 'known' type ofResourceto make available viaknownTypes()
-
-