Novell::iFolderWeb::Admin::Utils Class Reference

Summary description for Utils. More...

List of all members.

Static Public Member Functions

static string ConvertFromRegEx (string regEx)
 Converts a regular expression file type string to a simpler wildcard type.
static string ConvertToRegEx (string simpleWildcard)
 Converts from a simple wildcard type to a regular expression file type.
static string ConvertToMBString (long size, bool appendUnits, ResourceManager rm)
 Converts the size to megabytes.
static string ConvertToUnitString (long size, bool appendUnits, ResourceManager rm)
 Gets a string that represents the size in bytes of a number with the proper unit size appended.
static string ConvertToUnitString (long size, ResourceManager rm, out string units)
 Gets a string that represents the size in bytes of a number with the proper unit size appended.
static iFolderPolicy GetiFolderPolicyObject (string ifolderID)
 Gets an ifolder policy object that is set-able.
static UserPolicy GetUserPolicyObject (string userID)
 Gets user policy object that is set-able.
static string ToDateTimeString (DateTime dt)
 Formats the DateTime to a string for the CurrentUICulture on the current thread.
static string ToDateTimeString (string format, DateTime dt)
 Formats the DateTime to a string for the CurrentUICulture on the current thread.

Public Attributes

const decimal KiloByte = 1024
 Default constant for Byte.
const decimal MegaByte = KiloByte * 1024
 Default constant for MegaByte.
const decimal GigaByte = MegaByte * 1024
 Default constant for GigaByte.


Detailed Description

Summary description for Utils.


Member Function Documentation

static string Novell::iFolderWeb::Admin::Utils::ConvertFromRegEx ( string  regEx  )  [inline, static]

Converts a regular expression file type string to a simpler wildcard type.

Parameters:
regEx String containing regular expression.
Returns:
String containing simple wildcard.

static string Novell::iFolderWeb::Admin::Utils::ConvertToRegEx ( string  simpleWildcard  )  [inline, static]

Converts from a simple wildcard type to a regular expression file type.

Parameters:
simpleWildcard String containing a simple wildcard expression.
Returns:
String containing a regular expression.

static string Novell::iFolderWeb::Admin::Utils::ConvertToMBString ( long  size,
bool  appendUnits,
ResourceManager  rm 
) [inline, static]

Converts the size to megabytes.

Parameters:
size Size of the number in bytes.
appendUnits If true the proper units are appended.
rm Resource manager object that will allow retrieval of localized strings.
Returns:
A string containing the size in megabytes.

static string Novell::iFolderWeb::Admin::Utils::ConvertToUnitString ( long  size,
bool  appendUnits,
ResourceManager  rm 
) [inline, static]

Gets a string that represents the size in bytes of a number with the proper unit size appended.

Parameters:
size Size of the number in bytes.
appendUnits If true the proper units are appended.
rm Resource manager object that will allow retrieval of localized strings.
Returns:
A string containing the size.

static string Novell::iFolderWeb::Admin::Utils::ConvertToUnitString ( long  size,
ResourceManager  rm,
out string  units 
) [inline, static]

Gets a string that represents the size in bytes of a number with the proper unit size appended.

Parameters:
size Size of the number in bytes.
rm Resource manager object that will allow retrieval of localized strings.
units Gets the unit string.
Returns:
A string containing the size.

static iFolderPolicy Novell::iFolderWeb::Admin::Utils::GetiFolderPolicyObject ( string  ifolderID  )  [inline, static]

Gets an ifolder policy object that is set-able.

Parameters:
ifolderID 
Returns:

static UserPolicy Novell::iFolderWeb::Admin::Utils::GetUserPolicyObject ( string  userID  )  [inline, static]

Gets user policy object that is set-able.

Parameters:
userID 
Returns:

static string Novell::iFolderWeb::Admin::Utils::ToDateTimeString ( DateTime  dt  )  [inline, static]

Formats the DateTime to a string for the CurrentUICulture on the current thread.

Parameters:
dt 
Returns:

static string Novell::iFolderWeb::Admin::Utils::ToDateTimeString ( string  format,
DateTime  dt 
) [inline, static]

Formats the DateTime to a string for the CurrentUICulture on the current thread.

Parameters:
format 
dt 
Returns:


Member Data Documentation

Default constant for Byte.

Default constant for MegaByte.

Default constant for GigaByte.


The documentation for this class was generated from the following file:

Generated on Wed Apr 8 14:45:37 2009 for simias by  doxygen 1.5.6