MCPcopy Create free account
hub / github.com/pydio/cells / GetMetaEntityValues

Method GetMetaEntityValues

idm/meta/dao/sql/ev-sql.go:305–316  ·  view source on GitHub ↗

GetMetaEntityValues retrieves the meta entity values linked to a given meta UUID

(ctx context.Context, metaUuid string)

Source from the content-addressed store, hash-verified

303
304// GetMetaEntityValues retrieves the meta entity values linked to a given meta UUID
305func (s *evSqlImpl) GetMetaEntityValues(ctx context.Context, metaUuid string) ([]*idm.EntityValue, error) {
306 result, err := s.GetMetaEntityValuesMap(ctx, []string{metaUuid})
307 if err != nil {
308 return nil, err
309 }
310
311 if values, ok := result[metaUuid]; ok {
312 return values, nil
313 }
314
315 return []*idm.EntityValue{}, nil
316}
317
318// DeleteEntity deletes an entity and all its values, as well as the links between those values and any meta
319func (s *evSqlImpl) DeleteEntity(ctx context.Context, entityID string) (*idm.DeleteEntityValuesResponse, error) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected