ExportForSourceControl() public method

public ExportForSourceControl ( bool includeContentGroups = false, bool resetAppGuid = false ) : void
includeContentGroups bool
resetAppGuid bool
return void
Beispiel #1
0
        public bool ExportForVersionControl(int appId, int zoneId, bool includeContentGroups, bool resetAppGuid)
        {
            EnsureUserIsAdmin();

            // ReSharper disable once UnusedVariable
            var appWrapper = (UserInfo.IsSuperUser)
                ? new SxcAppWrapper(zoneId, appId)  // only super-user may switch to another zone for export
                : new SxcAppWrapper(appId);

            var zipExport = new ZipExport(zoneId, appId);
            zipExport.ExportForSourceControl(includeContentGroups, resetAppGuid);

            return true;
        }