This Service Interface holds methods for loading and manipulating Prinicpals.
Receive an PrincipalService instance by calling:
- $principalService = $services->getPrincipalService();
Make sure to use the right funtion to set User values:
setAttributes() for all Metadata like the values within the User Admin Plugin. setParemeter() for special values like User Language and active Flag.
| Class | Description |
|---|---|
| DefaultPrincipalService | Default implementation of the BIGACE PrincipalService. |
Creates a Principal.
Returns false if the Principal could not be created.
Deletes the attributes for the given Principal.
If second parameter is null or an empty array all attributes will be removed, otherwise we try to remove all Attributes provided in the array:
- array('phone','street')
Deletes a Principal.
Returns false if the Principal could not be deleted.
Get an Array with all available Principals.
Returns the Principal Attributes as a key-value mapped Array.
If no Attributes could be found it returns an empty array.
Gets the given Parameter for the Principal.
If the passed Parameter could not be found or is invalid null will be returned.
The allowed Parameter are:
Tries to find a Principal with the given Name.
Returns null if none could be found.
Tries to find a Principal with the given ID.
Returns null if none could be found.
Sets the attribute-value mapping for the given Principal.
Sets the given Parameter for the Principal.
The allowed Parameter are:
Documentation generated by phpDocumentor 1.3.1