use of io.lumeer.storage.mongodb.model.MorphiaOrganization in project engine by Lumeer.
the class MorphiaOrganizationDao method updateOrganization.
@Override
public Organization updateOrganization(final String organizationId, final Organization organization) {
MorphiaOrganization morphiaOrganization = new MorphiaOrganization(organization);
morphiaOrganization.setId(organizationId);
datastore.save(morphiaOrganization);
return morphiaOrganization;
}
use of io.lumeer.storage.mongodb.model.MorphiaOrganization in project engine by Lumeer.
the class MorphiaOrganizationDao method getOrganizations.
@Override
public List<Organization> getOrganizations(final DatabaseQuery query) {
Query<MorphiaOrganization> organizationQuery = createOrganizationQuery(query);
FindOptions findOptions = createFindOptions(query);
return new ArrayList<>(organizationQuery.asList(findOptions));
}
Aggregations