C# 클래스 Kentico.ADImportService.RestSender

Provides basic CMS operations with users and groups.
상속: ISender
파일 보기 프로젝트 열기: Kentico/ADImportService 1 사용 예제들

공개 메소드들

메소드 설명
AddRole ( Kentico.ADImportService.Role role ) : long?

Add role to CMS.

AddUser ( Kentico.ADImportService.User user ) : long?

Add user to CMS.

AddUserToRole ( long userId, long roleId ) : long?

Create user-role relationship.

GetRole ( long id ) : string

Get XML representation of given role.

GetUser ( System.Guid guid ) : string

Get user XML representation.

ModifyRole ( Kentico.ADImportService.Role role ) : long?

Modify existing role.

ModifyUser ( Kentico.ADImportService.User user ) : long?

Modify existing user in CMS.

RemoveRole ( Kentico.ADImportService.Role role ) : void

Remove role from CMS.

RemoveUser ( Kentico.ADImportService.User user ) : void

Remove user from CMS.

RemoveUserFromRole ( long id ) : void

Remove user-role relationship.

RestSender ( Kentico.ADImportService.RestConfiguration configuration, Logger logger ) : System

Default constructor.

RoleExists ( System.Guid guid ) : bool

Find out whether role with given GUID exist.

RoleExists ( long id ) : bool

Find out whether role with given ID exist.

UserExists ( System.Guid guid ) : bool

Find out whether user with given GUID exists.

UserExists ( System.Guid guid, string codeName ) : bool

Find out whether user with given GUID and name exists.

UserExists ( string codeName ) : bool

Find out whether user with given name exists.

비공개 메소드들

메소드 설명
LogError ( string message, Exception ex = null ) : void
LogMessage ( string message ) : void

메소드 상세

AddRole() 공개 메소드

Add role to CMS.
public AddRole ( Kentico.ADImportService.Role role ) : long?
role Kentico.ADImportService.Role Role to add
리턴 long?

AddUser() 공개 메소드

Add user to CMS.
public AddUser ( Kentico.ADImportService.User user ) : long?
user Kentico.ADImportService.User User to add
리턴 long?

AddUserToRole() 공개 메소드

Create user-role relationship.
public AddUserToRole ( long userId, long roleId ) : long?
userId long User to add to role
roleId long Role to assign
리턴 long?

GetRole() 공개 메소드

Get XML representation of given role.
public GetRole ( long id ) : string
id long Id of role to find
리턴 string

GetUser() 공개 메소드

Get user XML representation.
public GetUser ( System.Guid guid ) : string
guid System.Guid Guid of user to find.
리턴 string

ModifyRole() 공개 메소드

Modify existing role.
public ModifyRole ( Kentico.ADImportService.Role role ) : long?
role Kentico.ADImportService.Role Role to modify
리턴 long?

ModifyUser() 공개 메소드

Modify existing user in CMS.
public ModifyUser ( Kentico.ADImportService.User user ) : long?
user Kentico.ADImportService.User Modified user
리턴 long?

RemoveRole() 공개 메소드

Remove role from CMS.
public RemoveRole ( Kentico.ADImportService.Role role ) : void
role Kentico.ADImportService.Role Role to delete.
리턴 void

RemoveUser() 공개 메소드

Remove user from CMS.
public RemoveUser ( Kentico.ADImportService.User user ) : void
user Kentico.ADImportService.User User to delete.
리턴 void

RemoveUserFromRole() 공개 메소드

Remove user-role relationship.
public RemoveUserFromRole ( long id ) : void
id long User-role memberhip id.
리턴 void

RestSender() 공개 메소드

Default constructor.
public RestSender ( Kentico.ADImportService.RestConfiguration configuration, Logger logger ) : System
configuration Kentico.ADImportService.RestConfiguration Configuration used to construct REST provider.
logger Logger Logger for logging events and errors.
리턴 System

RoleExists() 공개 메소드

Find out whether role with given GUID exist.
public RoleExists ( System.Guid guid ) : bool
guid System.Guid Guid of role to check
리턴 bool

RoleExists() 공개 메소드

Find out whether role with given ID exist.
public RoleExists ( long id ) : bool
id long Id of role to check
리턴 bool

UserExists() 공개 메소드

Find out whether user with given GUID exists.
public UserExists ( System.Guid guid ) : bool
guid System.Guid Guid of user to check.
리턴 bool

UserExists() 공개 메소드

Find out whether user with given GUID and name exists.
public UserExists ( System.Guid guid, string codeName ) : bool
guid System.Guid Guid of user to check.
codeName string
리턴 bool

UserExists() 공개 메소드

Find out whether user with given name exists.
public UserExists ( string codeName ) : bool
codeName string
리턴 bool