DeleteDataPermission() публичный Метод

public DeleteDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool
subjectId long
entityId long
dataId long
rightType RightType
Результат bool
Пример #1
0
        public bool DeleteDataPermission(long subjectId, long entityId, long dataId, int rightType)
        {
            PermissionManager permissionManager = new PermissionManager();

            permissionManager.DeleteDataPermission(subjectId, entityId, dataId, (RightType)rightType);

            return true;
        }
Пример #2
0
        public void ConcealDataset(long entityId, long datasetId)
        {
            PermissionManager permissionManager = new PermissionManager();
            SubjectManager subjectManager = new SubjectManager();

            Group group = subjectManager.GetGroupByName("everyone");

            permissionManager.DeleteDataPermission(group.Id, entityId, datasetId, RightType.View);
        }