Class UserTypeHelper
Namespace: SuperOffice.License
Assembly: SoCore.dll
Syntax
public static class UserTypeHelper : Object
Methods
GetAssociateType(UserType)
Convert from SuperOffice.License.UserType to SuperOffice.License.UserType.
Declaration
public static AssociateType GetAssociateType(this UserType allowedType)
Parameters
Type | Name | Description |
---|---|---|
UserType | allowedType | Allowed associate type to convert from. |
Returns
Type | Description |
---|---|
AssociateType | Associate type to convert to. |
GetLoginRightModuleName(UserType)
Get the full name (including module owner) of the login right module license from user type.
Declaration
public static string GetLoginRightModuleName(this UserType user)
Parameters
Type | Name | Description |
---|---|---|
UserType | user | User type to get name of module owner. |
Returns
Type | Description |
---|---|
String | Full name (including module owner) of the login right module license from user type. |
GetRoleType(AssociateType)
Convert from SuperOffice.License.UserType to RoleType (short)
Declaration
public static short GetRoleType(this AssociateType associateType)
Parameters
Type | Name | Description |
---|---|---|
AssociateType | associateType | Associate type to convert from |
Returns
Type | Description |
---|---|
Int16 | Role type to convert to. |
GetRoleType(UserType)
Convert from SuperOffice.License.UserType to RoleType (short)
Declaration
public static short GetRoleType(this UserType userType)
Parameters
Type | Name | Description |
---|---|---|
UserType | userType |
Returns
Type | Description |
---|---|
Int16 | Role type to convert to. |
GetUserType(AssociateType)
Convert from SuperOffice.License.UserType to SuperOffice.License.UserType
Declaration
public static UserType GetUserType(this AssociateType associateType)
Parameters
Type | Name | Description |
---|---|---|
AssociateType | associateType | Associate type to convert from |
Returns
Type | Description |
---|---|
UserType | Allowed license type to convert to. |