C# Class Aurora.Services.WebAPIConnector

Inheritance: IAuroraDataPlugin, IWebAPIConnector
Mostra file Open project: aurora-sim/Aurora-WebAPI

Public Methods

Method Description
AllowAPICall ( UUID user, string method ) : bool
ChangeRateLimit ( UUID user, string method, uint rate ) : bool
ClearLog ( bool staleOnly ) : bool
GetAccessToken ( UUID user ) : UUID
GetNewAccessToken ( UUID user ) : UUID
GetRateLimit ( UUID user, string method ) : uint?
GetUsageRate ( UUID user, string method ) : uint
Initialize ( IGenericData GenericData, IConfigSource source, IRegistryCore simBase, string defaultConnectionString ) : void
LogAPICall ( UUID user, string method ) : bool
RateLimitExceed ( UUID user, string method ) : bool
ResetAPIAccess ( UUID user ) : bool
RevokeAPIAccess ( UUID user ) : bool

Private Methods

Method Description
Info ( object message ) : void
Warn ( object message ) : void
handleConfig ( IConfigSource m_config, string defaultConnectionString ) : bool

Method Details

AllowAPICall() public method

public AllowAPICall ( UUID user, string method ) : bool
user UUID
method string
return bool

ChangeRateLimit() public method

public ChangeRateLimit ( UUID user, string method, uint rate ) : bool
user UUID
method string
rate uint
return bool

ClearLog() public method

public ClearLog ( bool staleOnly ) : bool
staleOnly bool
return bool

GetAccessToken() public method

public GetAccessToken ( UUID user ) : UUID
user UUID
return UUID

GetNewAccessToken() public method

public GetNewAccessToken ( UUID user ) : UUID
user UUID
return UUID

GetRateLimit() public method

public GetRateLimit ( UUID user, string method ) : uint?
user UUID
method string
return uint?

GetUsageRate() public method

public GetUsageRate ( UUID user, string method ) : uint
user UUID
method string
return uint

Initialize() public method

public Initialize ( IGenericData GenericData, IConfigSource source, IRegistryCore simBase, string defaultConnectionString ) : void
GenericData IGenericData
source IConfigSource
simBase IRegistryCore
defaultConnectionString string
return void

LogAPICall() public method

public LogAPICall ( UUID user, string method ) : bool
user UUID
method string
return bool

RateLimitExceed() public method

public RateLimitExceed ( UUID user, string method ) : bool
user UUID
method string
return bool

ResetAPIAccess() public method

public ResetAPIAccess ( UUID user ) : bool
user UUID
return bool

RevokeAPIAccess() public method

public RevokeAPIAccess ( UUID user ) : bool
user UUID
return bool