getModelsSharedWith<T extends AtCollectionModel> static method
Returns list of AtCollectionModels that are shared with the given atSign
Returns an empty list when nothing has been shared
Instance of AtJsonCollectionModel
is returned If a specific factory class for a given collection name is not registered
Factory class for a collectionName can be registered using method AtCollectionModel.registerFactories(factories)
Implementation
static Future<List<T>> getModelsSharedWith<T extends AtCollectionModel>(
String atSign) async {
_logger.finer('get models shared with atSign:$atSign');
AtCollectionModelFactoryManager.getInstance()
.register(_jsonCollectionModelFactory);
AtUtils.fixAtSign(atSign);
return _atCollectionQueryOperations.getModelsSharedWith(atSign);
}