Esempio n. 1
0
        public Dictionary <string, object> GetOne(string contentType, int id)
        {
            InitEavAndSerializer();
            IEntity itm = _entitiesController.GetEntityOrThrowError(contentType, id, appId: App.AppId);

            PerformSecurityCheck(contentType, PermissionGrant.Read, true, itm);
            return(_entitiesController.GetOne(contentType, id));
        }
Esempio n. 2
0
        public Dictionary <string, object> GetOne(string contentType, int id, string appPath = null)
        {
            // if app-path specified, use that app, otherwise use from context
            var appId = GetAppIdFromPathOrContext(appPath);

            InitEavAndSerializer(appId);
            IEntity itm = _entitiesController.GetEntityOrThrowError(contentType, id, appId);

            PerformSecurityCheck(contentType, PermissionGrant.Read, true, itm, useContext: appPath == null, appId: appId);
            return(_entitiesController.GetOne(contentType, id));
        }
Esempio n. 3
0
 public Dictionary <string, object> GetOne(string contentType, int id)
 {
     InitEavAndSerializer();
     PerformSecurityCheck(contentType, PermissionGrant.Read, true);
     return(_entitiesController.GetOne(contentType, id));
 }