Package org.openmetadata.service
Class ResourceRegistry
- java.lang.Object
-
- org.openmetadata.service.ResourceRegistry
-
public class ResourceRegistry extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static List<MetadataOperation>COMMON_OPERATIONSprotected static Map<MetadataOperation,String>EDIT_OPERATION_TO_OPERATION_MAPprotected static Map<String,MetadataOperation>FIELD_TO_EDIT_OPERATION_MAP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddResource(String resourceName, List<MetadataOperation> entitySpecificOperations, Set<String> entityFields)static String[]getEditableFields()static MetadataOperationgetEditOperation(String field)Given an entity field name get the corresponding entity edit operationstatic StringgetField(MetadataOperation operation)Given an edit operation get the corresponding entity fieldstatic ResourceDescriptorgetResourceDescriptor(String resourceType)static List<ResourceDescriptor>listResourceDescriptors()
-
-
-
Field Detail
-
FIELD_TO_EDIT_OPERATION_MAP
protected static final Map<String,MetadataOperation> FIELD_TO_EDIT_OPERATION_MAP
-
EDIT_OPERATION_TO_OPERATION_MAP
protected static final Map<MetadataOperation,String> EDIT_OPERATION_TO_OPERATION_MAP
-
COMMON_OPERATIONS
protected static final List<MetadataOperation> COMMON_OPERATIONS
-
-
Method Detail
-
addResource
public static void addResource(String resourceName, List<MetadataOperation> entitySpecificOperations, Set<String> entityFields)
-
listResourceDescriptors
public static List<ResourceDescriptor> listResourceDescriptors()
-
getResourceDescriptor
public static ResourceDescriptor getResourceDescriptor(String resourceType)
-
getEditOperation
public static MetadataOperation getEditOperation(String field)
Given an entity field name get the corresponding entity edit operation
-
getField
public static String getField(MetadataOperation operation)
Given an edit operation get the corresponding entity field
-
getEditableFields
public static String[] getEditableFields()
-
-