class SecurityRoleFunctionServiceImpl implements SecurityRoleFunctionService {

    @Override
    public SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityFunction(SecurityFunctionKey securityFunctionKey)
    {
        // Validate and trim the security role to function key.
        securityFunctionHelper.validateAndTrimSecurityFunctionKey(securityFunctionKey);

        // Retrieve and return a list of security role to function mapping keys for the specified security function.
        SecurityRoleFunctionKeys securityRoleFunctionKeys = new SecurityRoleFunctionKeys();
        securityRoleFunctionKeys.getSecurityRoleFunctionKeys()
            .addAll(securityRoleFunctionDao.getSecurityRoleFunctionKeysBySecurityFunction(securityFunctionKey.getSecurityFunctionName()));
        return securityRoleFunctionKeys;
    }

}