Interface IPosition
Должность.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface IPosition : ISecurityElement, IAbleToHaveDescription, ICodeableApiObject, IAbleToHaveExternalId, IAbleToHaveChangeableName, IAbleToHaveName, IDeleteableApiObject, IAbleToHaveId, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
Department
Возвращает или задает отделение.
Declaration
IDepartment Department { get; }
Property Value
| Type | Description |
|---|---|
| IDepartment |
Roles
Возвращает пользователей.
Declaration
IApiReadOnlyCollection<IRole> Roles { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IRole> |
Users
Возвращает пользователей.
Declaration
IApiReadOnlyCollection<IUser> Users { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IUser> |
Methods
AddRole(IRole)
Добавляет роль.
Declaration
void AddRole(IRole role)
Parameters
| Type | Name | Description |
|---|---|---|
| IRole | role | Роль. |
AddUser(IUser)
Добавляет пользователя.
Declaration
void AddUser(IUser user)
Parameters
| Type | Name | Description |
|---|---|---|
| IUser | user | Пользователь. |
CanMoveTo(IDepartment)
Определяет можно ли переместить должность в указанное подразделение.
Declaration
bool CanMoveTo(IDepartment destinationDepartment)
Parameters
| Type | Name | Description |
|---|---|---|
| IDepartment | destinationDepartment | Целевое подразделение. |
Returns
| Type | Description |
|---|---|
| bool |
|
MoveTo(IDepartment)
Перемещает должность в указанное подразделение.
Declaration
void MoveTo(IDepartment destinationDepartment)
Parameters
| Type | Name | Description |
|---|---|---|
| IDepartment | destinationDepartment | Целевое подразделение. |
RemoveRole(IRole)
Удаляет роль.
Declaration
bool RemoveRole(IRole role)
Parameters
| Type | Name | Description |
|---|---|---|
| IRole | role | Роль. |
Returns
| Type | Description |
|---|---|
| bool | True, если роль была удалена; иначе False. |
RemoveUser(IUser)
Удаляет пользователя.
Declaration
bool RemoveUser(IUser user)
Parameters
| Type | Name | Description |
|---|---|---|
| IUser | user | Пользователь. |
Returns
| Type | Description |
|---|---|
| bool | True, если пользователь был удален; иначе False. |