View Source
Class UserExtensions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class UserExtensions
Methods
View Source
CalculateContentStartNodeIds(IUser, IEntityService)
Declaration
[Obsolete("Use the overload specifying all parameters instead")]
public static int[] CalculateContentStartNodeIds(this IUser user, IEntityService entityService)
Parameters
Returns
Type |
Description |
System.Int32[] |
|
View Source
CalculateContentStartNodeIds(IUser, IEntityService, AppCaches)
Calculate start nodes, combining groups' and user's, and excluding what's in the bin
Declaration
public static int[] CalculateContentStartNodeIds(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
Type |
Description |
System.Int32[] |
|
View Source
Declaration
[Obsolete("Use the overload specifying all parameters instead")]
public static int[] CalculateMediaStartNodeIds(this IUser user, IEntityService entityService)
Parameters
Returns
Type |
Description |
System.Int32[] |
|
View Source
Calculate start nodes, combining groups' and user's, and excluding what's in the bin
Declaration
public static int[] CalculateMediaStartNodeIds(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
Type |
Description |
System.Int32[] |
|
View Source
GetContentStartNodePaths(IUser, IEntityService)
Declaration
[Obsolete("Use the overload specifying all parameters instead")]
public static string[] GetContentStartNodePaths(this IUser user, IEntityService entityService)
Parameters
Returns
Type |
Description |
System.String[] |
|
View Source
GetContentStartNodePaths(IUser, IEntityService, AppCaches)
Declaration
public static string[] GetContentStartNodePaths(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
Type |
Description |
System.String[] |
|
View Source
Declaration
[Obsolete("Use the overload specifying all parameters instead")]
public static string[] GetMediaStartNodePaths(this IUser user, IEntityService entityService)
Parameters
Returns
Type |
Description |
System.String[] |
|
View Source
Declaration
public static string[] GetMediaStartNodePaths(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
Type |
Description |
System.String[] |
|
View Source
GetPermissions(IUser, String, IUserService)
Declaration
public static IEnumerable<string> GetPermissions(this IUser user, string path, IUserService userService)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
GetUserCulture(IUser, ILocalizedTextService, IGlobalSettings)
Returns the culture info associated with this user, based on the language they're assigned to in the back office
Declaration
public static CultureInfo GetUserCulture(this IUser user, ILocalizedTextService textService, IGlobalSettings globalSettings)
Parameters
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
View Source
HasAccessToSensitiveData(IUser)
Determines whether this user has access to view sensitive data
Declaration
public static bool HasAccessToSensitiveData(this IUser user)
Parameters
Type |
Name |
Description |
IUser |
user |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasSectionAccess(IUser, String)
Declaration
public static bool HasSectionAccess(this IUser user, string app)
Parameters
Type |
Name |
Description |
IUser |
user |
|
System.String |
app |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsAdmin(IUser)
Determines whether this user belongs to the administrators group.
Declaration
public static bool IsAdmin(this IUser user)
Parameters
Type |
Name |
Description |
IUser |
user |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsSuper(IUser)
Determines whether this user is the 'super' user.
Declaration
public static bool IsSuper(this IUser user)
Parameters
Type |
Name |
Description |
IUser |
user |
|
Returns
Type |
Description |
System.Boolean |
|