AdminUsersFeature
Assembly: ServiceStack.dll
View Source
public class AdminUsersFeature : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin, IAfterInitAppHost
Properties
Id
View Source
public string Id { get; set; }
AdminRole
View Source
public string AdminRole { get; set; }
QueryUserAuthProperties
Return only specified UserAuth Properties in AdminQueryUsers
View Source
public List<string> QueryUserAuthProperties { get; set; }
QueryMediaRules
Specify different size media rules when a property should be visible, e.g: MediaRules.ExtraSmall.Show<UserAuth>(x => new { x.Id, x.Email, x.DisplayName })
View Source
public List<MediaRule> QueryMediaRules { get; set; }
UserFormLayout
View Source
public List<List<InputInfo>> UserFormLayout { set; }
FormLayout
Which User fields can be updated
View Source
public List<InputInfo> FormLayout { get; set; }
RestrictedUserAuthProperties
Which UserAuth fields cannot be updated using UserAuthProperties dictionary
View Source
public List<string> RestrictedUserAuthProperties { get; set; }
ValidateFn
Invoked before user is created or updated. A non-null return (e.g. HttpResult/HttpError) invalidates the request and is used as the API Response instead
View Source
public ValidateAsyncFn ValidateFn { get; set; }
OnBeforeCreateUser
Invoked before a User is created
View Source
public Func<IUserAuth, Service, Task> OnBeforeCreateUser { get; set; }
OnAfterCreateUser
Invoked after a User is created
View Source
public Func<IUserAuth, Service, Task> OnAfterCreateUser { get; set; }
OnBeforeUpdateUser
Invoked before a User is updated. (NewUser, ExistingUser, Service)
View Source
public Func<IUserAuth, IUserAuth, Service, Task> OnBeforeUpdateUser { get; set; }
OnAfterUpdateUser
Invoked after a User is updated. (NewUser, ExistingUser, Service)
View Source
public Func<IUserAuth, IUserAuth, Service, Task> OnAfterUpdateUser { get; set; }
OnBeforeDeleteUser
Invoked before a User is deleted
View Source
public Func<string, Service, Task> OnBeforeDeleteUser { get; set; }
OnAfterDeleteUser
Invoked after a User is deleted
View Source
public Func<string, Service, Task> OnAfterDeleteUser { get; set; }
ExecuteOnRegisteredEventsForCreatedUsers
Whether to execute OnRegistered Events for Users created through Admin UI (default true).
View Source
public bool ExecuteOnRegisteredEventsForCreatedUsers { get; set; }
Methods
RemoveFromUserForm(String[])
View Source
public AdminUsersFeature RemoveFromUserForm(params string[] fieldNames)
Returns
ServiceStack.Admin.AdminUsersFeature
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
RemoveFromUserForm(Predicate<InputInfo>)
View Source
public AdminUsersFeature RemoveFromUserForm(Predicate<InputInfo> match)
Returns
ServiceStack.Admin.AdminUsersFeature
Parameters
Type | Name |
---|---|
System.Predicate<ServiceStack.InputInfo> | match |
RemoveFromQueryResults(String[])
View Source
public AdminUsersFeature RemoveFromQueryResults(params string[] fieldNames)
Returns
ServiceStack.Admin.AdminUsersFeature
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
RemoveFields(String[])
View Source
public AdminUsersFeature RemoveFields(params string[] fieldNames)
Returns
ServiceStack.Admin.AdminUsersFeature
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
BeforePluginsLoaded(IAppHost)
View Source
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
Register(IAppHost)
View Source
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
AfterInit(IAppHost)
View Source
public void AfterInit(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |