use of org.whole.lang.artifacts.model.PersistenceKitId in project whole by wholeplatform.
the class ArtifactsUtils method getPersistenceKitId.
public static String getPersistenceKitId(IEntity artifact) {
IEntity metaData = artifact.wGet(metadata);
if (!EntityUtils.isNotResolver(metaData))
return null;
PersistenceKitId persistenceKitId = ((Metadata) metaData).getPersistenceKitId();
return DataTypeUtils.getDataKind(persistenceKitId).isString() ? persistenceKitId.getValue() : null;
}
Aggregations