Property | Type | Description | |
---|---|---|---|
$Version |
Property | Type | Description | |
---|---|---|---|
$DB | ADODB_mysqli | ||
$Environment | Scalr_Environment | ||
$LastTransactionID | |||
$Request | |||
$aclRoles | Scalr\Acl\Role\AccountRoleSuperposition | Acl role superposition object for current user's session | |
$debug | |||
$user | Scalr_Account_User |
Method | Description | |
---|---|---|
BuildRestServer ( $request ) | ||
__construct ( $version ) | ||
getAuditLoggerConfig ( ) | ||
getFarmSqlQuery ( string $permissionId = null ) : string | Generate conditions for sql query to limit access by only allowable farms. |
Method | Description | |
---|---|---|
CreateInitialResponse ( ) | ||
IPAccessCheck ( $allowed_ips ) | ||
LogRequest ( $trans_id, $action, $ipaddr, $request, $response ) | ||
ObjectToXML ( $obj, $DOMElement, $DOMDocument ) | ||
auditLog ( string $event, variadic |
AuditLogger wrapper | |
getAclRoles ( ) : Scalr\Acl\Role\AccountRoleSuperposition | Gets acl roles superposition for the request | |
getContainer ( ) : |
Gets DI Container | |
insensitiveUksort ( $a, $b ) | ||
isAllowed ( integer $resourceId, string $permissionId = null ) : boolean | Checks if access to ACL resource or unique permission is allowed | |
isFarmAllowed ( DBFarm $dbFarm = null, string $permissionId = null ) : boolean | ||
restrictAccess ( integer $resourceId, string $permissionId = null ) | Checks if access to ACL resource or unique permission is allowed and throws an exception if negative. | |
restrictFarmAccess ( DBFarm $dbFarm = null, null $permissionId = null ) | ||
stripValue ( $value ) |
Method | Description | |
---|---|---|
AuthenticateLdap ( $request ) | ||
AuthenticateREST ( $request ) | ||
AuthenticateRESTv2 ( $request ) | ||
AuthenticateRESTv3 ( $request ) | ||
setDiContainer ( ) | Sets necessary stuff into DI container |
protected LogRequest ( $trans_id, $action, $ipaddr, $request, $response ) |
protected getAclRoles ( ) : Scalr\Acl\Role\AccountRoleSuperposition | ||
return | Scalr\Acl\Role\AccountRoleSuperposition |
protected getContainer ( ) : |
||
return |
public getFarmSqlQuery ( string $permissionId = null ) : string | ||
$permissionId | string | optional |
return | string |
protected isAllowed ( integer $resourceId, string $permissionId = null ) : boolean | ||
$resourceId | integer | The ID of the ACL resource or its symbolic name without "RESOURCE_" prefix. |
$permissionId | string | optional The ID of the uniqure permission which is related to specified resource. |
return | boolean | Returns TRUE if access is allowed |
protected isFarmAllowed ( DBFarm $dbFarm = null, string $permissionId = null ) : boolean | ||
$dbFarm | DBFarm | |
$permissionId | string | |
return | boolean |
protected restrictAccess ( integer $resourceId, string $permissionId = null ) | ||
$resourceId | integer | The ID of the ACL resource or its symbolic name without "RESOURCE_" prefix. |
$permissionId | string | optional The ID of the uniqure permission which is related to specified resource. |
protected restrictFarmAccess ( DBFarm $dbFarm = null, null $permissionId = null ) | ||
$dbFarm | DBFarm | |
$permissionId | null |
protected Scalr_Environment $Environment | ||
return | Scalr_Environment |
protected AccountRoleSuperposition,Scalr\Acl\Role $aclRoles | ||
return | Scalr\Acl\Role\AccountRoleSuperposition |