public IEnumerable <Dictionary <string, object> > GetEntities(string contentType, string cultureCode = null) { // todo: check if we could change it to optionally also just deliver the "own" entities - as of now, not supported InitEavAndSerializer(); PerformSecurityCheck(contentType, PermissionGrant.Read, true); return(_entitiesController.GetEntities(contentType, cultureCode)); }
public IEnumerable <Dictionary <string, object> > GetEntities(string contentType, string appPath = null, string cultureCode = null) { Log.Add($"get entities type:{contentType}, path:{appPath}, culture:{cultureCode}"); // if app-path specified, use that app, otherwise use from context var appId = GetAppIdFromPathOrContext_AndInitEavAndSerializer(appPath); PerformSecurityCheck(contentType, PermissionGrant.Read, true, useContext: appPath == null, appId: appId); return(_entitiesController.GetEntities(contentType, cultureCode)); }
public IEnumerable <Dictionary <string, object> > GetEntities(string contentType, string cultureCode = null) { InitEavAndSerializer(); PerformSecurityCheck(contentType, PermissionGrant.Read, true); return(_entitiesController.GetEntities(contentType, cultureCode)); }