Class UserAndGroupTypeService
- Namespace
- Dynamicweb.Security.User
Management .UserTypes
- Assembly
- Dynamicweb.Security.dll
- Inheritance
-
User
And Group Type Service
- Inherited Members
Fields
DefaultUserAndGroupTypeName
Field Value
StandardFields
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 UserAndGroupType .
Parameters
item
UserAnd Group Type - The User
And for delete.Group Type
Delete(string)
Deletes the UserAndGroupType .
Parameters
systemName
string- The User
And system name.Group Type
GetAll()
Gets all UserAndGroupType available in the solution.
Returns
- IEnumerable<User
And >Group Type - The collection of the User
And .Group Type
GetAllowedChildren(UserAndGroupType)
Gets the collection of the UserAndGroupType with items which can be a child of the
parent
.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 UserAndGroupType with items which can be a child of the parent.
Parameters
parentSystemName
string- The parent system name.
Returns
- IEnumerable<User
And >Group Type - The collection of the children.
GetBySystemName(string)
Gets the UserAndGroupType by system name.
Parameters
systemName
string- The system name.
Returns
GetUserAndGroupField(UserAndGroupType, UserDataBaseField)
public static UserAndGroupField GetUserAndGroupField(UserAndGroupType item, UserDataBaseField dbField)
Parameters
item
UserAnd Group Type - The User
And .Group Type dbField
UserData Base Field - The User
Data .Base Field
Returns
GetUserAndGroupField(UserAndGroupType, string)
Gets the UserAndGroupField by the system name from UserAndGroupType .
Parameters
item
UserAnd Group Type - The User
And .Group Type fieldSystemName
string- The System
Name .
Returns
HaveVisibleOrReadOnlyFields(UserAndGroupType, IEnumerable<UserDataBaseField>)
Determines whether at least one of the
dbFields
is not hidden.public static bool HaveVisibleOrReadOnlyFields(UserAndGroupType item, IEnumerable<UserDataBaseField> dbFields)
Parameters
item
UserAnd Group Type - The User
And .Group Type dbFields
IEnumerable<UserData >Base Field - The collection of the User
Data .Base Field
Returns
- bool
True
, if theitem
have rule for at least one of thedbFields
and its rule is not set to Hidden, otherwisefalse
.
IsDefaultChildAllowed(string)
Checks the regular group or user is can be child.
Parameters
systemName
string- The System
Name .
Returns
- bool
True
, if regular group or user is can be child of the UserAnd , otherwiseGroup Type False
.
IsVisibleOrReadOnlyField(UserAndGroupType, UserDataBaseField)
Determines whether the field is not hidden.
Parameters
item
UserAnd Group Type - The User
And .Group Type dbField
UserData Base Field - The User
Data .Base Field
Returns
- bool
True
, if theitem
have rule for thedbField
and its rule is not set to Hidden, otherwisefalse
.
IsVisibleOrReadOnlyField(UserAndGroupType, string)
Determines whether the field is not hidden.
Parameters
item
UserAnd Group Type - The User
And .Group Type fieldSystemName
string- The System
Name .
Returns
- bool
True
, if theitem
have rule for thefieldSystemName
and its rule is not set to Hidden, otherwisefalse
.
Save(UserAndGroupType)
Saves the UserAndGroupType .
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
string- The system name.
Returns
- bool
True
, if system name is unique and valid, otherwiseFalse
.