This is an automated email from the ASF dual-hosted git repository.
nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 985264e ATLAS-3780 : Change 'Status' from Classification System
Attributes to EntityStatus
985264e is described below
commit 985264e129687e4d2c6bfaaa92f6a6550a106e89
Author: Pinal Shah <[email protected]>
AuthorDate: Mon Jun 8 20:41:56 2020 +0530
ATLAS-3780 : Change 'Status' from Classification System Attributes to
EntityStatus
---
.../java/org/apache/atlas/type/AtlasClassificationType.java | 11 +++--------
intg/src/main/java/org/apache/atlas/type/Constants.java | 3 +++
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git
a/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
b/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
index 4d0179c..e0843cb 100644
--- a/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
+++ b/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
@@ -18,14 +18,8 @@
package org.apache.atlas.type;
import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_DATE;
-import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_LONG;
import static
org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_STRING;
-import static org.apache.atlas.type.Constants.CREATED_BY_KEY;
-import static
org.apache.atlas.type.Constants.MODIFICATION_TIMESTAMP_PROPERTY_KEY;
-import static org.apache.atlas.type.Constants.MODIFIED_BY_KEY;
-import static org.apache.atlas.type.Constants.STATE_PROPERTY_KEY;
-import static org.apache.atlas.type.Constants.TIMESTAMP_PROPERTY_KEY;
-import static org.apache.atlas.type.Constants.TYPE_NAME_PROPERTY_KEY;
+import static org.apache.atlas.type.Constants.*;
import org.apache.atlas.AtlasErrorCode;
import org.apache.atlas.exception.AtlasBaseException;
@@ -515,7 +509,8 @@ public class AtlasClassificationType extends
AtlasStructType {
add(new AtlasAttributeDef(MODIFICATION_TIMESTAMP_PROPERTY_KEY,
ATLAS_TYPE_DATE, false, true));
add(new AtlasAttributeDef(MODIFIED_BY_KEY, ATLAS_TYPE_STRING,
false, true));
add(new AtlasAttributeDef(CREATED_BY_KEY, ATLAS_TYPE_STRING,
false, true));
- add(new AtlasAttributeDef(STATE_PROPERTY_KEY, ATLAS_TYPE_STRING,
false, true));
+ add(new
AtlasAttributeDef(CLASSIFICATION_ENTITY_STATUS_PROPERTY_KEY, ATLAS_TYPE_STRING,
false, true));
+
}};
AtlasClassificationDef classificationDef = new
AtlasClassificationDef(CLASSIFICATION_ROOT_NAME, "Root classification for
system attributes", "1.0", attributeDefs);
diff --git a/intg/src/main/java/org/apache/atlas/type/Constants.java
b/intg/src/main/java/org/apache/atlas/type/Constants.java
index 3fc1305..7ee8520 100644
--- a/intg/src/main/java/org/apache/atlas/type/Constants.java
+++ b/intg/src/main/java/org/apache/atlas/type/Constants.java
@@ -48,5 +48,8 @@ public final class Constants {
public static final String PROPAGATED_CLASSIFICATION_NAMES_KEY =
encodePropertyKey(INTERNAL_PROPERTY_KEY_PREFIX +
"propagatedClassificationNames");
public static final String IS_INCOMPLETE_PROPERTY_KEY =
encodePropertyKey(INTERNAL_PROPERTY_KEY_PREFIX + "isIncomplete");
+ //Classification-Only System Attributes
+ public static final String CLASSIFICATION_ENTITY_STATUS_PROPERTY_KEY =
encodePropertyKey(INTERNAL_PROPERTY_KEY_PREFIX + "entityStatus");
+
private Constants() {}
}
\ No newline at end of file