public void RenameProvider(SharePointProviderInfo sharePointProviderInfo, string newTitle) { using (var dbDao = new SharpBoxAccountDao(CoreContext.TenantManager.GetCurrentTenant().TenantId, FileConstant.DatabaseId)) { dbDao.UpdateProviderInfo(sharePointProviderInfo.ID, newTitle, sharePointProviderInfo.RootFolderType); sharePointProviderInfo.UpdateTitle(newTitle); //This will update cached version too } }
public SharePointDaoBase(SharePointProviderInfo sharePointInfo, SharePointDaoSelector sharePointDaoSelector) { ProviderInfo = sharePointInfo; SharePointDaoSelector = sharePointDaoSelector; }
public SharePointSecurityDao(SharePointProviderInfo sharePointInfo, SharePointDaoSelector sharePointDaoSelector) : base(sharePointInfo, sharePointDaoSelector) { }
public SharePointFolderDao(SharePointProviderInfo sharePointInfo, SharePointDaoSelector sharePointDaoSelector) : base(sharePointInfo, sharePointDaoSelector) { }