Ejemplo n.º 1
0
 /// <summary>
 /// Exports the Gallery Server Pro data in the current database to an XML-formatted string. Does not export the actual media files;
 /// they must be copied manually with a utility such as Windows Explorer. This method does not make any changes to the database tables
 /// or the files in the media objects directory.
 /// </summary>
 /// <param name="exportMembershipData">If set to <c>true</c>, user accounts and other membership data will be exported.</param>
 /// <param name="exportGalleryData">If set to <c>true</c>, albums, media objects, and other gallery data will be exported.</param>
 /// <returns>
 /// Returns an XML-formatted string containing the gallery data.
 /// </returns>
 public override string ExportGalleryData(bool exportMembershipData, bool exportGalleryData)
 {
     return(DataUtility.ExportData(exportMembershipData, exportGalleryData));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Imports the Gallery Server Pro data into the current database, overwriting any existing data. Does not import the actual media
 /// files; they must be imported manually with a utility such as Windows Explorer. This method makes changes only to the database tables;
 /// no files in the media objects directory are affected. If both the <paramref name="importMembershipData"/> and <paramref name="importGalleryData"/>
 /// parameters are false, then no action is taken.
 /// </summary>
 /// <param name="galleryData">An XML-formatted string containing the gallery data. The data must conform to the schema defined in the project for
 /// the data provider's implementation.</param>
 /// <param name="importMembershipData">If set to <c>true</c>, user accounts and other membership data will be imported.
 /// Current membership data will first be deleted.</param>
 /// <param name="importGalleryData">If set to <c>true</c>, albums, media objects, and other gallery data will be imported.
 /// Current gallery data will first be deleted.</param>
 public override void ImportGalleryData(string galleryData, bool importMembershipData, bool importGalleryData)
 {
     DataUtility.ImportData(galleryData, importMembershipData, importGalleryData);
 }