예제 #1
0
		private static void CreateConfluenceConntector() {
			if (_confluenceConnector == null) {
				if (_config.Url.Contains("soap-axis")) {
					_confluenceConnector = new ConfluenceConnector(_config.Url, _config.Timeout);
				} else {
					_confluenceConnector = new ConfluenceConnector(_config.Url + ConfluenceConfiguration.DEFAULT_POSTFIX2, _config.Timeout);
				}
			}
		}
예제 #2
0
		public ConfluenceTreePicker(ConfluenceUpload confluenceUpload) {
			this.confluenceConnector = ConfluencePlugin.ConfluenceConnector;
			this.confluenceUpload = confluenceUpload;
			InitializeComponent();
		}
예제 #3
0
		/// <summary>
		/// Implementation of the IPlugin.Configure
		/// </summary>
		public virtual void Configure() {
			ConfluenceConfiguration clonedConfig = _config.Clone();
			ConfluenceConfigurationForm configForm = new ConfluenceConfigurationForm(clonedConfig);
			string url = _config.Url;
			Nullable<bool> dialogResult = configForm.ShowDialog();
			if (dialogResult.HasValue && dialogResult.Value) {
				// copy the new object to the old...
				clonedConfig.CloneTo(_config);
				IniConfig.Save();
				if (_confluenceConnector != null) {
					if (!url.Equals(_config.Url)) {
						if (_confluenceConnector.isLoggedIn) {
							_confluenceConnector.logout();
						}
						_confluenceConnector = null;
					}
				}
			}
		}
예제 #4
0
		public virtual void Shutdown() {
			LOG.Debug("Confluence Plugin shutdown.");
			if (_confluenceConnector != null) {
				_confluenceConnector.logout();
				_confluenceConnector = null;
			}
		}