메소드 | 설명 | |
---|---|---|
__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 |