LDAP Account Manager

SelfServicePersistenceStrategyFileSystem
in package
implements SelfServicePersistenceStrategy

Uses local file system for storing self service profiles.

Interfaces, Classes, Traits and Enums

SelfServicePersistenceStrategy
Interface for self service profile persistence.

Table of Contents

canWrite()  : bool
Returns if the profile with given name can be written.
delete()  : void
Deletes a self service profile.
getProfiles()  : array<string|int, mixed>
Returns a list of available self service profiles.
load()  : selfServiceProfile
Loads the given self service profile.
rename()  : void
Renames a self service profile.
save()  : void
Stores the given profile.

Methods

canWrite()

Returns if the profile with given name can be written.

public canWrite(string $name, string $scope) : bool
Parameters
$name : string

profile name

$scope : string

user/group/host

Tags
inheritDoc
Return values
bool

can be written

delete()

Deletes a self service profile.

public delete(string $name, string $scope) : void
Parameters
$name : string

profile name

$scope : string

account type

Tags
inheritDoc
Return values
void

getProfiles()

Returns a list of available self service profiles.

public getProfiles() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

profile names (array('account type' => array('profile1', 'profile2')))

load()

Loads the given self service profile.

public load(string $name, string $scope) : selfServiceProfile
Parameters
$name : string

profile name

$scope : string

user/group/host

Tags
inheritDoc
Return values
selfServiceProfile

profile

rename()

Renames a self service profile.

public rename(string $oldName, string $newName, string $scope) : void
Parameters
$oldName : string

existing profile name

$newName : string

new profile name

$scope : string

user/group/host

Tags
inheritDoc
Return values
void

save()

Stores the given profile.

public save(string $name, string $scope, selfServiceProfile $profile) : void
Parameters
$name : string

profile name

$scope : string

user/group/host

$profile : selfServiceProfile

profile

Tags
inheritDoc
Return values
void

Search results