Package org.openmetadata.service
Class Entity
java.lang.Object
org.openmetadata.service.Entity
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass for getting validated entity list from a queryParam with list of entities. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchIndexbuildSearchIndex(String entityType, Object entity) static voidcleanup()static voiddeleteEntity(String updatedBy, String entityType, UUID entityId, boolean recursive, boolean hardDelete) static <T> TgetDao()static <T> Tstatic <T> TRetrieve the entity using id from given entity reference and fieldsstatic <T> TgetEntity(EntityReference ref, String fields, Include include) static <T> TgetEntity(MessageParser.EntityLink link, String fields, Include include) static <T> TgetEntityByName(String entityType, String fqn, String fields, Include include) static <T> TgetEntityByName(String entityType, String fqn, String fields, Include include, boolean fromCache) Retrieve the entity using id from given entity reference and fieldsstatic Class<? extends EntityInterface>getEntityClassFromType(String entityType) getEntityFields(Class<T> clz) Get list of all the entity field names from JsonPropertyOrder annotation from generated java class from entity.jsonstatic EntityReferencegetEntityReference(EntityReference ref, Include include) static EntityReferencegetEntityReferenceById(@NonNull String entityType, @NonNull UUID id, Include include) static EntityReferencegetEntityReferenceByName(@NonNull String entityType, String fqn, Include include) static EntityRepository<? extends EntityInterface>getEntityRepository(@NonNull String entityType) Retrieve the corresponding entity repository for a given entity name.getEntityTags(String entityType, EntityInterface entity) static Class<? extends EntityTimeSeriesInterface>getEntityTimeSeriesClassFromType(String entityType) static EntityTimeSeriesRepository<? extends EntityTimeSeriesInterface>getEntityTimeSeriesRepository(@NonNull String entityType) static <T> StringgetEntityTypeFromClass(Class<T> clz) static StringgetEntityTypeFromObject(Object object) static EntityUtil.Fieldsstatic EntityReferencegetOwner(@NonNull EntityReference reference) static EntityRepository<? extends EntityInterface>getServiceEntityRepository(@NonNull ServiceType serviceType) Retrieve the corresponding entity repository for a given entity name.static voidinitializeRepositories(OpenMetadataApplicationConfig config, org.jdbi.v3.core.Jdbi jdbi) static <T extends FieldInterface>
voidpopulateEntityFieldTags(String entityType, List<T> fields, String fqnPrefix, boolean setTags) static <T extends EntityInterface>
voidregisterEntity(Class<T> clazz, String entity, EntityRepository<T> entityRepository) static <T extends EntityTimeSeriesInterface>
voidregisterEntity(Class<T> clazz, String entity, EntityTimeSeriesRepository<T> entityRepository) static voidregisterResourcePermissions(String entity, List<MetadataOperation> entitySpecificOperations) static voidstatic voidrestoreEntity(String updatedBy, String entityType, UUID entityId) static booleansupportsFeed(String entityType) Returns true if the entity supports activity feeds, announcement, and tasksstatic voidwithHref(javax.ws.rs.core.UriInfo uriInfo, List<EntityReference> list) static voidwithHref(javax.ws.rs.core.UriInfo uriInfo, EntityReference ref)
-
Field Details
-
SEPARATOR
- See Also:
-
FIELD_OWNER
- See Also:
-
FIELD_NAME
- See Also:
-
FIELD_DESCRIPTION
- See Also:
-
FIELD_FOLLOWERS
- See Also:
-
FIELD_VOTES
- See Also:
-
FIELD_TAGS
- See Also:
-
FIELD_DELETED
- See Also:
-
FIELD_PIPELINE_STATUS
- See Also:
-
FIELD_DISPLAY_NAME
- See Also:
-
FIELD_EXTENSION
- See Also:
-
FIELD_USAGE_SUMMARY
- See Also:
-
FIELD_CHILDREN
- See Also:
-
FIELD_PARENT
- See Also:
-
FIELD_REVIEWERS
- See Also:
-
FIELD_EXPERTS
- See Also:
-
FIELD_DOMAIN
- See Also:
-
FIELD_DATA_PRODUCTS
- See Also:
-
FIELD_ASSETS
- See Also:
-
FIELD_STYLE
- See Also:
-
FIELD_LIFE_CYCLE
- See Also:
-
FIELD_DISABLED
- See Also:
-
DATABASE_SERVICE
- See Also:
-
MESSAGING_SERVICE
- See Also:
-
DASHBOARD_SERVICE
- See Also:
-
PIPELINE_SERVICE
- See Also:
-
STORAGE_SERVICE
- See Also:
-
MLMODEL_SERVICE
- See Also:
-
METADATA_SERVICE
- See Also:
-
SEARCH_SERVICE
- See Also:
-
TABLE
- See Also:
-
STORED_PROCEDURE
- See Also:
-
DATABASE
- See Also:
-
DATABASE_SCHEMA
- See Also:
-
METRICS
- See Also:
-
DASHBOARD
- See Also:
-
DASHBOARD_DATA_MODEL
- See Also:
-
PIPELINE
- See Also:
-
TASK
- See Also:
-
CHART
- See Also:
-
APPLICATION
- See Also:
-
APP_MARKET_PLACE_DEF
- See Also:
-
REPORT
- See Also:
-
TOPIC
- See Also:
-
SEARCH_INDEX
- See Also:
-
MLMODEL
- See Also:
-
CONTAINER
- See Also:
-
QUERY
- See Also:
-
GLOSSARY
- See Also:
-
GLOSSARY_TERM
- See Also:
-
TAG
- See Also:
-
CLASSIFICATION
- See Also:
-
TYPE
- See Also:
-
TEST_DEFINITION
- See Also:
-
TEST_CONNECTION_DEFINITION
- See Also:
-
TEST_SUITE
- See Also:
-
KPI
- See Also:
-
TEST_CASE
- See Also:
-
WEB_ANALYTIC_EVENT
- See Also:
-
DATA_INSIGHT_CHART
- See Also:
-
POLICY
- See Also:
-
POLICIES
- See Also:
-
ROLE
- See Also:
-
USER
- See Also:
-
TEAM
- See Also:
-
PERSONA
- See Also:
-
BOT
- See Also:
-
INGESTION_PIPELINE
- See Also:
-
DOMAIN
- See Also:
-
DATA_PRODUCT
- See Also:
-
EVENT_SUBSCRIPTION
- See Also:
-
THREAD
- See Also:
-
SUGGESTION
- See Also:
-
WORKFLOW
- See Also:
-
ENTITY_REPORT_DATA
- See Also:
-
TEST_CASE_RESOLUTION_STATUS
- See Also:
-
WEB_ANALYTIC_ENTITY_VIEW_REPORT_DATA
- See Also:
-
WEB_ANALYTIC_USER_ACTIVITY_REPORT_DATA
- See Also:
-
RAW_COST_ANALYSIS_REPORT_DATA
- See Also:
-
AGGREGATED_COST_ANALYSIS_REPORT_DATA
- See Also:
-
ADMIN_USER_NAME
- See Also:
-
ORGANIZATION_NAME
- See Also:
-
ORGANIZATION_POLICY_NAME
- See Also:
-
INGESTION_BOT_NAME
- See Also:
-
INGESTION_BOT_ROLE
- See Also:
-
PROFILER_BOT_NAME
- See Also:
-
PROFILER_BOT_ROLE
- See Also:
-
QUALITY_BOT_NAME
- See Also:
-
QUALITY_BOT_ROLE
- See Also:
-
ALL_RESOURCES
- See Also:
-
DOCUMENT
- See Also:
-
-
Method Details
-
initializeRepositories
public static void initializeRepositories(OpenMetadataApplicationConfig config, org.jdbi.v3.core.Jdbi jdbi) -
cleanup
public static void cleanup() -
registerEntity
public static <T extends EntityInterface> void registerEntity(Class<T> clazz, String entity, EntityRepository<T> entityRepository) -
registerEntity
public static <T extends EntityTimeSeriesInterface> void registerEntity(Class<T> clazz, String entity, EntityTimeSeriesRepository<T> entityRepository) -
registerResourcePermissions
public static void registerResourcePermissions(String entity, List<MetadataOperation> entitySpecificOperations) -
registerTimeSeriesResourcePermissions
-
getEntityList
-
getEntityReference
-
getEntityReferenceById
public static EntityReference getEntityReferenceById(@NonNull @NonNull String entityType, @NonNull @NonNull UUID id, Include include) -
getEntityReferenceByName
public static EntityReference getEntityReferenceByName(@NonNull @NonNull String entityType, String fqn, Include include) -
getOwner
-
withHref
-
withHref
-
getFields
-
getEntity
-
getEntity
-
getEntity
public static <T> T getEntity(String entityType, UUID id, String fields, Include include, boolean fromCache) Retrieve the entity using id from given entity reference and fields -
getEntity
-
getEntityByName
public static <T> T getEntityByName(String entityType, String fqn, String fields, Include include, boolean fromCache) Retrieve the entity using id from given entity reference and fields -
getEntityByName
-
getEntityRepository
public static EntityRepository<? extends EntityInterface> getEntityRepository(@NonNull @NonNull String entityType) Retrieve the corresponding entity repository for a given entity name. -
getEntityTimeSeriesRepository
public static EntityTimeSeriesRepository<? extends EntityTimeSeriesInterface> getEntityTimeSeriesRepository(@NonNull @NonNull String entityType) -
getServiceEntityRepository
public static EntityRepository<? extends EntityInterface> getServiceEntityRepository(@NonNull @NonNull ServiceType serviceType) Retrieve the corresponding entity repository for a given entity name. -
getEntityTags
-
deleteEntity
-
restoreEntity
-
getEntityTypeFromClass
-
getEntityTypeFromObject
-
getEntityClassFromType
-
getEntityTimeSeriesClassFromType
public static Class<? extends EntityTimeSeriesInterface> getEntityTimeSeriesClassFromType(String entityType) -
getEntityFields
Get list of all the entity field names from JsonPropertyOrder annotation from generated java class from entity.json -
supportsFeed
Returns true if the entity supports activity feeds, announcement, and tasks -
populateEntityFieldTags
public static <T extends FieldInterface> void populateEntityFieldTags(String entityType, List<T> fields, String fqnPrefix, boolean setTags) -
buildSearchIndex
-
getDao
public static <T> T getDao()
-