private void CreateProfileDetails(int profileId) { profileReader = ReaderFactory.GetProfileReader(); details = profileReader.GetProfileDetails(profileId); if (details != null) { details.Id = profileId; AssignDomains(); // Parse string lists details.ExtraJavaScriptFiles = ParseStringList(details.ExtraJavaScriptFilesString); details.ExtraCssFiles = ParseStringList(details.ExtraCssFilesString); } }
private void CreateProfileDetails(string profileKey) { profileReader = ReaderFactory.GetProfileReader(); details = profileReader.GetProfileDetails(profileKey); if (details != null) { details.ProfileUrlKey = profileKey; AssignDomains(); // Parse string lists details.ExtraJavaScriptFiles = ParseStringList(details.ExtraJavaScriptFilesString); details.ExtraCssFiles = ParseStringList(details.ExtraCssFilesString); } else if (string.IsNullOrEmpty(profileKey) == false) { throw new FingertipsException("Profile could not be found: " + profileKey); } }
public static ProfileReader GetProfileReader() { ProfileReader service = new ProfileReader(GetSessionFactory()); service.OpenSession(); return service; }
public ProfileCollectionBuilder(ProfileReader profileReader, AppConfig config) { this.profileReader = profileReader; this.config = config; }