Added missing method from IHost interface.

This commit is contained in:
Dario Solera 2011-01-05 15:19:40 +00:00
parent 6b9dd4150b
commit c639774f73
2 changed files with 23 additions and 0 deletions

View file

@ -847,6 +847,20 @@ namespace ScrewTurn.Wiki {
return done; return done;
} }
/// <summary>
/// Overrides the public directory.
/// </summary>
/// <param name="fullPath">The new full path of the public directory.</param>
/// <exception cref="ArgumentNullException">If <paramref name="fullPath"/> is <c>null</c>.</exception>
/// <exception cref="ArgumentException">If <paramref name="fullPath"/> is empty.</exception>
/// <exception cref="InvalidOperationException">If it's too late to override the public directory.</exception>
public void OverridePublicDirectory(string fullPath) {
if(fullPath == null) throw new ArgumentNullException("fullPath");
if(fullPath == "") throw new ArgumentException("Full Path cannot be empty", "fullPath");
Settings.OverridePublicDirectory(fullPath);
}
/// <summary> /// <summary>
/// Event fired whenever an activity is performed on a User Account. /// Event fired whenever an activity is performed on a User Account.
/// </summary> /// </summary>

View file

@ -403,6 +403,15 @@ namespace ScrewTurn.Wiki.PluginFramework {
/// <exception cref="ArgumentNullException">If <paramref name="administrators"/> or <paramref name="users"/> are <c>null</c>.</exception> /// <exception cref="ArgumentNullException">If <paramref name="administrators"/> or <paramref name="users"/> are <c>null</c>.</exception>
bool UpgradeSecurityFlagsToGroupsAcl(UserGroup administrators, UserGroup users); bool UpgradeSecurityFlagsToGroupsAcl(UserGroup administrators, UserGroup users);
/// <summary>
/// Overrides the public directory.
/// </summary>
/// <param name="fullPath">The new full path of the public directory.</param>
/// <exception cref="ArgumentNullException">If <paramref name="fullPath"/> is <c>null</c>.</exception>
/// <exception cref="ArgumentException">If <paramref name="fullPath"/> is empty.</exception>
/// <exception cref="InvalidOperationException">If it's too late to override the public directory.</exception>
void OverridePublicDirectory(string fullPath);
/// <summary> /// <summary>
/// Event fired whenever an activity is performed on a User Account. /// Event fired whenever an activity is performed on a User Account.
/// </summary> /// </summary>