C# 클래스 EGSW.Data.Customers.CustomerExtensions

파일 보기 프로젝트 열기: careerengine/EGSW-Project

공개 메소드들

메소드 설명
IsAdmin ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether the customer is a built-in record for background tasks

Gets a value indicating whether customer is administrator

IsAgent ( this customer, bool onlyActiveCustomerRoles = true ) : bool
IsForumModerator ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is a forum moderator

IsGuest ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is guest

IsInCustomerRole ( this customer, string customerRoleSystemName, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is in a certain customer role

IsPasswordRecoveryTokenValid ( this customer, string token ) : bool
IsRegistered ( this customer, bool onlyActiveCustomerRoles = true ) : bool

Gets a value indicating whether customer is registered

IsSearchEngineAccount ( this customer ) : bool

Gets a value indicating whether customer a search engine

RemoveAddress ( this customer, Address address ) : void

메소드 상세

IsAdmin() 공개 정적인 메소드

Gets a value indicating whether the customer is a built-in record for background tasks Gets a value indicating whether customer is administrator
public static IsAdmin ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
리턴 bool

IsAgent() 공개 정적인 메소드

public static IsAgent ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this
onlyActiveCustomerRoles bool
리턴 bool

IsForumModerator() 공개 정적인 메소드

Gets a value indicating whether customer is a forum moderator
public static IsForumModerator ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
리턴 bool

IsGuest() 공개 정적인 메소드

Gets a value indicating whether customer is guest
public static IsGuest ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
리턴 bool

IsInCustomerRole() 공개 정적인 메소드

Gets a value indicating whether customer is in a certain customer role
public static IsInCustomerRole ( this customer, string customerRoleSystemName, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
customerRoleSystemName string Customer role system name
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
리턴 bool

IsPasswordRecoveryTokenValid() 공개 정적인 메소드

public static IsPasswordRecoveryTokenValid ( this customer, string token ) : bool
customer this
token string
리턴 bool

IsRegistered() 공개 정적인 메소드

Gets a value indicating whether customer is registered
public static IsRegistered ( this customer, bool onlyActiveCustomerRoles = true ) : bool
customer this Customer
onlyActiveCustomerRoles bool A value indicating whether we should look only in active customer roles
리턴 bool

IsSearchEngineAccount() 공개 정적인 메소드

Gets a value indicating whether customer a search engine
public static IsSearchEngineAccount ( this customer ) : bool
customer this Customer
리턴 bool

RemoveAddress() 공개 정적인 메소드

public static RemoveAddress ( this customer, Address address ) : void
customer this
address Address
리턴 void