Commit b2a77d0f by Diego Marino Monetti

Missing AtlasEntityDef constructor for serviceType

parent 2c0a8bcc
......@@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.apache.atlas.model.PList;
import org.apache.atlas.model.SearchFilter.SortType;
import org.apache.atlas.model.TypeCategory;
......@@ -60,23 +61,32 @@ public class AtlasEntityDef extends AtlasStructDef implements java.io.Serializab
public AtlasEntityDef() {
this(null, null, null, null, null, null);
this(null, null, null, null, null, null, null);
}
public AtlasEntityDef(String name) {
this(name, null, null, null, null, null);
this(name, null, null, null, null, null, null);
}
public AtlasEntityDef(String name, String description) {
this(name, description, null, null, null, null);
this(name, description, null, null, null, null, null);
}
public AtlasEntityDef(String name, String description, String typeVersion) {
this(name, description, typeVersion, null, null, null);
this(name, description, typeVersion, null, null, null, null);
}
public AtlasEntityDef(String name, String description, String typeVersion, String serviceType) {
this(name, description, typeVersion, serviceType, null, null, null);
}
public AtlasEntityDef(String name, String description, String typeVersion, List<AtlasAttributeDef> attributeDefs) {
this(name, description, typeVersion, attributeDefs, null, null);
this(name, description, typeVersion, attributeDefs, null);
}
public AtlasEntityDef(String name, String description, String typeVersion, String serviceType, List<AtlasAttributeDef> attributeDefs) {
this(name, description, typeVersion, serviceType, attributeDefs, null, null);
}
public AtlasEntityDef(String name, String description, String typeVersion, List<AtlasAttributeDef> attributeDefs,
......@@ -84,6 +94,12 @@ public class AtlasEntityDef extends AtlasStructDef implements java.io.Serializab
this(name, description, typeVersion, attributeDefs, superTypes, null);
}
public AtlasEntityDef(String name, String description, String typeVersion, String serviceType, List<AtlasAttributeDef> attributeDefs,
Set<String> superTypes) {
this(name, description, typeVersion, serviceType, attributeDefs, superTypes, null);
}
public AtlasEntityDef(String name, String description, String typeVersion, List<AtlasAttributeDef> attributeDefs,
Set<String> superTypes, Map<String, String> options) {
super(TypeCategory.ENTITY, name, description, typeVersion, attributeDefs, options);
......@@ -91,12 +107,23 @@ public class AtlasEntityDef extends AtlasStructDef implements java.io.Serializab
setSuperTypes(superTypes);
}
public AtlasEntityDef(String name, String description, String typeVersion, String serviceType, List<AtlasAttributeDef> attributeDefs,
Set<String> superTypes, Map<String, String> options) {
super(TypeCategory.ENTITY, name, description, typeVersion, attributeDefs, serviceType, options);
setSuperTypes(superTypes);
}
public AtlasEntityDef(AtlasEntityDef other) {
super(other);
setSuperTypes(other != null ? other.getSuperTypes() : null);
}
public Set<String> getSuperTypes() {
return superTypes;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment