public void UpdateFolderXmlConfig(long folderid, long smartformid) { try { if (string.IsNullOrEmpty(userauthHeader.AuthenticationToken)) throw new SoapException("User not logged in", SoapException.ClientFaultCode); assetManager = new AssetManager(); this.ImpersonateUser(userauthHeader.AuthenticationToken, assetManager.RequestInformation); EkContentRW ekcontent = new EkContentRW(assetManager.RequestInformation); long existingsmartformid = ekcontent.GetEnabledXmlConfigsByFolder(folderid).Where(p => p.Equals(smartformid)).FirstOrDefault(); if (existingsmartformid == null || existingsmartformid != smartformid) ekcontent.AssignXmlConfigToFolder(folderid, smartformid, false); } catch (Exception ex) { throw new SoapException("Error updating folderxmlconfig:" + ex.Message, SoapException.ClientFaultCode); } }
public void UpdateEKSharePointListSmartformData(string listtitle) { try { if (string.IsNullOrEmpty(userauthHeader.AuthenticationToken)) throw new SoapException("User not logged in", SoapException.ClientFaultCode); assetManager = new AssetManager(); this.ImpersonateUser(userauthHeader.AuthenticationToken, assetManager.RequestInformation); EkContentRW ekcontent = new EkContentRW(assetManager.RequestInformation); ekcontent.UpdateEktronSPListSmartformData(listtitle); } catch (Exception ex) { throw new SoapException("Error updating eksharepointlistsmartformdata:" + ex.Message, SoapException.ClientFaultCode); } }