public DeleteDataPermission ( long subjectId, long entityId, long dataId, RightType rightType ) : bool | ||
subjectId | long | |
entityId | long | |
dataId | long | |
rightType | RightType | |
return | bool |
public bool DeleteDataPermission(long subjectId, long entityId, long dataId, int rightType) { PermissionManager permissionManager = new PermissionManager(); permissionManager.DeleteDataPermission(subjectId, entityId, dataId, (RightType)rightType); return true; }
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); }