Метод | Описание | |
---|---|---|
__construct ( string $name ) | Initialize the principal with the passed name. | |
__toString ( ) : string | Returns the principals name as string. | |
addMember ( AppserverIo\Psr\Security\PrincipalInterface $pricipal ) : boolean | Adds the passed principal to the group. | |
getMembers ( ) : AppserverIo\Collections\HashMap | Return's the group's members. | |
isMember ( AppserverIo\Psr\Security\PrincipalInterface $principal ) : boolean | Returns TRUE if the passed principal is a member of the group. | |
removeMember ( AppserverIo\Psr\Security\PrincipalInterface $principal ) : boolean | Removes the passed principal from the group. |
public __construct ( string $name ) | ||
$name | string | The principal's name |
public __toString ( ) : string | ||
Результат | string | The principal's name |
public getMembers ( ) : AppserverIo\Collections\HashMap | ||
Результат | AppserverIo\Collections\HashMap | The group members |
public removeMember ( AppserverIo\Psr\Security\PrincipalInterface $principal ) : boolean | ||
$principal | AppserverIo\Psr\Security\PrincipalInterface | The principal to remove |
Результат | boolean | TRUE if the member was successfully removed, FALSE if the principal was not a member |