Method | Description | |
---|---|---|
__construct ( array $params = null, MongoDB\Client $client = null, MongoDB\Collection $aclCollection = null, MongoDB\Collection $aclGroupCollection = null, |
Class constructor | |
addAccessRule ( $publicKey, array $accessRule ) | ||
addKeyPair ( $publicKey, $privateKey ) | ||
addResourceGroup ( $groupName, array $resources = [] ) | ||
deleteAccessRule ( $publicKey, $accessId ) | ||
deletePublicKey ( $publicKey ) | ||
deleteResourceGroup ( $groupName ) | ||
getAccessListForPublicKey ( $publicKey ) | ||
getAccessRule ( $publicKey, $accessId ) | ||
getGroup ( $groupName ) | ||
getGroups ( Imbo\Auth\AccessControl\GroupQuery $query = null, |
||
getPrivateKey ( $publicKey ) | ||
groupExists ( $groupName ) | ||
publicKeyExists ( $publicKey ) | ||
updatePrivateKey ( $publicKey, $privateKey ) | ||
updateResourceGroup ( $groupName, array $resources ) |
Method | Description | |
---|---|---|
getAclCollection ( ) : MongoDB\Collection | Get the ACL mongo collection | |
getGroupsCollection ( ) : MongoDB\Collection | Get the resource groups mongo collection | |
getMongoClient ( ) : MongoDB\Client | Get the mongo client instance | |
getPublicKeyDetails ( string $publicKey ) : array | Get details for a given public key |
public __construct ( array $params = null, MongoDB\Client $client = null, MongoDB\Collection $aclCollection = null, MongoDB\Collection $aclGroupCollection = null, |
||
$params | array | Parameters for the driver |
$client | MongoDB\Client | MongoClient instance |
$aclCollection | MongoDB\Collection | MongoCollection instance for the acl collection |
$aclGroupCollection | MongoDB\Collection | |
$bsonToArray | BSONToArray helper |
public addAccessRule ( $publicKey, array $accessRule ) | ||
$accessRule | array |
public addResourceGroup ( $groupName, array $resources = [] ) | ||
$resources | array |
public getGroups ( Imbo\Auth\AccessControl\GroupQuery $query = null, |
||
$query | Imbo\Auth\AccessControl\GroupQuery | |
$model |
public updateResourceGroup ( $groupName, array $resources ) | ||
$resources | array |