C# 클래스 Foretagsplatsen.Api.Resources.CompanyUserResource

Company user REST resource: https://web.foretagsplatsen.se/Api/Company/{businessIdentityCode}/User/{username} Notes: * Agency directors (administrator) has access to all the companys' users. * Agency consultants only has access to company users for their attached companies. * Company user has no access to company users in a company.
파일 보기 프로젝트 열기: foretagsplatsen/Foretagsplatsen-DotNet-API

공개 메소드들

메소드 설명
Attach ( string userName, CompanyRoleType role ) : void

Attach a company to a company users list with attached companies

CompanyUserResource ( ApiClient apiClient, CompanyInfo companyInfo ) : System
Create ( UserInfo newUser, CompanyRoleType role ) : void

Create a new company user

Delete ( string userName, bool detach ) : void

Delete or detach

Get ( string userName ) : UserInfo

Get Company user from company

List ( ) : List

List connected company users

List ( bool getNotConnectedUsers ) : List

List company users for company

Update ( UserInfo userInfoToUpdate, CompanyRoleType role ) : void

Update a company user

비공개 메소드들

메소드 설명
GetCollectionUrl ( ) : string

Url for the companys' company users collection resource

GetCompanyUserUrl ( string userName ) : string

Url for company user in companyresource

메소드 상세

Attach() 공개 메소드

Attach a company to a company users list with attached companies
public Attach ( string userName, CompanyRoleType role ) : void
userName string Username to attach company to
role CompanyRoleType The role for the user
리턴 void

CompanyUserResource() 공개 메소드

public CompanyUserResource ( ApiClient apiClient, CompanyInfo companyInfo ) : System
apiClient ApiClient
companyInfo Foretagsplatsen.Api.Entities.CompanyInfo
리턴 System

Create() 공개 메소드

Create a new company user
public Create ( UserInfo newUser, CompanyRoleType role ) : void
newUser Foretagsplatsen.Api.Entities.UserInfo New user to create
role CompanyRoleType The role for the user
리턴 void

Delete() 공개 메소드

Delete or detach
public Delete ( string userName, bool detach ) : void
userName string
detach bool
리턴 void

Get() 공개 메소드

Get Company user from company
public Get ( string userName ) : UserInfo
userName string Username in company to get
리턴 Foretagsplatsen.Api.Entities.UserInfo

List() 공개 메소드

List connected company users
public List ( ) : List
리턴 List

List() 공개 메소드

List company users for company
public List ( bool getNotConnectedUsers ) : List
getNotConnectedUsers bool to get disconnected users or to get connected users
리턴 List

Update() 공개 메소드

Update a company user
public Update ( UserInfo userInfoToUpdate, CompanyRoleType role ) : void
userInfoToUpdate Foretagsplatsen.Api.Entities.UserInfo User to update
role CompanyRoleType The role for the user
리턴 void