Class UserAndGroupTypeService
- Namespace
- Dynamicweb.Security.User
Management .UserTypes
- Assembly
- Dynamicweb.Core.dll
- Inheritance
-
User
And Group Type Service
- Inherited Members
Fields
DefaultUserAndGroupTypeName
Field Value
Methods
CheckCanBeChild(UserAndGroupType?, UserAndGroupType?)
Checks the child
is can be descendant of the parent
.
Parameters
child
UserAnd Group Type The parent.
parent
UserAnd Group Type The child.
Returns
- bool
True
, if child is can be descendant of the parent, otherwiseFalse
.
ClearCache()
Clears the cache.
Delete(UserAndGroupType)
Deletes the User
Parameters
item
UserAnd Group Type The User
And for delete.Group Type
Delete(string)
Deletes the User
Parameters
systemName
stringThe User
And system name.Group Type
GetAll()
Gets all User
Returns
- IEnumerable<User
And >Group Type The collection of the User
And .Group Type
GetAllowedChildren(UserAndGroupType?)
Gets the collection of the Userparent
.
Parameters
parent
UserAnd Group Type The parent.
Returns
- IEnumerable<User
And >Group Type The collection of the children.
GetAllowedChildren(string?)
Gets the collection of the User
Parameters
parentSystemName
stringThe parent system name.
Returns
- IEnumerable<User
And >Group Type The collection of the children.
GetBySystemName(string)
Gets the User
Parameters
systemName
stringThe system name.
Returns
GetUserAndGroupField(UserAndGroupType, string)
Gets the User
Parameters
item
UserAnd Group Type The User
And .Group Type fieldSystemName
stringThe System
Name .
Returns
IsDefaultChildAllowed(string?)
Checks the regular group or user is can be child.
Parameters
systemName
stringThe System
Name .
Returns
- bool
True
, if regular group or user is can be child of the UserAnd , otherwiseGroup Type False
.
IsVisibleOrReadOnlyField(UserAndGroupType, string)
Determines whether the field is not hidden.
Parameters
item
UserAnd Group Type The User
And .Group Type fieldSystemName
stringThe System
Name .
Returns
- bool
True
, if theitem
have rule for thefieldSystemName
and its rule is not set to Hidden, otherwisefalse
.
Save(UserAndGroupType)
Saves the User
Parameters
item
UserAnd Group Type The User
And for save.Group Type
ValidateSystemName(string)
Checks if the specified system name is unique and have no invalid characters.
Parameters
systemName
stringThe system name.
Returns
- bool
True
, if system name is unique and valid, otherwiseFalse
.