2021-09-02 19:05:13 -07:00
|
|
|
package com.linkedin.metadata;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Static class containing commonly-used constants across DataHub services.
|
|
|
|
|
*/
|
|
|
|
|
public class Constants {
|
2021-11-22 16:33:14 -08:00
|
|
|
public static final String INTERNAL_DELEGATED_FOR_ACTOR_HEADER_NAME = "X-DataHub-Delegated-For";
|
|
|
|
|
public static final String INTERNAL_DELEGATED_FOR_ACTOR_TYPE = "X-DataHub-Delegated-For-";
|
|
|
|
|
|
2021-09-02 19:05:13 -07:00
|
|
|
public static final String DATAHUB_ACTOR = "urn:li:corpuser:datahub"; // Super user.
|
2021-09-28 16:30:49 -07:00
|
|
|
public static final String SYSTEM_ACTOR = "urn:li:corpuser:__datahub_system"; // DataHub internal service principal.
|
2021-09-22 17:30:15 -07:00
|
|
|
public static final String UNKNOWN_ACTOR = "urn:li:corpuser:UNKNOWN"; // Unknown principal.
|
2021-09-02 19:05:13 -07:00
|
|
|
public static final Long ASPECT_LATEST_VERSION = 0L;
|
2021-09-07 09:31:27 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Entities
|
|
|
|
|
*/
|
|
|
|
|
public static final String CORP_USER_ENTITY_NAME = "corpuser";
|
|
|
|
|
public static final String CORP_GROUP_ENTITY_NAME = "corpGroup";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Aspects
|
|
|
|
|
*/
|
2021-09-02 19:05:13 -07:00
|
|
|
public static final String OWNERSHIP_ASPECT_NAME = "ownership";
|
2021-09-28 10:30:37 -07:00
|
|
|
public static final String INSTITUTIONAL_MEMORY_ASPECT_NAME = "institutionalMemory";
|
2021-10-07 16:14:35 -07:00
|
|
|
public static final String CORP_GROUP_INFO_ASPECT_NAME = "corpGroupInfo";
|
|
|
|
|
public static final String CORP_GROUP_KEY_ASPECT_NAME = "corpGroupKey";
|
|
|
|
|
public static final String GROUP_MEMBERSHIP_ASPECT_NAME = "groupMembership";
|
|
|
|
|
public static final String CORP_USER_STATUS_ASPECT_NAME = "corpUserStatus";
|
|
|
|
|
public static final String CORP_USER_KEY_ASPECT_NAME = "corpUserKey";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* User Status
|
|
|
|
|
*/
|
|
|
|
|
public static final String CORP_USER_STATUS_ACTIVE = "ACTIVE";
|
2021-09-07 09:31:27 -07:00
|
|
|
|
2021-09-02 19:05:13 -07:00
|
|
|
private Constants() { }
|
|
|
|
|
}
|