CaosDBToGrpcConverters

public class CaosDBToGrpcConverters

Constructors

CaosDBToGrpcConverters

public CaosDBToGrpcConverters(TimeZone timeZone)

Methods

appendMessages

public void appendMessages(EntityInterface from, org.caosdb.api.entity.v1.EntityResponse.Builder builder)

appendMessages

public void appendMessages(EntityInterface from, org.caosdb.api.entity.v1.IdResponse.Builder builder)

convert

public EntityResponse.Builder convert(EntityInterface from)

convert

public Iterable<? extends org.caosdb.api.entity.v1.Message> convert(List<Message> messages)

convert

public org.caosdb.api.entity.v1.Message convert(Message m)

convert

public Version convert(org.caosdb.server.entity.Version from)

convert

public Parent convert(org.caosdb.server.entity.wrapper.Parent from)

convert

public org.caosdb.api.entity.v1.Property convert(Property from)

convert

public Iterable<? extends Parent> convert(ParentContainer from)

convertACL

public EntityACL convertACL(EntityInterface e)

convertProperties

public Iterable<? extends org.caosdb.api.entity.v1.Property> convertProperties(EntityInterface from)

convertScalarValue

protected ScalarValue.Builder convertScalarValue(Value value)

convertSelectResult

public org.caosdb.api.entity.v1.SelectQueryResult.Builder convertSelectResult(RetrieveContainer container)

getMessageCode

public static MessageCode getMessageCode(Message m)

getSelectedValue

org.caosdb.api.entity.v1.Value.Builder getSelectedValue(Selection s, EntityInterface e)

getStringUnit

public String getStringUnit(EntityInterface entity)

Get the unit as string.